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 system 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
-
Log in as root on a node other than system03.
-
Stop all the cluster components on system01:
# cfscluster stop -f system03
-
Open the VCS configuration for writing:
# haconf -makerw
-
Remove system03 from the system list attribute of the CVM and CFS 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 step 3 and the command that failed in step 4.
-
Write the new VCS configuration to disk:
# haconf -dump -makero
-
Remove the following files on system03:
# rm /etc/llthosts
# rm /etc/llttab
# rm /etc/gabtab
-
Reboot system01:
# /usr/sbin/shutdown -R -y 0
-
Change to the install directory:
# cd /opt/VRTS/install
-
From the scripts directory, run the deinstallation script:
# ./uninstallsfcfs
If you do not want to remove the VERITAS Cluster Server software, enter "N" (no) when prompted to uninstall VCS. For complete information on uninstalling VCS, refer to the VERITAS Cluster Server Installation Guide, on the software disc.
|