Breaking a mirrored disk for replacement which is under Veritas control
I am just a beginner in vxvm stuff. I just prepared some steps to
replace a mirrored disk which is under veritas control without using
the vxdiskadm menu based command.I want some one to advise whether the
below steps are correct as i am not sure whether it leaves state
information about the disks stale in the vxvm config database if i
proceed like this .
In this scenario disk to be replaced is rootmirror(VM disk)
1.vxprint -ht | grep rootmirror
Disassociate and then remove all of the operating system plexes on the
mirror device "rootmirror":
2.vxplex -g rootdg -o rm dis home-02 opt-02 rootvol-02 swapvol-02 var-02
After removing all plexes remove the disk from veritas control :
3.vxdg -g rootdg rmdisk rootmirror
4.vxdisk rm c1t1d0s2
After the engg replaces the disk, issue this :
5. vxdctl enable
6./usr/lib/vxvm/bin/vxdisksetup -i c2t8d0 (Initialize the new disk)
7.vxdg -g rootdg adddisk rootmirror=c1t1d0 ( Put the disk under the VX control)
8./etc/vx/bin/vxrootmir rootmirror
9.vxassist mirror home rootmirror - done
vxassist mirror opt rootmirror - done
vxassist mirror swapvol rootmirror - done
vxassist mirror var rootmirror
10.vxprint -ht
Your comments are really appreciated.
Last edited by unixnerd; 10-02-2006 at 03:02 PM.
|