Friday, July 31, 2015

Steps to perform Cluster patches on Solaris server

Pre-work:

1) Download the Cluster patch from oracle site.
2) unzip it (size is 2+GB)
3) /var should be more than 1.5 GB free
Once ready.

Starting the patching activity:

1)Login to the server as root.

2)reboot the server #init 6 (for verifying the server)

3)server needs to bounce without any problem  and detach the mirror from the server.

#metadetach d6 d26
#metadetach d5 d25
#metadetach d4 d24
#metadetach d3 d23
#metadetach d1 d21
#metadetach d0 d20

4)Run FSCK with Secondary disk

#fsck -y /dev/rdsk/c1t1d0s0
#fsck -y /dev/rdsk/c1t1d0s1
#fsck -y /dev/rdsk/c1t1d0s3
#fsck -y /dev/rdsk/c1t1d0s4
#fsck -y /dev/rdsk/c1t1d0s5
#fsck -y /dev/rdsk/c1t1d0s6

5)Mount the secondary disk with /mnt

#mount /dev/dsk/c1t1d0s0 /mnt
#cd /mnt/etc

6)copy the below system configuration files

#cp -p vfstab vfstab.Sec.`date +%d%m%Y`
#cp -p system system.sec.`date +%d%m%Y`

7)Edit the /mnt/etc/vfstab file and change the entry to secondary disk as follows:

 /dev/dsk/c1t1d0s0  /dev/rdsk/c1t1d0s0 /       ufs     1       no      -
/dev/dsk/c1t1d0s1  /dev/rdsk/c1t1d0s1 /var    ufs     1       no      -
/dev/dsk/c1t1d0s3  /dev/rdsk/c1t1d0s3 /home   ufs     2       yes      -
/dev/dsk/c1t1d0s4  /dev/rdsk/c1t1d0s4 /opt    ufs     2       yes      -
/dev/dsk/c1t1d0s5       -       -       swap    -       no      -
/dev/dsk/c1t1d0s6  /dev/rdsk/c1t1d0s6 /restore       ufs     2       yes      -

8)Edit the /mnt/etc/system file and comment out the line (rootdev:/pseudo/md@0:0,10,blk )

#vi /mnt/etc/system
*rootdev:/pseudo/md@0:0,10,blk
#sync

9) Boot from the secondary disk and check everything fine from server side.

#init 0
ok> boot disk1
#df -k  [Verify the file systems are in secondary]

10) Boot from the primary disk with single user mode and install the patch

#init s (or)

 #sync
#init 0
ok> boot disk0 –s

11) Do the patching

# pwd
/Nov_patch (Patch location)

12) Run the Patch cluster

# ./installpatchset --s10patchset

13) Once completed run the reconfiguration reboot
#reboot -- -r

14) Verify the server status and below commands

  #uname -a (verify the kernel patch #)
  #df -h
  #ifconfig -a
  #netstat-nr and etc.....

15)After one week check AO team there is no problem with server attach the mirror.

#metattach d6 d26
#metattach d5 d25
#metattach d4 d24
#metattach d3 d23
#metattach d1 d21
#metattach d0 d20
#metastat | grep sync

No comments:

Post a Comment

Install the Perl module

Unable to install a perl module and through below error: Looking for CPAN mirrors near you (please be patient) Can't locate Time/HiR...