How to apply patchset cluster to Solaris servers

Installing Patchset  Cluster


Install Patchsets for Solaris 10 system

1.     Download suitable our platform bundle patch(Recommended Solaris Cluster Patch) from https://support.oracle.com
2.     Transfer the patchsets to the server which needs to apply. Need /var/tmp (>3.0 GB free space)
3.      
4.     Make the backups of the server, and stop all applications on the server.
5.     Break the mirror, and it will isolate from root disk.
                   C0t0d0 —> Root disk
                   C0t1d0 —> Root-mirror disk

              5.   Delete state database replicas from root-mirror disk
                  #metadb –i
           a    p  luo        16              8192            /dev/dsk/c0t1d0s7
                  #metadb –d –f  /dev/dsk/ c1t1d0s7

5.     Proceed with the mirror detach for the rootmirror disk
               # metastat –p
                     d1 -m d20 d21 1
         d20 1 1 c1t0d0s1
         d21 1 1 c1t1d0s1
         d0 -m d10 d11 1
         d10 1 1 c1t0d0s0
         d11 1 1 c1t1d0s0

              #metadetach d1 d21
              #metadetach d0 d11
              #metaclear d21
              #metaclear d11
              #metastat –p
                    d1 -m d20
        d20 1 1 c1t0d0s1
                    d0 -m d10
        d10 1 1 c1t0d0s0

  1. Mount detached rootmirror disk on mount point /mnt and edit /mnt/etc/vfstab
  2. #mount /dev/dsk/c0t1d0s0 /mnt
7.      #vi /mnt/etc/vfstab     [change md entries to native entries]
/dev/md/dsk/d1   à /dev/dsk/c0t1d0s1
/dev/md/dsk/d0   à /dev/dsk/c0t1d0s0
      8.   # grep -i md /mnt/etc/system
* Begin MDD root info (do not edit)
      rootdev:/pseudo/md@0:0,0,blk    [comment this line with *]
* End MDD root info (do not edit)

9.     Unmount root-mirror disk and fsck
              #umount /mnt
              #fsck /dev/rdsk/c0t1d0s0

To test the booting of our server from both the disks to make sure that the server will come up with both of the disks without any issues.
1.     #init 0
               Ok>devalias rootmirror  /pci@1f,0/pci@1/scsi@8/disk@1,0:a
               Ok>boot rootmirror 

Once system come-up with rootmirror, do sanity check like df –h, ifconfig, etc

Note: Don’t use the alias of root-mirror, it will cause boot up failures, system won’t
         accept.

Repeat to boot the server from rootdisk for verifications.

2.     #init 0
               Ok>devalias rootdisk /pci@1f,0/pci@1/scsi@8/disk@0,0:a
               Ok>boot rootdisk

3.     Start patching, but server should be single user mode:
              #cd /var/tmp
              #unzip -q 10_Recommended.zip

              #shutdown -g0 -y –is
              #who –r
.       run-level S  Oct 25 12:39     S      0  3

             NOTE: For installation recommended patchset, we need 3 GB of free disk space

             #./installpatchset --s10patchset   .

           
            Screen shot….

Setup ..........
Recommended OS Patchset Solaris 10 x86 (2011.09.14)
4.     Once patching has done, need to reboot the server:
  1. #reboot -- -r
6.     #uname –a

SunOS Release 5.10 Version Generic_147441-01 32-bit


Cleanup/ Remove patchset directories



All patchset and zip file are saved under /var/tmp folder

After a period of time, after 2-3 weeks, after the O/S and applications
are running stable, then re-mirror the rootdisk for redundancy.

Clean up folder and delete the zip file after installation is completed.

Post a Comment

Previous Post Next Post