Skip to content, navigation.
Its being a while since my last blog. And since many projects still in progress I will share my impression about recent build of OpenSolaris b126.
I am long time user of OpenSolaris. This is my tool for everyday work and I have it on my notebook. But still I am just a user, a little of admin, totally not a developer of this system. OpenSolaris 2009.06 was a major milestone with most every features polished to that date. But some was not as good as I wanted them to be. So I came a long road of updating to dev builds. I had all of them starting from 116 till 126. In every build there were improvements as well as new bugs. Only starting with 126 I can say that I feel good about it.
So here is the list why go dev and what you should be ready to. I am not writing in which release bug was fixed. Consider this as a
"diff 111a 126" and I am not pretend to show all diff, this is only what is sensitive to me:
$ pfexec pkg set-property flush-content-cache-on-success true
На моем ноутбуке до сих пор существуют две операционные системы. Первая — OpenSolaris build 118, в ней я постоянно работаю. И вторая — ее я использую для доступа в интернет на даче, а еще в ней установлен антивирус. Не первый раз возник вопрос, а нужна ли мне та вторая, может я смогу настроить модем в OpenSolaris?
Немного нагуглив я нашел руководство по настройке Nokia E71 в Vodafone UK. Остается все это переделать для SonyEricsson K750i в МТС.
приступаем, делаем ссылку для телефона и создаем файлы настроек.
# ln -s /dev/term/0 /dev/se750i # touch /etc/ppp/options # cat /etc/ppp/mts-chat '' 'ATZ' 'OK' 'AT+CGDCONT=1,"IP","internet"' 'OK' 'ATD*99#' CONNECT '' # cat /etc/ppp/peers/mts modem se750i 115200 noauth noipdefault defaultroute usepeerdns noccp novj user "mts" nodetach show-password crtscts connect "/usr/bin/chat -V -t15 -f /etc/ppp/mts-chat" # echo 'mts * mts *' >> /etc/ppp/pap-secrets # pppd call mts ATZ OK AT+CGDCONT=1,"IP","internet" OK ATD*99# CONNECTSerial connection established. Using interface sppp0 Connect: sppp0 <--> /dev/se750i LCP: Rcvd Code-Reject for Identification id 223 Remote message: Congratulations! local IP address 10.21.25.201 remote IP address 192.168.1.1 primary DNS address 213.87.0.1 secondary DNS address 213.87.1.1для обрыва сеанса просто Ctrl-C
^CTerminating on signal 2. Connection terminated. Connect time 8.6 minutes. Sent 78100 bytes (702 packets), received 22106 bytes (40 packets).Пока единственное неудобство - необходимость заполнять файл /etc/resolv.conf:
# cat /etc/ppp/resolv.conf > /etc/resolv.conf
Будем надеяться, что когда-нибудь pppd будет под контролем nwam.
Get in now
http://www.adobe.com/go/getreader
to install run as root on Solaris or do pfexec on OpenSolaris:
$ chmod +x AdbeRdr9.1.0-1_i486solaris_enu.bin
$ pfexec ./AdbeRdr9.1.0-1_i486solaris_enu.bin
Extracting files, please wait. (This may take a while depending on the configuration of your machine)
This installation requires 171 MB of free disk space.
Enter installation directory for Adobe Reader 9.1.0 [/opt]
/opt
Installing platform independent files ... Done
Installing platform dependent files ... Done
Setting up libraries ... Done
Setting up desktop and menu icons ... Done
Setting up the browser plugin ... Done
And you will get it on the system as well as Firefox plugin.
Для тех кто любит обновляться до последней версии будет полезно иметь в виду, что сделав только zpool upgrade, при последующей перезагрузке, а точнее при включении компа, вместо рабочего GRUB получите лишь его prompt. Например, я прошел путь OpenSolaris: 86, 96, 97 и теперь 98. Между билдами 86 и 98 версия ZFS pool сначала увеличилась с 11 до 12, а потом с 12 до 13. Я бы не обратил внимания, но к моему ноуту я периодически подключаю внешний USB диск (Lacie 250GB) для целей бекапа и смотрю, что говорит zpool status. Именно он и уговорил меня оба раза сделать zpool upgrade. И оба раза я наступал на эти грабли. Проблема в том, что при обновлении zpool upgrade необходимо обновлять и загрузчик GRUB. Бага уже принята в работу. Если Вы не сделали обновление загрузчика, то можете попытаться руками ему сказать откуда грузиться, но это не поможет:
GRUB> bootfs rpool/ROOT/opensolaris-2 GRUB> kernel$ /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS .... Error 17: cannot mount selected partition
Поэтому качаем DVD с новым релизом и с него делаем installgrub:
jack@opensolaris:~/Desktop$ su -
Password: opensolaris
Sun Microsystems Inc. SunOS 5.11 snv_98 November 2008
bash-3.2# zpool status
no pools available
bash-3.2# zpool import
pool: rpool
id: 1988807281359054800
state: ONLINE
status: The pool was last accessed by another system.
action: The pool can be imported using its name or numeric identifier and
the '-f' flag.
see: http://www.sun.com/msg/ZFS-8000-EY
config:
rpool ONLINE
mirror ONLINE
c5t0d0s0 ONLINE
c3t0d0s0 ONLINE
bash-3.2# zpool import -f rpool
bash-3.2# installgrub -m /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c5t0d0s0
Updating master boot sector destroys existing boot managers (if any).
continue (y/n)? y
stage1 written to partition 1 sector 0 (abs 96406065)
stage2 written to partition 1, 267 sectors starting at 50 (abs 96406115)
stage1 written to master boot sector
bash-3.2# installgrub -m /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c3t0d0s0
Updating master boot sector destroys existing boot managers (if any).
continue (y/n)? y
stage1 written to partition 0 sector 0 (abs 16065)
stage2 written to partition 0, 267 sectors starting at 50 (abs 16115)
stage1 written to master boot sector
bash-3.2# zpool export rpool
bash-3.2# init 6
Need to say that I have OpenSolaris on my Sony Vaio laptop. And I am following newest releases of OpenSolaris: 86, 96, 97 and now 98. In between builds 86 and 98 ZFS pool version was increased twice from 11 to 12 and from 12 to 13. I am paying attention to zfs status because I have external USB drive attached (Lacie 250GB) for mirror (backup) purposes. So I was doing zfs upgrade two times and two times had a problem with next boot. The problem is that GRUB is not able to see new ZFS and so it brings GRUB prompt. You may try to enter GRUB entries by hands but this would not help you:
GRUB> bootfs rpool/ROOT/opensolaris-2 GRUB> kernel$ /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS .... Error 17: cannot mount selected partition
The solution is to get DVD of your build and boot from it. And then installgrub:
jack@opensolaris:~/Desktop$ su -
Password: opensolaris
Sun Microsystems Inc. SunOS 5.11 snv_98 November 2008
bash-3.2# zpool status
no pools available
bash-3.2# zpool import
pool: rpool
id: 1988807281359054800
state: ONLINE
status: The pool was last accessed by another system.
action: The pool can be imported using its name or numeric identifier and
the '-f' flag.
see: http://www.sun.com/msg/ZFS-8000-EY
config:
rpool ONLINE
mirror ONLINE
c5t0d0s0 ONLINE
c3t0d0s0 ONLINE
bash-3.2# zpool import -f rpool
bash-3.2# installgrub -m /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c5t0d0s0
Updating master boot sector destroys existing boot managers (if any).
continue (y/n)? y
stage1 written to partition 1 sector 0 (abs 96406065)
stage2 written to partition 1, 267 sectors starting at 50 (abs 96406115)
stage1 written to master boot sector
bash-3.2# installgrub -m /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c3t0d0s0
Updating master boot sector destroys existing boot managers (if any).
continue (y/n)? y
stage1 written to partition 0 sector 0 (abs 16065)
stage2 written to partition 0, 267 sectors starting at 50 (abs 16115)
stage1 written to master boot sector
bash-3.2# zpool export rpool
bash-3.2# init 6
I have Vista and Opensolaris on my laptop. And recently I faced a problem installing Service pack 1 on Vista because of GRUB installed. SP1 did MBR checking and since no Vista MBR present it fails to update Vista. Here is solution:
H:\mbr>MBRFIX.EXE /drive 0 listpartitions
# Boot Size (MB) Type
1 47065 7 NTFS or HPFS
2 Yes 143706 191 Unknown
3 0 0 None
4 0 0 None
H:\mbr>MBRFIX.EXE /drive 0 savembr Indy.bin
H:\mbr>MBRFIX.EXE /drive 0 fixmbr /vista
H:\mbr>MBRFIX.EXE /drive 0 /partition 1 setactivepartition
H:\mbr>MBRFIX.EXE /drive 0 restorembr Indy.bin
This blog copyright 2009 by Roman Ivanov