Operating System - HP-UX
1819791 Members
3201 Online
109607 Solutions
New Discussion юеВ

Force Serviceguard package to HALT!

 
Gene Laoyan
Super Advisor

Force Serviceguard package to HALT!

I have a Serviceguard cluster that manages several HP Integrity Virtual Machines. I need to shutdown all of them. Two of them will not shutdown/halt. It thinks the packages are trying to come back up. How can I force the package to shutdown?

Thanks
6 REPLIES 6
Ivan Krastev
Honored Contributor

Re: Force Serviceguard package to HALT!

Gene Laoyan
Super Advisor

Re: Force Serviceguard package to HALT!

I tried that it it came up with some error saying the package is still trying to start. I also tried to halt the node and it failed to do so. I ultimately bounced it and it came back up fine. Then rejoined the SG cluster with no problems. Why did it hang trying to start a package?
Patrick Wallek
Honored Contributor

Re: Force Serviceguard package to HALT!

What do the package logs say? Check the serviceguard logs for more information what the problem may have been.
A. Clay Stephenson
Acclaimed Contributor

Re: Force Serviceguard package to HALT!

I would first look for and apply any MC/SG patches appropriate to your version; that tends to fix many otherwise strange problems.

As noted, you should check the logs to see how far your cmhaltpkg comand actually got.
If it ain't broke, I can fix that.
gherbi
Occasional Advisor

Re: Force Serviceguard package to HALT!

Hi,

I think you want to shutdown all packages on both nodes,
you can also force the shutdown of the cluster : cmhaltcl -f

Stephen Doud
Honored Contributor

Re: Force Serviceguard package to HALT!

The package control log /etc/cmcluster/ contains a record of the activities of the package control script when a package is started and shutdown. I'd look at it first.

If the problem happens again, check to see if the package control script is running or hung in the background using the 'ps' command. If the process appears to be hung, kill it. Serviceguard will register that as a completed command and will change the status of the package to 'halted' with NO_RESTART.