Random musings from sometimes sunny Ireland John Rice's Weblog

Wednesday Nov 23, 2005

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 ...
Comments:

Thanks for the tutorial. :) Your instructions were flawless. Everything worked perfectly the first time. It's un-natural! :)

Posted by Tim Kennedy on January 23, 2006 at 03:37 AM GMT #

These instructions only work for internal Sun employees. Perhaps you could give external equivalents for the SWAN network U R L s and directories.

Posted by Dan Anderson on November 27, 2007 at 06:10 PM GMT #

Post a Comment:
  • HTML Syntax: NOT allowed