1833704 Members
3433 Online
110062 Solutions
New Discussion

replace node in Cluster

 
Nguyen Anh Tien
Honored Contributor

replace node in Cluster

Now I have 4 node cluster (called: node1,node2,node3,node4). Now I want to replaced node2 by new server (same I/0 card).
I consider that I should whether edit Cluster file, package control file or edit server configuration?
HP is simple
5 REPLIES 5
Sridhar Bhaskarla
Honored Contributor

Re: replace node in Cluster

Hi,

It depends. If the 'device files' are going to be the same, then you don't need to change the configuration but you still have to 'apply' the configuration as the MAC addresses of the lancards may change. If the 'device files' are going to change, then you will have to update the configuration (specify new interfaces for the network) and apply the configuration. You can change the device files to look like the old server using 'ioinit' command. 'man ioinit' for more information. Or you can actually take the make_tape_recovery tape of the old server and recover it on the newone. If the model is also going to be exactly the same, you can use the same boot disks too but ensure you have good make_tape_recovery tapes in any case.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Geoff Wild
Honored Contributor

Re: replace node in Cluster

Best would be to remove node2, then install the new server.

cmgetconf

cmhaltnode node2

shut it down

install new "node2"

cmcheckconf

cmapplyconf

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.
Steven E. Protter
Exalted Contributor

Re: replace node in Cluster

Review your node2 configuration. Make sure none of your applications will fail if the node is removed from the cluster.

Then remove the node from the cluster.

Test everything and make sure the entire cluster is functioning normally.

Then build the new node. If everything was functioning the way you want, the configuration files can be copied wholesale. Any references to hostname need to be changed if this in the new node.

With a good test plan you can get this done with no impact on users at all.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Stephen Doud
Honored Contributor

Re: replace node in Cluster

Unless the replacement for node2 has the exact same paths for the LANs, you must remove the first node2 from the cluster, then add the new node2. This will insure the cluster binary file contains the correct path information for the new node's LANs.

To see what I am referring to, use the 'cmviewconf | more' command to review the current cluster (the command inspects the cluster binary file - /etc/cmcluster/cmclconfig)

Before node2 can be removed,
- any package running on node2 must be moved off to another node
- any package that uses node2 must be configured such that it does not reference node2
(edit the package configuration file, comment out the NODE_NAME reference for node2 and 'cmapplyconf -P )

To remove the old node2 from the cluster remove reference to the old node2 from the cluster configuration file, and 'cmapplyconf -C '

To add the new node2, use:
'cmquercycl -C cluster.new -n node1 -n node2(new) -n node3 -n node4'

Transfer the discovered configuration information for the new node2 listed in the cluster.new file to your cluster.ascii config file.
and 'cmapplyconf -C '

- re-add NODE_NAME referece for new node2 to the package config files
- cmapplyconf -P ...

-StephenD.
Nguyen Anh Tien
Honored Contributor

Re: replace node in Cluster

I already found solution for my problem.
Thank for yours answer.
HP is simple