1825770 Members
1948 Online
109687 Solutions
New Discussion

host name change

 
SOLVED
Go to solution
yash123
Regular Advisor

host name change

Hello,
Could please provide the procedure to change hostname in SG 11.16/18/19/20
7 REPLIES 7
g3jza
Esteemed Contributor

Re: host name change

Hi,
what do you mean by 'hostname in SG', the name of the cluster or the "real" hostname of nodes belonging to the cluster?

On the OS level, the hostname for each node/server is being changed in:
/etc/rc.config.d/netconf --> look for attribute 'HOSTNAME'

After changing the hostnames of the nodes, you then need to reflect the changes in the cluster ascii file as well....

yash123
Regular Advisor

Re: host name change

My understanding is mentioned below
halt the cluster
change node name and update /etc/hosts,cmnodelist
create new asciifile check and apply
start cluster and nose

please correct if I am wrong
g3jza
Esteemed Contributor
Solution

Re: host name change

yes,
halt the cluster, change the hostnames of your nodes (/etc/rc.config.d/netconf ; /etc/hosts ; cmclnodelist), reboot those nodes just to make sure.... but disable autorun of the nodes in /etc/rc.config.d/cmcluster (set it to 0) to not join the cluster automatically after the reboot.

Then get the current cluster config with 'cmgetconf > cluster.ascii' , change node_name parameters ; check the new config with cmcheckconf and && cmapplyconf....



yash123
Regular Advisor

Re: host name change

Ok no need to create new ascii file is it correct?
just update node name parameter and check and apply.
Is this same for SG V 19 &20
g3jza
Esteemed Contributor

Re: host name change

You don't need to create new cluster ascii file if you have any current already, but I always do 'cmgetconf' to make sure I'm editing the latest/current cluster ascii file.

As for SG 19/20, should not be different, but you can always check the latest manual for the given release on docs.hp.com,to see if it can be done online in these latest releases, as the latest releases usually contain more and more parameters, that can be changed online (without the need for halting packages / cluster).

yash123
Regular Advisor

Re: host name change

if we simply changed the hostname and didnt update config file so what will be the outcome.
g3jza
Esteemed Contributor

Re: host name change

The cluster configuration file contains node_name parameters to know, which nodes should be included in the cluster. If you leave the old hostnames in the cluster config, wonder how will the same nodes (but with new hostnames) be able to communicate together?