1833758 Members
2644 Online
110063 Solutions
New Discussion

Cluster hostname change

 
Cristina Reyes_1
Occasional Contributor

Cluster hostname change

Hello,
I would like to know if someone knows what is the procedure to change the hostname of the nodes in a cluster environment in the VPO database.

The problem I have is that the nodes are in the database with the short name and should be with the long name resolved by DNS, so the VPO applications doesn´t work, and when I open the browser the messages doesn´t appear unless I change the name of the nodes to it´s long name.

If someone can tell me what is the procedure to change the hostname in both nodes , I would be very gratefull.

Thanks for your help
Cr
10 REPLIES 10

Re: Cluster hostname change

how to change node names in cluster.

First you have to get current configuration
of cluster and each package in it.

cmgetconf -v cmcl.ascii
cmgetconf -v -p package_name package_name.ascii

Change names in each ascii file and
.rhosts if you use it or cmclnodelist

Shutdown both nodes in single user mode
and use
/sbin/set_parms hostname

to set new host name on each

Start both nodes without starting cluster
Then
cmcheckconf -v -C cmcl.ascii -p package_name.ascii ...

If it pass repeat same syntax but instead
of check use apply

Then cmruncl -v

Kind regards,

Hrvoje
Ralph Grothe
Honored Contributor

Re: Cluster hostname change

>Shutdown both nodes in single user mode
>and use
>/sbin/set_parms hostname

I would think you can avoid the shutdown.

Simply execute

hostname

uname -S

To make it permanent edit /etc/rc.config.d/netconf and redefine the variable HOSTNAME in there.
Then execute
/sbin/init.d/hostname start
Madness, thy name is system administration
Ashwani Kashyap
Honored Contributor

Re: Cluster hostname change

Wouldn't it be much more easier to make an alias to the new name from the existing name , both in the hosts file and the DNS database .
Kent Ostby
Honored Contributor

Re: Cluster hostname change

The following document was written by HP's ServiceGuard team for a step by step process to do this:

TITLE: Changing HOSTNAME on a ServiceGuard node
Edited to comply with ITRC Guidelines
Document ID:
UMCSGKBRC00006541
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Christian Schulze
Regular Advisor

Re: Cluster hostname change

Hi Kent,
where can I find this document ??

TIA

Christian
never touch a running system
G. Vrijhoeven
Honored Contributor

Re: Cluster hostname change

Hi Kent,

First check software on nodename based licensing if so aquire new licences.

Here is a solution.

Check for all the package config files with contain the "old node name. Adjust those files so the packages are not able to start up on that node, check and apply those. Mark these files.

Use set parms initial to alter the node name.

Add the new name to the clusterascii file and check and apply the configuration.

Alter the packages config files you marked to put in the new node name and check and apply those.

Hope this helps,

Gideon
Stephen Doud
Honored Contributor

Re: Cluster hostname change

Cristina - this sounds more like a VPO problem (VPO database) then a Serviceguard problem.

Consider going to the VPO forum?

-StephenDoud
Sanjay_6
Honored Contributor

Re: Cluster hostname change

Hi,

You'll have to reapply the cluster binaries once the hostnames have changed. You can delete the cluster configuration and change the hostname, re-edit the cluster configuration file with the new hostnames and reapply the configuration.

I'm not sure about the VPO database, but the long / short names of the cluste nodes should not affect the app in any manner.

Hope this helps.

Regds
Julio Yamawaki
Esteemed Contributor

Re: Cluster hostname change

Cristina,

instead of changing your hostname, consider putting an alias with the short name on DNS.
Cristina_5
New Member

Re: Cluster hostname change

Thanks all for your help!.
As Stephen says it seems more a VPO problem , so I contacted HP support.
The final solution I believe is to change the hostname of the VPO server in VPO database but I want to know how it affects the cluster.
Cristina