My friend and Colleague Isamu just asked me how I live-upgrade my home machines. Here's how:
Tunnel the NFS TCP port over ssh
Thanks to Chris Gerhard for this tip.
$ ssh -fNCL 6049:enospc:2049 enoexec
where 'enospc' is the name of the nfs server that exports the install images and 'enoexec' is the name of a host that can access the nfs server which has AllowTcpForwarding set to "yes" in its /etc/ssh/sshd_config file.
Using nfs URLs mount the file system
# mount nfs://localhost:6049/export/install /mnt
Remove Current lu packaging and add new packages, i.e.:
# yes y | pkgrm SUNWluu SUNWlur SUNWlucfg .... # ls /mnt/i86pc/os/nv/ 69 68 70 # luv=70 # cd /mnt/i86pc/os/nv/$luv/Solaris_11/Product # yes y | pkgadd -d . SUNWlucfg SUNWlur SUNWluu .... # cd /
Upgrade
Firstly, get name of my current lu partitions using lustatus:
# lustatus ....
Rename the one I'm replacing so that I know which version it is for now.
# lurename -n snv_$luv -e ‹old BE›
Next use lumake to update older image with changes made in newer image, thanks to Brent Paulson for this tip. Obviously you can miss this step if you just created the image. This takes some time, it sends an email when its complete. Alternatively use lustatus to see when its done.
# lumake -n snv_$luv -t now -m mail-address@domain
Finally, do the upgrade.
# luupgrade -u -n ‹new BE› -s /mnt/i86pc/os/nv/$luv
Activate the new environment
Use luactivate and 'init 6' to reboot solairs, the reboot command will not suffice.
# luactivate snv_$luv .... # umount /mnt # init 6
Stace

