Operating System - HP-UX
1831667 Members
2056 Online
110029 Solutions
New Discussion

UPS trigger the HP-UX shutdown problem

 
boey kean hoe
Occasional Advisor

UPS trigger the HP-UX shutdown problem

Hi ,
I have a MGE UPS and install the Solution Pac UMClient module in the HP-UX server but when try to simulate a power failure the server receive the power failure trap, then the server start to countdown and excute the shutdown command when the time reach. But the server doesn't shutdown, but when checking the shutdown process I can see that the shutdown process already run. So what can be the likely problem? Thanks

=============================================

[hpsgle39]:[root]:/usr/upsman/umclient
>ps -ef |grep -i shutdown
root 4388 4384 0 18:05:34 pts/tb 0:00 /sbin/shutdown -y -h now
[hpsgle39]:[root]:/usr/upsman/umclient
boey
4 REPLIES 4
RAC_1
Honored Contributor

Re: UPS trigger the HP-UX shutdown problem

shutdown -y -h now, will go through all scripts to shutdown user processes/apps. (It will go through K* scripts in rc directories)
So this is going to take time, depending upon what efficient your K* script are.

During power problems, you should rather have shutdown -ry. Quick reboot. There is a difference between shutdown and reboot. Shutdown goes through all K scripts, while reboot does not.
There is no substitute to HARDWORK
Steven E. Protter
Exalted Contributor

Re: UPS trigger the HP-UX shutdown problem

Shalom,

The likely problem is one of your shutdown scripts in /sbin/rc.# directories is hanging.

You need to diagnose which script is hanging and make it do its work in a reasonable amount of time.

If oracle is involved change the dbshut command where it says shutdown to shutdown immediate.

sEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Steven E. Protter
Exalted Contributor

Re: UPS trigger the HP-UX shutdown problem

Shalom,

The likely problem is one of your shutdown scripts in /sbin/rc.# directories is hanging.

You need to diagnose which script is hanging and make it do its work in a reasonable amount of time.

If oracle is involved change the dbshut command where it says shutdown to shutdown immediate.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
boey kean hoe
Occasional Advisor

Re: UPS trigger the HP-UX shutdown problem

Sorry I forget to mention something, the UMCLient will run the script file umc_shut and in this umc_shut file is where the shutdown command.So if I try to run only the script umc_shut the server will shutdown correctly.Thanks
boey