OK so you've done your first Live Upgrade. See my earlier blog for all the gory details, "Solaris Live Upgrade":http://blogs.sun.com/roller/page/jmr?entry=solaris_live_upgrade_the_joys1 Now what about the next one?
I assume you have 3 slices (partitions), one Active "/", one inactive to be upgraded and one "/export" that will remain unchanged on upgrade. My Active "/" is the solenv_s3 Boot Environment [BE] and I want to upgrade the old inactive solenv_s0 BE to nevada b27a.
# lustatus
Boot Environment Is Active Active Can Copy
Name Complete Now On Reboot Delete Status
solenv_s0 yes no no yes ---
solenv_s3 yes yes yes no ---
* Steps *
I need to upgrade some bits on solenv_s3 (frkit & lu tools), copy the current solenv_s3 to solenv_s0 (lumake), upgrade solenv_s0 (luupgrade) and finally make solenv_s0 my new active "/" BE (luactivate). The solenv_s3 then becomes my old inactive BE, ready for the next live upgrade.
Here you go:
1. Update frkit
# /usr/sfw/bin/wget http://vaticaan.holland/~casper/tools/frkit ; chmod 755 frkit ; ./frkit <- as root
2. Get nevada iso and mount it
> ftp://nana.sfbay/solaris_media/nv/27a/x86/
> get solarisdvd-iso.gz [2.23 Gigs]
# gunzip solarisdvd-iso.gz
# lofiadm ---a /export/home/john/build/solarisdvd.iso
# mount ---r ---F hsfs /dev/lofi/1 /mnt
3. Update lu tools from the iso
# cd /mnt/Solaris_11/Tools/Installers/
# ./liveupgrade20
Alternative
# pkgrm SUNWluu SUNWlur
# pkgadd ---d /mnt/Solaris_11/Product SUNWlur SUNWluu
# pkginfo ---l SUNWluu
4. Copy from current Active BE [solenv_s3] to Inactive target BE [solenv_s0] (1-2 hrs)
# lumake ---n solenv_s0
5. Upgrade the target BE [solenv_s0] (1-2 hrs)
# lupgrade ---u ---n solenv_s0 -s /mnt
[Note: add ---N if you want to do a dry run and check out what's going to happen]
6. Activate target BE
# luactivate solenv_s0
Reboot - DONE! It's getting easier ...
Very long winded, hey I'm an engineer attention span of a gnat when it comes to manuals
Now they tell me. So thankfully with a little housekeeping I reduced my home enough to be able to copy it all into the root slice (cpio is your friend). Once that's copied off then I was able to resize my /export/home and create a new slice to hold my boot environment. Once that was done I just copied my home back to the resized /export/home.