Operating System - HP-UX
1834068 Members
3011 Online
110063 Solutions
New Discussion

Change hostnames MC/SG cluster

 
Jimmy Aulestia_2
Frequent Advisor

Change hostnames MC/SG cluster

I have a cluster with two nodes, can i change the nodes' hostname without affect the cluster?

Jimmy
6 REPLIES 6
Jeff_Traigle
Honored Contributor

Re: Change hostnames MC/SG cluster

Yes. High level steps:

1. Make sure all packages are running on nodeA
2. Remove nodeB from cluster
3. Rename nodeB
4. Add nodeB to cluster as new hostname
5. Move all packages to nodeB
6. Remove nodeA from cluster
7. Rename nodeA
8. Add nodeA to cluster as new hostname
--
Jeff Traigle
Steven E. Protter
Exalted Contributor

Re: Change hostnames MC/SG cluster

Shalom,

Make sure the new names are supported in /etc/hosts or the cluster may not function.

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
Jaime Bolanos Rojas.
Honored Contributor

Re: Change hostnames MC/SG cluster

Jimmy, most likely you already know, but remember to use a hostname with 8 characters the most.

Also a thread that you might says a couple of important things:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=764318&admit=-682735245+1153330372462+28353475

Regards,

Jaime.
Work hard when the need comes out.
Jimmy Aulestia_2
Frequent Advisor

Re: Change hostnames MC/SG cluster

what are the commands in 2) y 4)?

I dont't find a command for remove or add a node in an runnig cluster.

Thanks
Jimmy
Jeff_Traigle
Honored Contributor

Re: Change hostnames MC/SG cluster

To remove and add nodes to a cluster, you need to edit cmclconfig.ascii (or whatever your cluster config file is named) and the package config files that reference the hostname. Then you have to run cmapplyconf. Specific steps should be outlined in the Managing Serviceguard manual, which you can get at the following URL:

http://docs.hp.com/en/ha.html#Serviceguard
--
Jeff Traigle
Jeff_Traigle
Honored Contributor

Re: Change hostnames MC/SG cluster

And, if you're using a version that uses /etc/cmcluster/cmclnodelist, you'll need to change the hostnames in there on both nodes just prior to running the cmapplyconf command.
--
Jeff Traigle