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
Use the cfsumount command to unmount the file system /mnt
on all the nodes:
# cfsumount /mnt system03
Stop all the cluster components:
# cfscluster stop -f system03
Open the VCS configuration for writing:
# haconf -makerw
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 name of the service group displayed by the hagrp -dep cvm command.
Write the new VCS configuration to disk:
# haconf -dump -makero
Edit the /etc/llthosts
file on the remaining nodes of the cluster, and remove the entry corresponding to the node being removed.
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.
Login to system03 and remove the following files:
# rm /etc/vxfenmode # rm /etc/llthosts # rm /etc/llttab # rm /etc/gabtab
If fencing was enabled on the cluster, run the following commands:
# rm /etc/vxfentab # rm /etc/vxfendg
If necessary, modify the /etc/gabtab
file. No change is required to this file if the /sbin/gabconfig command has only the argument -c, although Symantec recommends using the -nN option, where N is the number of cluster nodes. If the command has the form /sbin/gabconfig -c -nN, where N is the number of cluster nodes, then make sure that N is not greater than the actual number of nodes in the cluster, or GAB does not automatically seed.
Modify /etc/llthosts
file on each remaining nodes to remove the entry of the leaving node.
# /usr/sbin/shutdown -r now
Change to the install directory:
# cd /opt/VRTS/install
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.