Operating System - HP-UX
1848705 Members
7831 Online
104036 Solutions
New Discussion

Re: How to remove package from 5 node cluster

 
Anil_32
Advisor

How to remove package from 5 node cluster

Hello Gurus:

We have 5 node cluster runnning with 5 different packages on MC/service guard. They are with names achp1, achp2, achp3, achp4 and achp5. We want to remove the nodes achp2 and achp5 from these 5 node cluster and we no longer want the packages running on these two nodes as they decomissioned these applications. The package names we want to remove are like apdev1 on achp2 and apdev5 on aphp5 servers respectively.

I would appreciate if you provide me the detail steps on how to proceed with this. Pls give me the details like on which node I should execute the commands.


Thanks in advance..
vakati.
4 REPLIES 4
Uwe Zessin
Honored Contributor

Re: How to remove package from 5 node cluster

Hello,
I think you're better served by a different forum, e.g.:
HP-UX
http://forums1.itrc.hp.com/service/forums/categoryhome.do?categoryId=156

or Linux
http://forums1.itrc.hp.com/service/forums/categoryhome.do?categoryId=188

because SG does not exist on OpenVMS.
.
Enrico P.
Honored Contributor

Re: How to remove package from 5 node cluster

Hi,
1. Halt the packages you want remove:

#cmhatlpkg -v apdev1
#cmhaltpkg -v apdev5

2. If you want remove the packages specified from all nodes of cluster:

#cmdeleteconf -p apdev1
#cmdeleteconf -p apdev5

3. Halt the node you want remove:

#cmhaltnode achp2
#cmhaltnode achp5

4. Comment the lines relative to the nodes achp2 and achp5 from the configuration cluster file (/etc/cmcluster/)

5. Verify the new configuration:

#cmcheckconf -v -C /etc/cmcluster/

6. If it run fine apply the new configuration

#cmapplyconf -v -C /etc/cmcluster/


You can run this command from the achp1 node.
Victor Fridyev
Honored Contributor

Re: How to remove package from 5 node cluster

Hi Vakati,

First of all you have to update cntl and conf files in order to exclude deleted nodes from the files. If you may not stop the cluster, you can rebuild it with cmapplyconf after the files update. In this case nodes 2 and 5 will be included in the cluster, but will not contain any package. In order to delete some nodes from a cluster, the cluster must be stopped. Look at the link below.

http://docs.hp.com/en/B3936-90065/ch07s03.html


HTH
Entities are not to be multiplied beyond necessity - RTFM
Geoff Wild
Honored Contributor

Re: How to remove package from 5 node cluster

You can execute the commands on any node.

Good docs on HA:

http://docs.hp.com/en/ha.html

Managing Serviceguard - will givew you the detailed steps:

http://docs.hp.com/en/B3936-90079/index.html

Just choose the doc for your version...

What version do you have?

what /usr/lbin/cmcld |grep Date


Examples:

root@sha1 [ / ]
# what /usr/lbin/cmcld |grep Date
A.11.16.00 Date: 03/15/04


So, sha1 is running 11.16

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.