Operating System - HP-UX
1832763 Members
2895 Online
110045 Solutions
New Discussion

Re: Renaming a Package Name in a Service Guard Cluster

 
SOLVED
Go to solution
Global Server Operation
Frequent Advisor

Renaming a Package Name in a Service Guard Cluster

I need to rename a package name witin my two node cluster. Service Guard version is 11.16.

Any suggestions on how to do this?

All replies are appreciated.
6 REPLIES 6
Mridul Shrivastava
Honored Contributor

Re: Renaming a Package Name in a Service Guard Cluster

You need to halt the package and then make necessary changes and then start the package again..

don't forget to distribute the package configuration and control script file to be copied on both nodes..

Anyway what's the requirement for renaming the package..
Time has a wonderful way of weeding out the trivial
Emil Velez
Honored Contributor

Re: Renaming a Package Name in a Service Guard Cluster

watch out..

halt the package
delete the package from the cluster
cmdeleteconf

then add the new package to the cluster. If you just changed the name of the pcakge and added to the cluster you would have 2 packges with the same configuration.

Emil
Stephen Doud
Honored Contributor
Solution

Re: Renaming a Package Name in a Service Guard Cluster

Emil is correct.
A new package name represents another package to Serviceguard.

Update the package configuration file with the new package name. Do you want to alter the directory name of the package to match?? If so, remember to alter the directory path on both nodes, and in the package configuration file.

Then halt and delete the old package and add the new package.

$ cmdeleteconf -f
$ cmapplyconf -P
$ cmviewcl -v -p
$ cmrunpkg

It is not necessary to distribute the package configuration file to the other node(s) in the cluster, but doing so permits you to admin changes to the package from the other node should you need to.
Global Server Operation
Frequent Advisor

Re: Renaming a Package Name in a Service Guard Cluster

Thanks to all replies. I will assign poinits after implementing my change this week. Thanks again.
Luk Vandenbussche
Honored Contributor

Re: Renaming a Package Name in a Service Guard Cluster

To make it completly consistent

mv oldpackage.conf newpackage.conf
mv oldpackage.cntl newpackage.cntl

on all the nodes
Mridul Shrivastava
Honored Contributor

Re: Renaming a Package Name in a Service Guard Cluster

Halt the package, do a

cmgetconf -p
/etc/cmcluster//.ascii
cmdeleteconf -p

Then update the package ascii file which you just received from cmgetconf at
/etc/cmcluster//.ascii with the new package name
and run

cmapplyconf -vP

and confirm with y to override.
Time has a wonderful way of weeding out the trivial