9.13 Removing (Leaving) a Node from the Cluster

When a node leaves a cluster, the node is no longer visible to the other nodes in the cluster. You might want a node to leave the cluster to perform maintenance on the server, or to upgrade the server during a rolling cluster upgrade.

9.13.1 Removing One Node at a Time

The cluster leave command allows you to remove a node from a cluster so that the node is not visible to other servers in the cluster.

  1. Log in as the root user on the node in the cluster that you want to remove, then enter the following at a command prompt:

    cluster leave

    After the node has successfully left the cluster, the following message is displayed:

    No longer a member of cluster cluster_name

9.13.2 Removing All Nodes at the Same Time (Taking the Cluster Down)

The cluster down command removes all cluster nodes from the cluster. This command has the same effect as executing the cluster leave command on every server in the cluster. You are prompted to confirm the cluster down.

  1. Log in as the root user on any node in the cluster, then enter the following at a command prompt:

    cluster down
  2. When you are prompted to confirm the cluster down command, specify Yes, then press Enter.