In Volume Serving mode, you must configure a coordinator volume for I/O fencing on the Volume Clients.
See About I/O fencing in a SFVS environment.
This procedure describes how to set up a coordinator volume.
To set up the coordinator volume
You can use the same domain as the one that the data disk groups use. You do not have to create a special domain for the coordinator volume.
You can use the same volume server set as the one used for data disk groups. You do not have to create a special volume server set for the coordinator volume.
vxadm -m sfms.example.com diskgroup create sample_cvol_dg Disk1_19 vsset=vsset1 dgtype=san
Where sfms.example.com is the SFMS hostname; sample_cvol_dg is the disk group name; vsset1 is the volume server set's name; and the disk group is of a SAN type.
vxadm -m sfms.example.com -g sample_cvol_dg volume create sample_cvolsample_cvol 10m
Where sfms.example.com is the SFMS hostname; sample_cvol_dg is the disk group name; sample_cvol is the SAN volume, and 10m is the size of the volume.
vxadm -m sfms.example.com -g sample_cvol_dg volume export sample_cvol sysA.veritas.com exportperms=RDWR
Where sfms.example.com is the SFMS hostname; sample_cvol_dg is the disk group name; sample_cvol is the SAN volume; and sysA is the Volume Client system.
Once you have set up the coordinator volume, you need to initialize it using the /opt/VRTSvcs/vxfen/bin/vxfencvol utility. Attach the SAN volume, and then initialize it with the following commands:
To attach the SAN volume and initialize the volume
vxadm -m sfms.example.com -g sample_cvol_dg volume attach sample_cvol sysA.example.com access_policy=RDWR io_access=ANY
/opt/VRTSvcs/vxfen/bin/vxfencvol -init -cvol /dev/vx/rdsk/testdom1/sample_cvol_dg/sample_cvol
vxadm -m sfms.example.com -g sample_cvol_dg volume unattach sample_cvol sysA.example.com.
Before you start to modify the vxfenmode file, you must stop fencing. You then need to modify the vxfenmode file. The file is in /etc/vxfenmode.
The following code is a sample configuration for SANVM in the vxfenmode file:
Edit the main.cf file to configure VCS for fencing.
To edit the VCS configuration to add the UseFence attribute
SCSI3
. For example, with the attribute added this portion of the file resembles:
Note
To ensure that I/O fencing is shut down properly, use the shutdown
command instead of the reboot
command.