Operating System - HP-UX
1844076 Members
2608 Online
110227 Solutions
New Discussion

Re: change hostname server nodes on SG

 

change hostname server nodes on SG

please i need your help to know how change hostname of our 2 nodes hpux 11.23 with service gurad , please i need step by step to change hostname and related confiuration on service gurad files
10 REPLIES 10
Johnson Punniyalingam
Honored Contributor

Re: change hostname server nodes on SG

Please Check below Thread.

http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1256631902410+28353475&threadId=1226221
Problems are common to all, but attitude makes the difference
Johnson Punniyalingam
Honored Contributor

Re: change hostname server nodes on SG

>>I have assigned points to 4 of 30 responses to my questions. <<<<<<<<<<

You also need to awards points for your frnds you sharing there valuable time and knowledge
above doesn't shows >Good<<
Problems are common to all, but attitude makes the difference
Stephen Doud
Honored Contributor

Re: change hostname server nodes on SG

The quick answer is to remove each node from the cluster and re-add it.

This will require that you modify any package configuration file that references the node(s), dropping the NODE_NAME reference to the departing node.

Then modify the cluster ASCII file, removing the departing nodes.

Next, cmapplyconf both the cluster and package configuration files.

With the node(s) removed, change their hostname.

Then update the cluster and package ASCII files with the new hostname, and run cmapplyconf again to add these new references to the cluster binary file.

Re: change hostname server nodes on SG

stephen please you can send step by step procedures as command line
Dima Kouznetsov
Advisor

Re: change hostname server nodes on SG

Shaik,

To change the host name of your node use this command:

# /sbin/set_parms hostname

But before you do this you need to delete the package and the cluster.

Halt the cluster:
# cmhaltcl -f

To delete package:
# cmdeleteconf -c clusterName -p packageName

To delete cluster:
# cmdeleteconf -f

Delete the cluster config file that you created in /etc/cmcluster:
# rm cluster.conf

After this, follow the same procedure to recreate your cluster.
melvyn burnard
Honored Contributor

Re: change hostname server nodes on SG

read the Managing Serviceguard manual, LOTS of info in there
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
freddy_21
Respected Contributor

Re: change hostname server nodes on SG

Hi shaik,

for changes hostname and impacted with service guard. u must do:
1. Make sure to disable auto start for cluster. edit /etc/rc.config.d/cmcluster.
2. Rename hostname and restart server
3. Edit /etc/cmcluster/cmclnodelist
4. Edit for rlogin access
5. Edit cluster configuration for hostname
6. Compile with cmapplyconf -C < cluster_configuration>
7. Check with cmviewcl. make sure node_name already changes.
8. Edit package configuration for node_name
9. copy package configuration to other node.
10. compile package configuration with cmapplyconf -P
11. startup cluster. with cumruncl -v. cluster and your package will be up.
12. enable auto start for cluster. /etc/rc.config.d/cmcluster.


I hope my step can help you.


Regards
Freddy

Re: change hostname server nodes on SG

my question is need to delete cluster and package configuration or i can just modify my ascii file with new host name
freddy_21
Respected Contributor

Re: change hostname server nodes on SG

ask i know.

You can edit configuration and compile again. no need to delete.


Regards
Freddy
Stephen Doud
Honored Contributor

Re: change hostname server nodes on SG

If you have a 2-node cluster and you want to rename both hosts, you might as well

1) update the cluster and package configuration files with the new hostnames
2) halt and delete the cluster:
# cmhaltcl -f
# cmdeleteconf -f
3) change the hostnames of the server using both 'hostname' and editing /etc/rc.config.d/netconf
4) recreate the cluster
# cmapplyconf -C -P ...
5) start the cluster