Friday, June 20, 2008

Upgrading OpenSolaris2008.05 to snv91.

The pkg.opensolaris.org repository, has been updated to Build 91 today.

N.B. That pkg(1) IPS has had a update too;

$export PKG_CLIENT_TIMEOUT=220
$pfexec pkg refresh
$pfexec pkg install pkg:/SUNWipkg@0.5.11,5.11-0.90
$pfexec pkg image-update

Its about 700MB of download If your comming from the snv90 update.

If you are still on snv86 ( OpenSolaris2008.05 fresh install ).
Then follow this or your box wont boot the new BE.

After the update has finished, you should get a output similar to:

$beadm list
BE Active Active on Mountpoint Space
Name reboot Used
---- ------ --------- ---------- -----
opensolaris-1 no yes - 17.06M
opensolaris yes no - 33.92M

Simply run:

$pfexec mount -F zfs rpool/ROOT/opensolaris-1 /mnt
$pfexec /mnt/boot/solaris/bin/update_grub -R /mnt

Now your ready to reboot to your new updated BE.

~
Edward.

1 comment:

Anonymous said...

A perfect upgrade from a default install

Fuhrer@SunGod:~$ export PKG_CLIENT_TIMEOUT=220
Fuhrer@SunGod:~$ pfexec pkg refresh
Fuhrer@SunGod:~$ pfexec pkg install pkg:/SUNWipkg@0.5.11,5.11-0.90
DOWNLOAD PKGS FILES XFER (MB)
Completed 1/1 100/100 0.89/0.89

PHASE ACTIONS
Removal Phase 2/2
Update Phase 92/92
Install Phase 11/11
Fuhrer@SunGod:~$ pfexec pkg image-update
DOWNLOAD PKGS FILES XFER (MB)
Completed 536/536 14530/14530 1237.55/1237.55

PHASE ACTIONS
Removal Phase 3122/3122
Update Phase 13923/13923
Install Phase 6116/6116
A clone of opensolaris exists and has been updated and activated. On next boot the Boot Environment opensolaris-1 will be mounted on '/'. Reboot when ready to switch to this updated BE.
Fuhrer@SunGod:~$ beadm list

BE Active Active on Mountpoint Space
Name reboot Used
---- ------ --------- ---------- -----
opensolaris-1 no yes - 4.08G
opensolaris yes no legacy 232.0K
Fuhrer@SunGod:~$ pfexec mount -F zfs rpool/ROOT/opensolaris-1 /mnt
Fuhrer@SunGod:~$ pfexec /mnt/boot/solaris/bin/update_grub -R /mnt
Creating GRUB menu in /mnt
Installing grub on /dev/rdsk/c5d0s0
stage1 written to partition 0 sector 0 (abs 16065)
stage2 written to partition 0, 265 sectors starting at 50 (abs 16115)
Fuhrer@SunGod:~$