1833331 Members
6778 Online
110051 Solutions
New Discussion

Change package name

 
SOLVED
Go to solution
Ryan Ma
Frequent Advisor

Change package name

I would like to change a package name of MC/ServiceGuard.
What is the step of doing this?
Is it necessary to shutdown cluster during changing name?

Thx.
16 REPLIES 16
Varghese Mathew
Trusted Contributor

Re: Change package name

Hi,

Recently we have done the similar acitivities on our servers. What we have done :

1) Halted the cluster and packages.
2) Edited the package configuration file and changed the package name to "newpkg" on both the nodes across cluster.
3) Kept the debug file so that only the volume group, the file systems and the relocatable IP addrress come up, and not the application - in the package.
4) Started the cluster we saw two packages specified , one was the already removed package and the other one was the new name.
We have confidently removed the former one by cmdeleteconf -p "oldpkg" and then checked cluster for errors by
cmcheckonf and have applied the same. Restarted cluster. Done

As ours was some sort of crash and burn operation there was no problems for doing all these..

Cheers !!!
Mathew


Cheers !!!
G. Vrijhoeven
Honored Contributor

Re: Change package name

Hi,

1. it is not nessesery to halt the cluster, just the package.
2. remove the package
3. alter the package name in the configuration file. check conf and apply conf it, and copy it around.
3. start the "new" package.

Gideon
Ryan Ma
Frequent Advisor

Re: Change package name

Hi Gideon,

Can you give me more details of the command?

How can I remove the package? Use what command?
melvyn burnard
Honored Contributor

Re: Change package name

The Managing MC/ServiceGuard manual available at:
http://docs.hp.com/hpux/ha
will help you accomplish this. There are examples of various things you can do, as well as a table listing what can be changed with the cluster still running.

My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
G. Vrijhoeven
Honored Contributor
Solution

Re: Change package name

Hi again,

1. cmhaltpkg
2. cmdeleteconf -p
3. edit conf file.
4. cmcheckconf -v -P conf_file
5. if ok => cmapplyconf -v -P conf_file
6. copy the config file to all nodes (rcp -p file machine:/dir/file

Gideon
G. Vrijhoeven
Honored Contributor

Re: Change package name

Hi,

I like to add:

change the DNS configuration so the new name is known.

Gideon
Sanjay_6
Honored Contributor

Re: Change package name

Hi Ryan,

To change the packge name you have to shutdown the package. The cluster can still stary up and other packages can stay running in the cluster,

http://us-support2.external.hp.com/cki/bin/doc.pl/sid=fa370745118b90f413/screen=ckiDisplayDocument?docId=200000057370714

Here is a link on the service Guard command reference.

http://us-support2.external.hp.com/cki/bin/doc.pl/sid=95c6e06c049ae765e4/screen=ckiDisplayDocument?docId=200000055097174

If you need more help, post your reply.

Hope this helps.

Regds
Ryan Ma
Frequent Advisor

Re: Change package name

Thanks for all the reply.

I have new question.

One of the node's name in cluster has to be changed. ( Because DNS is being used )

I am afraid there is something to be changed in MC/SG setting? Do I need to reform the cluster again as the host name is changed?

Thx
Sanjay_6
Honored Contributor

Re: Change package name

Hi Ryan,

I think you have to delete the node from the cluster and then add the node again to the cluster if you wish to change the node name. This is how you can proceed.

Modify the cluster configuration and the packge configuration to exclude the node from the cluster. Check the package and cluster configuarion for errors using cmcheckconf. If there are no errors apply the configuration. Next do the node name change and the DNS changes. Once that is okay, reconfigure the cluster configuration file and the packge configuration file and check for errors. If no errors are found just apply the changes.

You can use the "cmgetconf" command to collect the present cluster configuration, "cmcheckconf" to check the cluster configuration and "cmapplyconf" to apply the package configuration.

Hope this helps.

Regds

G. Vrijhoeven
Honored Contributor

Re: Change package name

Hi,

Sanjay is right (bunny:-). Remove the node from the cluster. Change the node name (set_parms), cmqueryconf a new asci file edit it, check it and apply it. This should do the it. But DNS is a tool that enables flexability in hostnames/ipadresses, why do you have to change the name. It is easier to change the name of an other server?

Gideon
Ryan Ma
Frequent Advisor

Re: Change package name

I have to server say server1 and server2.

Later server2 is set to use DNS and the name of server2 becomes server2.company.com when I use nslookup.

Is it necessary to re-config the MC/SG in this case?
Sanjay_6
Honored Contributor

Re: Change package name

Hi Ryan,

You don't have to change the configuration in this case. If the server name is server_name and if it is configured in DNS where the domain name is domain.com, nslookup will return the name as server_name.domain.com

So it is okay. You don't have to reconfigure the SG in this case.

Hope this helps.

Regds
Ryan Ma
Frequent Advisor

Re: Change package name

Hi Sanjay,

But I have problem on starting package on the server which has just changed to use DNS ( server2 )

[server2:/] cmruncl
Permission denied accessing node server1.
cmruncl : Waiting for cluster to form..................


But I can start properly at server1 and both nodes are joined in the cluster.
Sanjay_6
Honored Contributor

Re: Change package name

Hi Ryan,

Let me assume that you are using the same DNS for name resolution on both the servers server1 and server2. Now you must be using the resolver to resolve the ip and system name. Check the settings over there, you should define the nsswitch to look for /etc/hosts first and then to DNS. Your /etc/resolv.conf file should look like this,

search domain.com
nameserver name_server1_ip
nameserver name_server2_ip

Here is a thread on how you can configure the resolver,

http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90147/B2355-90147_top.html&con=/hpux/onlinedocs/B2355-90147/00/00/28-con.html&toc=/hpux/onlinedocs/B2355-90147/00/00/28-toc.html&searchterms=/etc/resolv.conf&queryid=20011202-184830

Now your /etc/nsswitch.conf file should look like this,

hosts file DNS

Here is the thread on /etc/nsswitch.conf,

http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90147/B2355-90147_top.html&con=/hpux/onlinedocs/B2355-90147/00/00/9-con.html&toc=/hpux/onlinedocs/B2355-90147/00/00/9-toc.html&searchterms=/etc/nsswitch.conf&queryid=20011202-184810


You can also try this,

Edit /etc/cmcluster/cmclnodelist file and add this entry,

server1 server1_ip
server2 server2_ip

Here you have to create a file called "cmclnodelist" in /etc/cmcluster directory.

Now try and start the cluster.

Hope this helps.

Regds

Sanjay_6
Honored Contributor

Re: Change package name

Hi Ryan,

Sorry, but just saw a mistake in my earlier post. In your /etc/nsswitch file the hosts entry should look like,

hosts files DNS

and it should not be

hosts file DNS

Hope this helps.

Regds
Sanjay_6
Honored Contributor

Re: Change package name

Hi Ryan,

There is one more thing. The cmclnodelist as mentioned above is not used for hostname resolution. Instead it is used by MC/SG as a substitute for .rhosts file. The format as mentioned in the earlier post for cmclnodelist is wrong and the correct format for that file is the same as .rhosts file.

Sorry for the mistake.

Hope this helps.

Regds