If we are maintaining root disk with a mirror under Solaris Volume Manager , we need to detach the mirror disk before performing KJP.
This is to ensure secondary copy of data so that if anything goes wrong after KJP because of latest patch level to revert changes.
1) Take the output of the server before starting the activity.
# ./output.sh --- this output should include current status (status of h/w and main config files) of server.
2) Check the umask value , it should be 022.
Need to check the Umask value in /etc/.login, /etc/profile, /etc/skel/local.cshrc, /etc/skel/local.login, /etc/skel/local.profile, /etc/default/login
3) Stop Application & Database on the server.
4) Umount FileSystems and Deport DG’s if any.
5) Check EEPROM values of "boot-device;use-nvramrc?;nvramrc"
#eeprom
boot-device=rootdisk rootmirror
use-nvramrc?=true
nvramrc=devalias rootmirror /pci@9,600000/SUNW,qlc@2/fp@0,0/disk@1,0
devalias rootdisk /pci@9,600000/SUNW,qlc@2/fp@0,0/disk@0,0
6) Take a sanity reboot of server.
#reboot Once the server rebooted successfully ,
7) Detach the Root Mirror & Swap Mirror (if any)
#metadettach d10 d12
#metadettach d20 d22
8) Mount mirrordisk in "C#T#D#" format on "/mnt"
#mount /dev/dsk/c#t#d#s0 /mnt
9) Edit the "etc/vfstab" and "etc/system" files of mirrordisk.
#vi /mnt/etc/vfstab (convert all meta devices of mirrordisk to c#t#d# form)
#vi /mnt/etc/system (Hash the entry "rootdev:/pseudo/md@0:0,10,blk").
Unmount the /mnt
#umount /mnt
10) Then go to OK prompt and boot with mirror disk.
#init 0
OK devalias
OK boot rootmirror –v
11) After the system booted , check the mirror disk status if it is in c#t#d# format.
Take a reboot and do the same for root disk also.Edit /etc/system and /etc/vfstab bring root disk to c#t#d#.
12) Then again boot the server from Root Disk.
OK boot rootdisk –v
13) After the successful boot from Root Disk , check the location of unzipped KJP file. Bring system t single user mode.
#init s
Go to directory of kjp. view README of kjp.
#./installpatchset --s10patchset
No comments:
Post a Comment