How to remove a node from a VCS cluster without rebooting

book

Article ID: 100038166

calendar_today

Updated On:

Description

Description

As part of removing a node from a cluster, the  /etc/llthost file needs to be edited on all hosts in the cluster

1. On each of the existing nodes, edit the /etc/llthosts  file to remove lines that contain references to the removed nodes

For example, to remove a node called "nebuma," update the /etc/llthosts file as follows:

Before                               After

0 galaxy                          O galaxy
1 nebula                          2 saturn
2 saturn                           3 pluto
3 pluto

Remove the entire line  "1 nebula" on all nodes.
Note: DO NOT renumber the node id's  to make them sequential.

The current active nidmap is displayed by running

# /etc/vx/bin/vxclustadm vxclustadm nidmap
Name   CVM Nid CM Nid State
galaxy  3   0 Joined: Slave
nebula  4   1 Out of Cluster   << removed from cluster 
saturn  2   2 Joined: Master
pluto   5   3 Joined: Slave

The removed node shows  status = "Out of Cluster" as expected. 

 

2. Remove any references to the removed node from the main.cf. By default, this is located at /etc/VRTSvcs/conf/config.

To update status of the nidmap, on the remaining nodes of the existing cluster, run the following commands

# /etc/vx/bin/vxclustadm/vxclustadm -m vcs reinit

 

3. Reinit allows nodes to be added or removed from a cluster dynamically, without stopping the cluster. The command causes vxclustadm to re-read the cluster configuration file, and implement any required changes to the membership of the cluster.  The -m vcs option specifies the VCS cluster monitor, which implies the existence of the cluster configuration file /etc/VRTSvcs/conf/config/main.cf.

# /etc/vx/bin/vxclustadm  vxclustadm nidmap
Name   CVM Nid CM Nid State
galaxy  3   0 Joined: Slave
saturn  2   2 Joined: Master
pluto   5   3 Out of Cluster   << removed from cluster

The entry for the removed node  is no longer displayed and only pluto shows status = "removed from cluster" as expected 

 

Issue/Introduction

How to remove a node from a VCS cluster without rebooting