Solaris Live Upgrade - the next installment ;)

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 22, 2006 at 07:37 PM 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 10:10 AM GMT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

jmr

Search

Top Tags
Categories
Archives
« April 2014
MonTueWedThuFriSatSun
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    
       
Today