Symantec logo

Before you configure coordinator disks

I/O fencing requires coordinator disks to be configured in a disk group that each cluster system can access. The use of coordinator disks enables the vxfen driver to resolve potential split-brain conditions and prevent data corruption. A coordinator disk is not used for data storage, so it can be configured as the smallest LUN on a disk array to avoid wasting space.

Coordinator disks must meet the following requirements:

Setting up the disk group for coordinator disks

If you have already added and initialized disks you intend to use as coordinator disks, you can begin the following procedure at step 7.

 To set up the disk group for coordinator disks

  1. Physically add the three disks you intend to use for coordinator disks. All cluster nodes should physically share them. Veritas recommends that you use the smallest size disks or LUNs, so that space for data is not wasted.
  2. If necessary, use the vxdisk scandisks command to scan the disk drives and their attributes. This command updates the VxVM device list and reconfigures DMP with the new devices. For example:

    # vxdisk scandisks

  3. Use the vxdmpadm getdmpnode command to determine the VxVM name by which a disk drive (or LUN) is known.
  4. In the following example, a disk with the AIX device name /dev/rhdisk75 is identified by VxVM as EMC0_17:

    # vxdmpadm getdmpnode nodename=hdisk75

    NAME STATE ENCLR-TYPE PATHS ENBL DSBL ENCLR-NAME

    ============================================================

    EMC0_17 ENABLED EMC 1 1 0 EMC0

  5. You can, as an option, run the command vxdisk list vxvm_device_name to see additional information about the disk, including the AIX device name. For example:

    # vxdisk list EMC0_17

  6. Use the command vxdisksetup command to initialize a disk as a VxVM disk. The example command that follows specifies the CDS format:

    # vxdisksetup -i vxvm_device_name format=cdsdisk

    For example:

    # vxdisksetup -i EMC0_17 format=cdsdisk

    Repeat this command for each disk you intend to use as a coordinator disk.

  7. From one node, create a disk group named vxfencoorddg. This group must contain an odd number of disks or LUNs and a minimum of three disks. Symantec recommends that you use only three coordinator disks, and that you use the smallest size disks or LUNs to conserve disk space.

    For example, assume the disks have the device names EMC0_12, EMC0_16, and EMC0_17.

  8. On any node, create the disk group by specifying the device name of one of the disks.

    # vxdg -o coordinator=on init vxfencoorddg EMC0_12

  9. Add the other two disks to the disk group.

    # vxdg -g vxfencoorddg adddisk EMC0_16

    # vxdg -g vxfencoorddg adddisk EMC0_17

See the Veritas Volume Manager Administrator's Guide.

Requirements for testing the coordinator disk group

Review the requirments for testing the coordinator disk group.


Run the vxfentsthdw utility

Review the following guidelines on testing support for SCSI-3:

Testing the coordinator disk group

After Setting up the disk group for coordinator disks, test the coordinator disk group.

 To test the coordinator disk group

  1. To start the utility from one node, type the following command:

    # /opt/VRTSvcs/vxfen/bin/vxfentsthdw

    Make sure system-to-system communication is functioning properly before performing this step.

    See the vxfentsthdw(1M) man page.

  2. After reviewing the overview and warning about overwriting data on the disks, confirm to continue the process and enter the node names.
  3. Enter the name of the disk you are checking.

    For example, assume you must check a shared device known by two systems as /dev/rhdisk76.

Creating the vxfendg file

After Testing the coordinator disk group, configure it for use.

 To create the vxfendg file

  1. To deport the disk group, type the following command:

    # vxdg deport vxfencoorddg

  2. Import the disk group with the -t option to avoid automatically importing it when the nodes restart:

    # vxdg -t import vxfencoorddg

  3. Deport the disk group. This operation prevents the coordinator disks from serving other purposes:

    # vxdg deport vxfencoorddg

  4. On all nodes, type:

    # echo "vxfencoorddg" > /etc/vxfendg

    Do no use spaces between the quotes in the "vxfencoorddg" text.

    This command creates the /etc/vxfendg file, which includes the name of the coordinator disk group. Based on the contents of the /etc/vxfendg file, the rc script creates the /etc/vxfentab file for use by the vxfen driver when the system starts. The rc script also invokes the vxfenconfig command, which configures the vxfen driver to start and use the coordinator disks listed in /etc/vxfentab. /etc/vxfentab is a generated file; do not modify this file.