Simple steps to Upgrade Solaris using Live upgrade
By madhu on Dec 12, 2006
I always wanted to have the latest OS bits running on my system. So when I got my new machine,
First thing I did is to partition the Solaris partition in such a way that I can do Live upgrade.
Live upgrade is a cool technology to upgrade OS on a different slice while the machine is still up and running.
When I partitioned my disk, I created 2 slices s0 and s3 of exact size.
I wanted to use both of these for live upgrade.
1) First I installed build 45 on s0 slice using DVD.
After installation my df -k looked like this
bash-3.00# df -kh -F ufs
Filesystem size used avail capacity Mounted on
/dev/dsk/c2d0s0 14G 6.1G 8.2G 43% /
/dev/dsk/c2d0s4 48G 19G 28G 41% /space
/dev/dsk/c2d0s3 14G 5.6G 8.7G 39% /lu
Now if I have to install latest solaris build on the slice s3 using Live Upgrade (lu) then first I need to have a base OS. So I copied the s0 to s3 using lucreate
2) #lucreate -c nv_45 -m/:/dev/dsk/c2d0s3:ufs -n nv_50
(This will take atleast 30 minutes. The above command will also create nv_45 Build environment too. This is required only first time.
Make sure that you have unmounted the /lu partition and removed the /lu entry from /etc/vfstab before this step.)
Now run 'lustatus' to make sure that everything is fine.
3) Now put the new build media in cdrom. Or if you have an iso image, then mount it as a filesystem.
In my case I download the iso image and use it.
#lofiadm -a /space/sol-nv-b50-x86-dvd.iso
#mount -F hsfs /dev/lofi/1 /mnt/test/
4) remove the following packages from your existing OS
5) Now upgrade the slice 3 to new build.
#luupgrade -u -n nv_50 -s /mnt/test
(this will take approximately 30 minutes. It will also update the grub entries so that you can boot in both builds)
Check again the status using command 'lustatus'.
6) Activate to your new build.
# luactivate nv_50
7) Sometimes I have seen that in the new boot environment, bootarchive is not updated.
So mount the new boot environment and update the boot archive..
#/.alt.nv_50/sbin/bootadm update-archive -R /alt.nv_50
(this will update the bootarchive in the new build environment )
Shutdown the system and reboot to choose build 50 From the grub menu.
Now I am happily running build 50 and planning to upgrade my nv_45 (on slice s0 ) environment to build 54.
TO upgrade the build 45 to 54 I have to start from Step 3.
My colleague Arindam helped me a lot in understanding LU.
For more details on LU check this document