My question: Hi All, 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 After the engg replaces the disk, issue this : 4. vxdctl enable 5./usr/lib/vxvm/bin/vxdisksetup -i c2t8d0 (Initialize the new disk) 6.vxdg -g rootdg adddisk rootmirror=c1t1d0 ( Put the disk under the VX control) 7./etc/vx/bin/vxrootmir rootmirror 8.vxassist mirror home rootmirror - done vxassist mirror opt rootmirror - done vxassist mirror swapvol rootmirror - done vxassist mirror var rootmirror 9.vxprint -ht Your comments are really appreciated. The answer: Infact everything mentioned was correct but i missed one step , so i am mentioning the complete steps below.I was even successful doing the replacement; Breaking a mirrored disk for replacement which is under Veritascontrol 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 Regards, Luke http://unixadmintalk.com _______________________________________________ sunmanagers mailing list sunmanagers@sunmanagers.org http://www.sunmanagers.org/mailman/listinfo/sunmanagersReceived on Tue Oct 3 14:25:08 2006
This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:44:01 EST