Live Upgrade
- Preparation
- Create a new boot environment
- If this is your first live upgrade then use this command (-c Assigns a name to the current current Boot Environment)
- Otherwise if you have done live upgrades before you do not need -c
- Check it
- Upgrade
- Make it your default boot enviroment
- Reboot. WARNING must use init command
# lofiadm -a /export/iso/sol-nv-b99-x86-dvd.iso
/dev/lofi/1
# mount -o ro -F hsfs -o ro /dev/lofi/1 /mnt
# pkgrm SUNWluu SUNWluzone SUNWlur SUNWlucfg
# pkgadd -d /mnt/Solaris_11/Product SUNWlucfg SUNWlur SUNWluu SUNWluzone
# lucreate -c b97 -n b99
# lucurr
b97
# lucreate -n b99
# lustatus
Boot Environment Is Active Active Can Copy
Name Complete Now On Reboot Delete Status
-------------------------- -------- ------ --------- ------ ----------
b95a yes no no yes -
b97 yes yes yes no -
b99 yes no no yes -
# luupgrade -u -n b99 -s /mnt
# zfs listNAME USED AVAIL REFER MOUNTPOINT
rpool 151G 77.5G 41K /rpool
rpool/ROOT 32.2G 77.5G 18K legacy
rpool/ROOT/b95a 88.7M 77.5G 12.4G /tmp/.alt.luupdall.6066
rpool/ROOT/b97 27.8G 77.5G 11.1G /
rpool/ROOT/b97@20080820 7.77G - 9.51G -
rpool/ROOT/b97@b97 8.57G - 12.4G -
rpool/ROOT/b97@20080916 64.9M - 10.9G -
rpool/ROOT/b97@b98 14.7M - 11.1G -
rpool/ROOT/b99 4.34G 77.5G 11.2G /tmp/.luupgrade.inf.6336
rpool/dump 2.97G 77.5G 2.97G -
rpool/export 113G 77.5G 43.6G /export
rpool/export/home 69.1G 77.5G 69.1G /export/home
rpool/swap 2.97G 78.7G 1.75G -
# luactivate b99
# init 6
Trouble Shooting:
- - Error about mount point not empty during a live upgrade or after:
i.e.ERROR: cannot mount '/.alt.tmp.b-nnb.mnt/': directory is not emptyThis is most likely that there is a file or directory in this location or a mount point already exist.
or
cannot mount '/export/home': directory is not empty
Check only current system mounted (NO /.alt.. or /export/home) and then do some cleaning up (WARNING: before doing the "rm -ir" make sure you are happy delete these files)
# df -F zfs
/ (rpool/ROOT/snv_98 )
/export (rpool/export )
/export/home (rpool/export/home )
/rpool (rpool )
# zfs unmount /export/home
# ls -adR /.alt.tmp.b-nnb.mnt /export/home
# rm -ir /.alt.tmp.b-nnb.mnt /export/home
# zfs unmount /export
# ls -adR /export
# rm -ir /export
# zfs mount /export
# zfs mount /export/home
or
# lumount NV95
# luunmount NV95