Refreshing registration keys on the coordination points for server-based fencing

You can perform a planned refreshing of registrations on a CP server without incurring application downtime on the VCS cluster. Registration refreshing on a CP server should be performed if the CP server agent issues an alert on the loss of such registrations on the CP server database.

The following procedure describes how to refresh the coordination point registrations.

To refresh the registration keys on the coordination points for server-based fencing

  1. Ensure that the VCS cluster nodes and users have been added to the new CP server.

    This can be checked by running the following commands:

    # cpsadm -s cp_server -a list_nodes

    # cpsadm -s cp_server -a list_users

  2. Ensure that fencing is running on the cluster in customized mode using the coordination points mentioned in /etc/vxfenmode file.

    For example, enter the following command:

    # vxfenadm -d

  3. List the coordination points currently used by I/O fencing.

    # vxfenconfig -l

  4. Run the vxfenswap utility from one of the nodes of the cluster.

    The vxfenswap utility requires secure ssh connection to all the cluster nodes.

    Use -n to use rsh instead of default ssh.

    For example:

    # vxfenswap -n

    The command returns:

    VERITAS vxfenswap version <versoion> <platform>

    The logfile generated for vxfenswap is

    /var/VRTSvcs/log/vxfen/vxfenswap.log.

    Please Wait...

    VXFEN vxfenconfig NOTICE Driver will use customized fencing

    - mechanism cps

    Validation of coordination points change has succeeded on

    all nodes.

    You may commit the changes now.

    WARNING: This may cause the whole cluster to panic

    if a node leaves membership before the change is complete.

  5. You are then prompted to commit the change. Enter y for yes.

    The command returns a confirmation of successful coordination point replacement.

  6. Confirm the successful execution of the vxfenswap utility. If CP agent is configured, it should report ONLINE as it succeeds to find the registrations on coordination points. The registrations on the CP server and coordinator disks can be viewed using the cpsadm and vxfenadm utilities respectively.

    Note that a running online coordination point refreshment operation can be canceled at any time using the command:

    # vxfenswap -a cancel