Operating System - HP-UX
1834112 Members
2416 Online
110063 Solutions
New Discussion

Serviceguard basic question

 
SOLVED
Go to solution
Srinikalyan
Regular Advisor

Serviceguard basic question

I am going to halt the package using cmhaltpkg command. Once its completed, I am going to reboot the server keeping /etc/rc.config.d/cmcluster to set the AUTOSTART_CMCLD=1. I know the cluster and the nodes will be started automatically. Does the package alsobe started automatically or it should be done manually?
SG A11.17

Thanks,
Srini
7 REPLIES 7
Michal Kapalka (mikap)
Honored Contributor

Re: Serviceguard basic question

hi,

check cmviewcl -v

and search for

PACKAGE STATUS STATE AUTO_RUN NODE
packagename1 up running enabled servernodx

AUTO_RUN (enable)

mikap
melvyn burnard
Honored Contributor

Re: Serviceguard basic question

if you halt the cluster (cmhaltcl) then restart the cluster (cmruncl) this will automatically set the Global (AUTO_RUN) switching parameter to the value specified in the package configuration.
If that is set to YES, then the package wil automatically attempt to start on it's primary node.

If it is set to NO, then you will neeed to manuually start it
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Suraj K Sankari
Honored Contributor

Re: Serviceguard basic question

Hi,

If you set AUTOSTART_CMCLD=0 then when your server will up cluster will not start by that time you have to do manually.
cmruncl -v

it will start your cluster and package as well.

Suraj
Srinikalyan
Regular Advisor

Re: Serviceguard basic question

My package sets Auto_run to yes.

I am supposed to install the patches(requires reboot) on both the nodes at the same time. Can i just run 1. cmhaltpkg pkg1 alone. 2.do the patch install on both the nodes. 3. reboot (May be both the nodes)

My question is if the passive server comes first will the package be started there?

Asif Sharif
Honored Contributor

Re: Serviceguard basic question

Hi Srini,

Please read the below document for better understanding of "How Packages Run".

http://docs.hp.com/en/B3936-90140/ch03s04.html

Regards,
Asif Sharif
Regards,
Asif Sharif
Srinikalyan
Regular Advisor

Re: Serviceguard basic question

If the adoptive node first joined the cluster, will the package be started there in the adoptive node?

Thanks,
Srini
melvyn burnard
Honored Contributor
Solution

Re: Serviceguard basic question

I am supposed to install the patches(requires reboot) on both the nodes at the same time. Can i just run 1. cmhaltpkg pkg1 alone. 2.do the patch install on both the nodes. 3. reboot (May be both the nodes)

NO.
If you do this and the patch insatll requires a reboot, it does a kill -9 on all processes to perform th ereboot, and if the cmcld is still running you will get a Serviceguard TOC panic.

The safest way to do this is:
1. cmhaltnode on the adoptive node
2. swinstall the patches and let it reboot
3. make sure it rejoins the cluster ok.
4. move the package to the adoptive node
5. repeat steps 1-3 for the primary node
6. move the package back to the primary node
7. re-enable Global switching

or
1.cmhaltcl -fv
2.run the swinstall on both nodes at the same time
3. verify that both nodes come up ok
4. verfiy they start the cluster and the package ok.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!