Removing a node from a cluster

This section describes how to remove a node from a cluster. As in previous examples, the following removes the node system03 from a three-node cluster. The procedure can be done from any node remaining in the cluster or from a remote host.

To remove a node from a cluster

  1. Log in as superuser on a node other than system03.

  2. Use the cfsumount command to unmount the file system /mnt on all the nodes:

    # cfsumount /mnt system03
  3. Stop all the cluster components:

    # cfscluster stop -f system03
  4. Open the VCS configuration for writing:

    # haconf -makerw
  5. Remove system03 from the system list attribute of the CVM and SFCFS service groups:

    # hagrp -modify service_group SystemList -delete system03
    
    # hagrp -modify cvm SystemList -delete system03
    

    where service_group is the command that displays the service groups by hagrp -dep cvm.

    If an error message similar to the following is displayed by either of the above commands:

      VCS:10456:Configuration must be ReadWrite. ('hagrp 
      -modify ...
      -delete(0x10f)',Sysstate=RUNNING,Channel=IPM,Flags=0x0)

    Repeat 4 and the command that failed in 5.

  6. Write the new VCS configuration to disk:

    # haconf -dump -makero
  7. Edit the /etc/llthosts file on the remaining nodes of the cluster, and remove the entry corresponding to the node being removed.

  8. Edit the /etc/gabtab file on the remaining nodes of the cluster and edit the gabconfig command to reflect the correct and new number of nodes in the cluster.

  9. Login to system03 and remove the following files:

    # rm /etc/vxfenmode
    # rm /etc/llthosts
    # rm /etc/llttab
    # rm /etc/gabtab
  10. If fencing was enabled on the cluster, run the following commands:

    # rm /etc/vxfentab
    # rm /etc/vxfendg
  11. Reboot system03:

    # /usr/sbin/shutdown -r now
  12. Change to the install directory:

    # cd /opt/VRTS/install
  13. From the scripts directory, run the uninstallsfcfs script and remove SFCFS on system03:

    # ./uninstallsfcfs

    If you do not want to remove the Veritas Cluster Server software, enter n when prompted to uninstall VCS.

    See the Veritas Cluster Server Installation Guide.