Editing VCS Configuration to Add the UseFence Attribute
After adding coordinator disks and configuring I/O fencing, edit the VCS configuration file, /etc/VRTSvcs/conf/config/main.cf, and add the UseFence cluster attribute.
-
Save the existing configuration:
# haconf -dump -makero
-
Stop VCS on all nodes.
# hastop -all
-
Make a backup copy of the main.cf file:
# cd /etc/VRTSvcs/conf/config
# cp main.cf main.orig
-
On one node, use vi or another text editor to edit the main.cf file. Modify the list of cluster attributes by adding the attribute, UseFence, and assign it a value of SCSI3. For example, with the attribute added this portion of the file resembles:
cluster vcs_cluster2 (
UserNames = { admin = "cDRpdxPmHpzS." }
Administrators = { admin }
HacliUserLevel = COMMANDROOT
CounterInterval = 5
UseFence = SCSI3
)
-
Save and close the file.
-
Verify the syntax of the file /etc/VRTSvcs/conf/config/main.cf:
# hacf -verify .
-
Using rcp, or some other available utility, copy the VCS configuration file to the other nodes. For example, on each node:
# rcp north:/etc/VRTSvcs/conf/config/main.cf
/etc/VRTSvcs/conf/config
-
With the configuration file in place on each system, shut down and then restart each system.
# shutdown -r
If you are sure that you have no users logged in, shutdown -r -y 0 works faster than shutdown -r.
Note
To ensure that I/O fencing is shut down properly, use the shutdown command instead of the reboot command.
|