Modifying VCS configuration to use I/O fencing
After adding coordinator disks and configuring I/O fencing, add the UseFence = SCSI3 cluster attribute to the VCS configuration file, /etc/VRTSvcs/conf/config/main.cf. If you reset this attribute to UseFence = None, VCS does not make use of I/O fencing abilities while failing over service groups. However, I/O fencing needs to be disabled separately.
To modify VCS configuration to enable I/O fencing
-
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 UseFence attribute and assigning its value of SCSI3.
cluster rac_cluster101
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 /etc/VRTSvcs/conf/config
-
Using rcp or another utility, copy the VCS configuration file from a node (for example, north) to the remaining cluster nodes.
For example, on each remaining node, enter:
# rcp north:/etc/VRTSvcs/conf/config/main.cf \
/etc/VRTSvcs/conf/config
-
On each node enter the following sequence of commands. These commands brings up VCS processes:
# /opt/VRTS/bin/hastart