Operating System - HP-UX
1837490 Members
3952 Online
110117 Solutions
New Discussion

Re: ServiceGuard Cluster name change?

 
lshu
Frequent Advisor

ServiceGuard Cluster name change?

Hi,

I just wonder if it is possible to change the name of a cluster without recreating it from scratch.

Could anyone provide some info on this?
Your time is greatly appreciated.

thanks
Lorne
5 REPLIES 5
Sameer_Nirmal
Honored Contributor

Re: ServiceGuard Cluster name change?

It is not posible to change the cluster name without halting the currently running cluster, changing the cluster name and apply the new configuration again to creat a new cluster with new name.

Basically you need to create the cluster ascii and packages config files of currently running cluster and packages using cmgetconf. Then halt the cluster. Delete the cluster and cluster ID using cmdeleteconf. Edit the cluster ascii file and update it with new cluster name. Create new cluster using the cluster ascii and packages config files using cmapplyconf. Then start the cluster using cmruncl.
Sanjay_6
Honored Contributor

Re: ServiceGuard Cluster name change?

Hi,

You can do a cmgetconf to get the ascii configuration from the current cluster & packages
Take the cluster down.
Delete the cluster.
Recreate the cluster and packages using the ascii configuration files from the cmgetconf command.

This will not be exactly recrating the whole thing from scratch, but close.

Hope this helps.

Regds
A. Clay Stephenson
Acclaimed Contributor

Re: ServiceGuard Cluster name change?

As indicated, you are essentially going to have to take the cluster down and rebuild it (at least from the SG software standpoint) from near scratch. This seems like a lot of trouble for a rather meaningless gesture as the cluster name means nothing. I know of very few production clusters that would allow that downtime for such a trivial reason; of course, if this is a play environment then have at it.
If it ain't broke, I can fix that.
Emil Velez
Honored Contributor

Re: ServiceGuard Cluster name change?

Assuming you are not using CFS or RAC

cmhaltcl -f
cmdeleteconf -f
vi
change name
vgchange -C n vgXX (lock disk vg)
vgchange -a y vgXX
cmapplyconf
vgchange -a n vgXX (lock disk vg)
cmruncl

This should work. Might have to activate the volume group with the lock disk
lshu
Frequent Advisor

Re: ServiceGuard Cluster name change?

Thanks all, I get the idea. In my environment, it is CFS ready for RAC in the future, however now it is running active/passive mode. This is not a critical environment, there is a naming consistency to it so ideally I want to change the cluster name.

Last time I tried cmdeleteconf and ended up recovering disk group info from the disk. It was not a pleasant experience. I guess cmgetconf will do it.

any comments are welcome.
have a good weekend, all
Thanks
Lorne