Use the following procedure to delete a node from an active cluster. This procedure begins with the assumption that the node status is UP.
If resource groups are online on the node, use the cluster_mgr command to move them to another node in the cluster.
To move the resource groups to another node in the cluster, there should be another node available in the failover policy domain of the resource group. If you want to leave the resource groups running in the same node, use the cluster_mgr command to detach the resource group. For example, the following command would leave the resource group web-rg running in the same node in the cluster web-cluster.
cmgr> admin detach resource_group "web-rg" in cluster web-cluster
Delete the node from the failure domains of any failover policies which use the node. In order to do this, the entire failover policy must be re-defined, deleting the affected node from the failure domain.
To stop HA services on the node web-node3, use the following cluster_mgr command. This command will move all the resource groups online on this node to other nodes in the cluster if possible.
cmgr> stop ha_services on node web-node3 for cluster web-cluster
If it is not possible to move resource groups that are online on node web-node3, the above command will fail. The force option is available to stop HA services in a node even in the case of an error. Should there be any resources which can not be moved offline or deallocated properly, a side-effect of the offline force command will be to leave these resources allocated on the node.
Perform Steps 4, 5, 6, and 7 if the node must be deleted from the configuration database.
Delete the node from the cluster. To delete node web-node3 from web-cluster configuration, use the following cluster_mgr command:
cmgr> modify cluster web-cluster Enter commands, when finished enter either "done" or "cancel" web-cluster ? remove node web-node3 web-cluster ? done
Remove node configuration from the configuration database.
The following cluster_mgr command deletes the web-node3 node definition from the configuration database.
cmgr> delete node web-node3
Stop all cluster processes and delete the configuration database.
The following commands stop cluster processes on the node and delete the configuration database.
# /etc/rc.d/init.d/failsafe stop # killall cdbd # cdbdelete /var/lib/failsafe/cdb/cdb.db
Disable cluster and HA processes from starting when the node boots. The following commands perform those tasks:
# fsconfig failsafe off