Operating System - HP-UX
1829820 Members
2195 Online
109993 Solutions
New Discussion

Halting a serviceguard package

 
AL_3001
Regular Advisor

Halting a serviceguard package

Hi Friends,

We are getting firmware upgarded on one of our servers which is a two node cluster. We have to halt the package on the primary node and do not wish to run it on a failback node. I will do it on primary node using command

cmhaltpkg -v &

This will halt the package and than i can proceed to halt the server with shutdown command. I am a little confused whether i should be using cmhaltcl -fv & to halt the cluster or ust halting the package using cmhaltpkg is enough.

Kindly provide your valuable suggestions.

Thanks.

Regards,
Ashish A. Lahori
7 REPLIES 7
Jeeshan
Honored Contributor

Re: Halting a serviceguard package

Hi Ashish

use the command

#cmhaltpkg -v -n
a warrior never quits
AL_3001
Regular Advisor

Re: Halting a serviceguard package

Gurus,

I forgot to add, that AUTO_RUN is enabled. Should i disable it using :

cmmodpkg -d

and than halt the package so that the package does not failover to secondary node.

Kindly assist.

Regards,
Ashish
Anka
Trusted Contributor

Re: Halting a serviceguard package

#cmmodpkg -d pkg1
OR
#cmmodpkg -d -n noneX pkg1

then #cmhaltpkg -v <- you can do it but it is not necessary if you use -f option when halting the node

then #cmhaltnode nodeY

OR

#cmhaltnode -f -v nodeY

To halt a node with a running package, use the -f option. If a package
was running that can be switched to an adoptive node, the switch takes
place and the package starts on the adoptive node.

The following link can help you: http://docs.hp.com/en/B3936-90122/B3936-90122.pdf
AL_3001
Regular Advisor

Re: Halting a serviceguard package

Anka,

You are confusing me... Let me make it simple for you and you make it simple for me by replying, what is required and not what all that can be done. Be specific.

We are upgrading firmware on one of our servers and need to shutdown the server. It happens to be the primary node of a two node cluster. I do not want to start the package on secondary node after halting the package on failover node. At present, AUTO_RUN is enabled.

My question is:

1. Should i use cmmodpkg -d to disable auto run?

Please don't confuse.

Regards,
Ashish
Jeeshan
Honored Contributor

Re: Halting a serviceguard package

Ashish your command is ok. for more precisely you can check with man page

#man cmmodpkg
a warrior never quits
Anka
Trusted Contributor

Re: Halting a serviceguard package

Steps that should be followed:
1) disable package switching
2) stop all the packages on that node which will be shutdown
3) halt the cluster on this node (not the whole cluster)

Commands that should be executed:
1) #cmmodpkg -d -v package_name
The man page shows:
"cmmodpkg {-e|-d} [-n node_name]... [-v] package_name..."
You have written the command wrong.

2) #cmhaltpkg -v package_name
if it is the only package which runs on that node then do step 3)
If it is not the only package that is started on this node, then stop all the packages

3) #cmhaltnode node_name

Then you can shutdown the system

For more information see the man pages
AL_3001
Regular Advisor

Re: Halting a serviceguard package

Thanks for your valuable inputs.