Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

patching from mirror ----------------------c1t0d0 -- primary mirror c1t2d0 -- Secondary mirror d5 -- mirror; d10 & d20 sub-mirror General

Procedure ----------------1. Take all the necesary backup of all imporatan conf. & cmd O/P 2. Reboot server before applying patches,ensure the server is booting up with ou t any issue 3. Detach the Root mirror (2nd disk) 4. remove Root mirror fr om SVM control 5. Boot the server from Root Mirror disk 6. If the disk up and reboot the primary mirror and apply the pataches. Techinal steps --------------cp /etc/vfstab /etc/vfstab.org cp /etc/system /etc/system.org cp /etc/lvm/md.conf /etc/lvm/md.conf.org cp /etc/lv/mddb.cf /etc/lv/mddb.cf,org cp /etc/lvm/md.tab /etc/lvm/md.tab.org df -k ; metastat ; metadb -i detach the rootmirror --------------------------metadetach d5 d10 d5: submirror d10 is detached bash-3.2# fsck /dev/rdsk/c1t2d0s0 ** /dev/rdsk/c1t2d0s0 ** Last Mounted on / ** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ** Phase 3a - Check Connectivity ** Phase 3b - Verify Shadows/ACLs ** Phase 4 - Check Reference Counts ** Phase 5 - Check Cylinder Groups 12321 files, 1458202 used, 14019672 free (6560 frags, 1751639 blocks, 0.0% fragm entation) bash-3.2# mount /dev/dsk/c1t2d0s0 /mnt/ bash-3.2# cd /mnt/etc/system comment the following line -------------------------------------* Begin MDD root info (do not edit) #rootdev:/pseudo/md@0:0,5,blk * End MDD root info (do not edit) edit the line vfstab from md to rdsk --------------------------------------------#/dev/md/dsk/d5 /dev/md/rdsk/d5 / ufs /dev/dsk/c1t2d0s0 /dev/rdsk/c1t2d0s0 -

1 /

no ufs

no

Reboot with the rootmirror(2nd disk), it is boot fine and boot with the 1st disk in single user mode then apply patches after applied patch boot frm primary disk and check all the application is running fine and attach the 2nd disk to primary disk

bash-3.2# metattach d5 d10 removing mirror ----------------# metadetach d5 d10 d5: submirror d10 is detached bash-3.2# metaroot /dev/dsk/c1t0d0s0 bash-3.2# reboot bash-3.2# metaclear -r d5 d5: Mirror is cleared d20: Concat/Stripe is cleared bash-3.2# metaclear d10 d10: Concat/Stripe is cleared bash-3.2# metastat

You might also like