If the disk becomes defective or inoperable and you want to switch to a new diskgroup in a cluster that is offline, then perform the following procedure.
In a cluster that is online, you can replace the disks using the vxfenswap utility.
Review the following information to replace coordinator disk in the coordinator disk group, or to destroy a coordinator disk group.
Note the following about the procedure:
When you add a disk, add the disk to the disk group vxfencoorddg and retest the group for support of SCSI-3 persistent reservations.
You can destroy the coordinator disk group such that no registration keys remain on the disks. The disks can then be used elsewhere.
To replace a disk in the coordinator disk group when the cluster is offline
# hastop -all
Make sure that the port h is closed on all the nodes. Run the following command to verify that the port h is closed:
# gabconfig -a
# svcadm disable -t vxfen
This removes any registration keys on the disks.
# vxdg -tfC import 'cat /etc/vxfendg'
-t specifies that the disk group is imported only until the node restarts.
-f specifies that the import is to be done forcibly, which is necessary if one or more disks is not accessible.
-C specifies that any import locks are removed.
Then, add the new disk to the vxfencoorddg disk group:
If you destroyed the disk group in step 5, then create the disk group again and add the new disk to it.
See the Veritas Cluster Server Installation Guide for detailed instructions.
If the diskgroup already exists, then add the new disk to it.
# vxdg -g vxfencoorddg -o coordinator adddisk disk_name
# vxdg deport 'cat /etc/vxfendg'
# svcadm enable vxfen
# gabconfig -a
Make sure that port b membership exists in the output for all nodes in the cluster.
# vxfenadm -d
Make sure that I/O fencing mode is not disabled in the output.