Mirror Breaking Procedure in SVM Before Patching
Break the Mirror before Patching
breaking the mirrors
Code:
metadetach d10 d12
metadetach d30 d32
metadetach d40 d42
- fsck the detached mirrors
Code:
fsck /dev/md/rdsk/d12
fsck /dev/md/rdsk/d32
fsck /dev/md/rdsk/d42
- Mount detached to modify /etc/system and /etc/vfstab
Code:
mount /dev/md/dsk/d12 /mnt
- Remove following line from /mnt/etc/system
Code:
rootdev:/pseudo/md@0:0,10...
- change following lines in /mnt/etc/vfstab
Code:
/dev/md/dsk/d10 /dev/md/rdsk/d10 / ufs 1 no
/dev/md/dsk/d30 /dev/md/rdsk/d30 /var ufs 1 no
/dev/md/dsk/d40 /dev/md/rdsk/d40 /opt ufs 1 no
To
Code:
/dev/dsk/c2t500000E01998D020d0s0 /dev/rdsk/c2t500000E01998D020d0s0 / ufs 1 no
/dev/dsk/c2t500000E01998D020d0s3 /dev/rdsk/c2t500000E01998D020d0s3 /var ufs 1 no
/dev/dsk/c2t500000E01998D020d0s4 /dev/rdsk/c2t500000E01998D020d0s4 /opt ufs 1 no
- Umount the Filesystem
Code:
umount /mnt
- Shut down the server for patching
- Patch the server
- Reboot the server
- a few days later attach the mirrors again
When the something happen during patching just boot from the mirror.
breaking the mirrors
Code:
metadetach d10 d12
metadetach d30 d32
metadetach d40 d42
- fsck the detached mirrors
Code:
fsck /dev/md/rdsk/d12
fsck /dev/md/rdsk/d32
fsck /dev/md/rdsk/d42
- Mount detached to modify /etc/system and /etc/vfstab
Code:
mount /dev/md/dsk/d12 /mnt
- Remove following line from /mnt/etc/system
Code:
rootdev:/pseudo/md@0:0,10...
- change following lines in /mnt/etc/vfstab
Code:
/dev/md/dsk/d10 /dev/md/rdsk/d10 / ufs 1 no
/dev/md/dsk/d30 /dev/md/rdsk/d30 /var ufs 1 no
/dev/md/dsk/d40 /dev/md/rdsk/d40 /opt ufs 1 no
To
Code:
/dev/dsk/c2t500000E01998D020d0s0 /dev/rdsk/c2t500000E01998D020d0s0 / ufs 1 no
/dev/dsk/c2t500000E01998D020d0s3 /dev/rdsk/c2t500000E01998D020d0s3 /var ufs 1 no
/dev/dsk/c2t500000E01998D020d0s4 /dev/rdsk/c2t500000E01998D020d0s4 /opt ufs 1 no
- Umount the Filesystem
Code:
umount /mnt
- Shut down the server for patching
- Patch the server
- Reboot the server
- a few days later attach the mirrors again
When the something happen during patching just boot from the mirror.
Comments