SolarisLiveUpgrade

From SaWiki

Jump to: navigation, search

Contents

RSA 5.1 to 6.1 & Solaris 8 to Solaris 10 Upgrade How To

Description:

Remove mirror and use LiveUpgrade to upgrade to Solaris 10 on spare disk. Boot to Solaris 10, remove Solaris 8, mirror disks install RSA Securid 6.1.1.

Current Environment

Solaris 8 RSA 5.1.1 Mirrored root disks c0t0d0s2 & c0t1d0s2

LiveUpgrade Install

Install Solaris 8 Patches for LiveUpgrade /nas/rsa/sol8_patches/liveup_patch_install.sh (install LiveUpdate patches) NON-INTERACTIVE

Install LiveUpgrade /nas/rsa/liveupgrade/install_liveupgrade.sh (install LiveUpgrade) INTERACTIVE


Remove Disk Mirror

*Verify script root and swap slices are correct (double check script)

remove_mirror_disk.sh (remove mirror disk from mirror and clear metadb off mirror disk)

Setup Boot Environments

*** Verify metadb partition is created

Create disk slices on mirror disk for Solaris 10 install

# format
partition> pr
Current partition table (lu_sol10):
Total disk cylinders available: 24620 + 2 (reserved cylinders)
Part      Tag    Flag     Cylinders         Size            Blocks
 0       root    wm       0 -  1451        2.00GB    (1452/0/0)   4194828
 1       swap    wu    1452 -  2177        1.00GB    (726/0/0)    2097414
 2     backup    wm       0 - 24619       33.92GB    (24620/0/0) 71127180
 3        var    wm    2178 -  3629        2.00GB    (1452/0/0)   4194828
 4        usr    wm    3630 -  7259        5.00GB    (3630/0/0)  10487070
 5 unassigned    wu    7260 -  7281       31.03MB    (22/0/0)       63558
 6 unassigned    wm    7282 - 21800       20.00GB    (14519/0/0) 41945391
 7       home    wm   21801 - 24617        3.88GB    (2817/0/0)   8138313


  • NOTE: I had to put swap on slice 1 and / on slice 0 to match the current OS (reversing this failed).

Create Boot Environments

$ lucreate -n sol10 -c sol8 -s - -m -:/dev/dsk/c0t1d0s1:swap -m /:/dev/dsk/c0t1d0s0:ufs -m /var:/dev/dsk/c0t1d0s3:ufs -m /usr:/dev/dsk/c0t1d0s4:ufs -m /rsa:/dev/dsk/c0t1d0s6:ufs -m /export/home:/dev/dsk/c0t1d0s7:ufs

Install Solaris 10 and Boot

Mount Solaris 10 CD-ROM

mountiso.sh

*Verify Wanboot Server Setup for hosts Subnet Create /etc/netboot/xxx.xxx.xxx.xxx subnet directory with correct system.conf and wanboot.conf

solaris_wanboot_how-to.html

Solaris 10 install

$ luupgrade -f -n sol10 -s /mnt/s0 -a /nas/solaris/flash/sol10_11-06_rsa.flar

or

# luupgrade -f -n sol10 -s /mnt/s0 -j /nas/solaris/jumpstart/htdocs/flash/sol10_rsa_lu

Boot to Solaris 10

Create devalias for Solaris 10 disk (c0t1d0s0 / slice)
$ ls -l /dev/dsk/c0t1d0s0
lrwxrwxrwx   1 root     root          46 May  7 16:19 /dev/dsk/c0t1d0s0 ->
../../devices/pci@1f,0/pci@1,1/scsi@2/sd@1,0:a

* change the sd@ to disk@ at the end

$ eeprom "nvramrc=devalias mirror /pci@1f,0/pci@1,1/scsi@2/disk@1,0:a"

Activate Solaris 10 Boot Environment and Boot

$ luactivate sol10  (will error out -- ok)
$ reboot mirror

Patch System

Install 10_Recommended Patches /nas/solaris/patches/10/07-2007 in Single User Mode

Install RSA

 RSAAuthenticationManager6.1Install

Mirror Disks (Solaris 10)

Remove sol8 boot environment to free up disk for mirror

# lustatus
# ludelete sol8
Check status of removal of sol8 boot environment
# lustatus 

Mirror Disks

Check the scripts to verify it has the correct root and mirror disks, along with the correct metadb slice.
# /nas/rsa/disksuite/pre_mirror_disks.sh

Update /etc/vfstab with mirror entries

#live-upgrade:<Tue Aug 21 14:25:09 PDT 2007> updated boot environment <sol10>
#device         device          mount           FS      fsck    mount   mount
#to mount       to fsck         point           type    pass    at boot options
#
#/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr          ufs     1       yes     -
fd      -       /dev/fd fd      -       no      -
/proc   -       /proc   proc    -       no      -
#/dev/dsk/c0t1d0s1      -       -       swap    -       no      -       
/dev/md/dsk/d1  -       -       swap    -       no      -  
swap    -       /tmp    tmpfs   -       yes     -    
/dev/md/dsk/d0  /dev/md/rdsk/d0 /       ufs     1       no      -
#/dev/dsk/c0t1d0s6      /dev/rdsk/c0t1d0s6      /rsa    ufs     1       yes     -       
/dev/md/dsk/d6  /dev/md/rdsk/d6 /rsa    ufs     1       yes     -       
#/dev/dsk/c0t1d0s4      /dev/rdsk/c0t1d0s4      /usr    ufs     1       no      -
/dev/md/dsk/d4  /dev/md/rdsk/d4 /usr    ufs     1       no      -
#/dev/dsk/c0t1d0s3      /dev/rdsk/c0t1d0s3      /var    ufs     1       no      -
/dev/md/dsk/d3  /dev/md/rdsk/d3 /var    ufs     1       no      -
#/dev/dsk/c0t1d0s7      /dev/rdsk/c0t1d0s7      /export/home    ufs     2       yes      -
/dev/md/dsk/d7  /dev/md/rdsk/d7 /export/home    ufs     2       yes      -
#infosecnas:/data        -       /nas    nfs     2       yes     -

# lockfs -fa
# reboot mirror

...

# /nas/rsa/disksuite/post_mirror_disks.sh
# metastat -c //check the mirror sync status//

Test boot to mirror and root disk

Check sync of mirror complete
# metastat -c 
Once sync is complete
# reboot mirror

...

# metastat -c
# metasync d0 d1 d3 d4 d6 d7
# metastat -c
Once the sync is complete test the boot 
# init 6

@@

if this fails, run
# boot mirror

@@

Errors: SolarisFormatErrors SolarisErrors

Update /etc/vfstab with mirror entries

Personal tools