cancel
Showing results for 
Search instead for 
Did you mean: 

replacing mirrored disk

kdclster
Level 3
Could some one provide the commands to replace the faulty mirrored disk in vxvm 5 without using vxdiskadm.

Thanks in Advance
1 ACCEPTED SOLUTION

Accepted Solutions

Dev_Roy
Level 6
Accredited Certified
What is the current state of the mirrored disk as in "vxdisk -o alldgs list" ?

Assuming the state as "Failed", the spare disk is of same as size as rootdisk and failed mirror disk has been physically reemoved and not seen by volume manager.

1.> Initialize the failed disk:
# vxdisksetup -if <spare disk> format=sliced

2.> Add the spare disk into the disk group configuration.
# vxdg -k -g <root dg name> adddisk <disk access name>=<disk media name>

Note: You need to provide the same "disk access name" as it was with the failed mirror disk.

3.>  You may run "vxrecover -bsE -g < root dg name>" to bring mirror disk with the sync of root disk.

Things may not alwyas be straight forward like this as their are various intermidiate state that volume manager can get into hence best to seek Symantec Technical Support at the time of any such failure specially if user is new to this product.

Regards,
Dev




View solution in original post

2 REPLIES 2

Dev_Roy
Level 6
Accredited Certified
What is the current state of the mirrored disk as in "vxdisk -o alldgs list" ?

Assuming the state as "Failed", the spare disk is of same as size as rootdisk and failed mirror disk has been physically reemoved and not seen by volume manager.

1.> Initialize the failed disk:
# vxdisksetup -if <spare disk> format=sliced

2.> Add the spare disk into the disk group configuration.
# vxdg -k -g <root dg name> adddisk <disk access name>=<disk media name>

Note: You need to provide the same "disk access name" as it was with the failed mirror disk.

3.>  You may run "vxrecover -bsE -g < root dg name>" to bring mirror disk with the sync of root disk.

Things may not alwyas be straight forward like this as their are various intermidiate state that volume manager can get into hence best to seek Symantec Technical Support at the time of any such failure specially if user is new to this product.

Regards,
Dev




kdclster
Level 3
Hi Dev,

Thanks for your advice. I have executed the same & the problem is now fixed.

Regards