You can also replace the coordinator disk group using the vxfenswap utility. The following example replaces the coordinator disk group vxfencoorddg with a new disk group vxfendg.
To replace the coordinator disk group
# hares -display coordpoint -attribute FaultTolerance -localclus
# hares -display coordpoint -attribute LevelTwoMonitorFreq -localclus
# haconf -makerw
# hares -modify coordpoint LevelTwoMonitorFreq 0
# haconf -dump -makero
# vxfenadm -d
I/O Fencing Cluster Information: ================================ Fencing Protocol Version: 201 Fencing Mode: SCSI3 Fencing SCSI3 Disk Policy: dmp Cluster Members: * 0 (sys1) 1 (sys2) RFSM State Information: node 0 in state 8 (running) node 1 in state 8 (running)
/etc/vxfendg
file.# cat /etc/vxfendg vxfencoorddg
# vxdisk -o alldgs list
DEVICE TYPE DISK GROUP STATUS rhdisk64 auto:cdsdisk - (vxfendg) online rhdisk65 auto:cdsdisk - (vxfendg) online rhdisk66 auto:cdsdisk - (vxfendg) online rhdisk75 auto:cdsdisk - (vxfencoorddg) online rhdisk76 auto:cdsdisk - (vxfencoorddg) online rhdisk77 auto:cdsdisk - (vxfencoorddg) online
# vxfentsthdw -c vxfendg
See Testing the coordinator disk group using the -c option of vxfentsthdw.
# vxdg deport vxfendg
Create the /etc/vxfenmode.test
file with new fencing mode and disk policy information.
Edit the existing the /etc/vxfenmode
with new fencing mode and disk policy information and remove any preexisting /etc/vxfenmode.test
file.
Note that the format of the /etc/vxfenmode.test file and the /etc/vxfenmode file is the same.
See the Cluster Server Installation Guide for more information.
# vxfenswap -g vxfendg [-n]
The utility performs the following tasks:
Backs up the existing /etc/vxfentab
file.
Creates a test file /etc/vxfentab.test
for the disk group that is modified on each node.
Reads the disk group you specified in the vxfenswap command and adds the disk group to the /etc/vxfentab.test
file on each node.
Verifies that the serial number of the new disks are identical on all the nodes. The script terminates if the check fails.
Verifies that the new disk group can support I/O fencing on each node.
Confirm whether you want to clear the keys on the coordination points and proceed with the vxfenswap operation.
Do you want to clear the keys on the coordination points and proceed with the vxfenswap operation? [y/n] (default: n) y
Do you wish to commit this change? [y/n] (default: n) y
If the utility successfully commits, the utility moves the /etc/vxfentab.test
file to the /etc/vxfentab
file.
The utility also updates the /etc/vxfendg
file with this new disk group.
# vxdg -t import vxfendg
# vxdg -g vxfendg set coordinator=on
Set the coordinator attribute value as "off" for the old disk group.
# vxdg -g vxfencoorddg set coordinator=off
# vxdg deport vxfendg
# cat /etc/vxfendg vxfendg
The swap operation for the coordinator disk group is complete now.
The vxfenswap utility rolls back any changes to the coordinator disk group.
# haconf -makerw
# hares -modify coordpoint LevelTwoMonitorFreq Frequencyvalue
# haconf -dump -makero
where Frequencyvalue is the value of the attribute.
For example, if there are four (4) coordination points in your configuration, then the attribute value must be lower than two (2).If you set it to a higher value than two (2) the CoordPoint agent faults.