Symantec logo

Editing VCS configuration files on existing nodes

After running uninstallsfrac, modify the configuration files on the remaining nodes to remove references to the removed nodes.

 To edit /etc/llthosts

On the each of the existing nodes, using vi or another editor, edit the file /etc/llthosts, removing lines corresponding to the removed nodes.

For example, if saturn is the node being removed from the cluster, remove the line "2 saturn" from the file:

0 galaxy

1 nebula

2 saturn

It should now resemble:

0 galaxy

1 nebula

 To edit /etc/gabtab

In the file /etc/gabtab, change the command contained in the file to reflect the number of systems after the node is removed:

/sbin/gabconfig -c -nN

Where N is the number of nodes remaining. For example, with two nodes remaining, the file resembles:

/sbin/gabconfig -c -n2

 To modify the VCS Configuration to remove a system

You can modify the VCS configuration using one of three possible methods. You can edit /etc/VRTSvcs/conf/config/main.cf (the VCS configuration file) directly, you can use the VCS GUI (Cluster Manager), or you can use the command line, as illustrated in the following example. Please refer to the Veritas Cluster Server User's Guide for details about how to configure VCS.

On one of the remaining nodes, as root user, run the following procedure.

  1. Make the configuration writable:

    # haconf -makerw

  2. Remove the system from the AutoStartList of the Oracle service group oradb1_grp by specifying the remaining nodes in the desired order:

    # hagrp -modify oradb1_grp AutoStartList galaxy nebula

  3. Remove the system from the SystemList of the oradb1_grp service group:

    # hagrp -modify oradb1_grp SystemList -delete saturn

  4. If you have other Oracle service groups with Oracle resources that have the node to be removed in their configuration, perform step 2 and step 3 for each of them.
  5. Delete the system from the CVMCluster resource by removing it from the CVMNodeId attribute keylist:

    # hares -modify cvm_clus CVMNodeId -delete saturn

  6. Delete the system from the cvm AutoStartList, by specifying only the remaining nodes in the desired order:

    # hagrp -modify cvm AutoStartList galaxy nebula

  7. Delete the system from the cvm service group SystemList:

# hagrp -modify cvm SystemList -delete saturn

  1. After deleting the node to be removed from all service groups in the configuration, delete the removed node from the cluster system list:

    # hasys -delete saturn

  2. Save the new configuration to disk:

    # haconf -dump -makero