Operating System - HP-UX
1827696 Members
3136 Online
109967 Solutions
New Discussion

Remove a dead node from SG

 
njia_1
Trusted Contributor

Remove a dead node from SG

Hi

We have two cluster runing and cluster A has 10 nodes and cluster B has 8 nodes.

I just recently moved one node (Call it N) from A to B. Hostname and IP address does not change and these two cluster share same subnet for HB and DATA.

There were 3 packages configured to run on N and these 3 packages were rebuild after I moved N from A to B.

Now I can not remove node configuration for N and those 3 packages from cluster A because N is no longer a member of the cluster.

any ideas how to remove the old configuratio
3 REPLIES 3
Devesh Pant_1
Esteemed Contributor

Re: Remove a dead node from SG

Njia,
You can disable package switching to particular nodes by using the -n option of the cmmodpkg command. The following disables the ability of pkg1 to switch to node lptest3:

# cmmodpkg -d -n lptest3 pkg1

To permanently remove a node from the cluster do the following


Use the following command to store a current copy of the existing cluster configuration in a temporary file:

# cmgetconf -C temp.ascii

Specify the new set of nodes to be configured (omitting N) and generate a template of the new configuration:

# cmquerycl -C clconfig.ascii -c cluster1 -n A -n B ......

Edit the file clconfig.ascii to check the information about the nodes that remain in the cluster.

Verify the new configuration:

# cmcheckconf -C clconfig.ascii

Apply the changes to the configuration and send the new binary configuration file to all cluster nodes:

# cmapplyconf -C clconfig.ascii

Note: If you are attempting to remove an unreachable node that has many packages dependent on it, especially if the dependent packages use a large number of EMS resources, you may see the following message:
The configuration change is too large to process while the cluster is running. Split the configuration change into multiple requests or halt the cluster.

In this situation, you must halt the cluster to remove the node.


thanks
DP

"Edited to comply with ITRC Guidelines"
Stephen Doud
Honored Contributor

Re: Remove a dead node from SG

To remove a node from a cluster, all references to that node must be removed from the cluster binary file.
Use 'cmviewconf | more' and scan for the departing nodename. You will see that the nodename is referenced in both cluster AND package locations.
Therefore, to remove a node from a cluster, 1) insure all packages are halted on that node
2) edit the cluster configuration file on the old cluster, remove references to the departing node
3) edit the package configuration files, removing NODE_NAME references to the departing node
4) cmapplyconf -C ...
5) If cmapplyconf succeeds, 'cmviewcl -v' should show no references to the departing node, and a simple 'cmquerycl' will show the departing node as "unowned"

If you reach this point - you can now add the departing node to the new cluster.
Geoff Wild
Honored Contributor

Re: Remove a dead node from SG

Yes you can remove a disconnected node from a cluster...see steps in:

http://docs.hp.com/en/B3936-90079/ch07.html

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.