Operating System - HP-UX
1826164 Members
4302 Online
109691 Solutions
New Discussion

Re: I can't shutdown my K460

 
Jason Arrhaman
Occasional Advisor

I can't shutdown my K460

I am VERY new to HP administration.

I have an HP K460 runnign HPUX 11.0. I issue the 'shutdown now' command, and it looks like it's killing all the processes but then I get this message:

"Wait for transition to run-level S (allow 20 seconds).
Warning: Transition to init state s timed out -- exiting shutdown."

The server remains up, and never comes down. Can someone help me?
13 REPLIES 13
Sachin Patel
Honored Contributor

Re: I can't shutdown my K460

The easist thing to do is to issue reboot command and when it starts booting up turn off the key.
Reoot will kill anything which is not stopping.

Sachin
Is photography a hobby or another way to spend $
Helen French
Honored Contributor

Re: I can't shutdown my K460

After logging in as root, give this command to shutdown your server:

# shutdown -y -h 0
Life is a promise, fulfill it!
Mark Greene_1
Honored Contributor

Re: I can't shutdown my K460

After doing this, what does who -r say the run level is?

mark
the future will be a lot like now, only later
Uday_S_Ankolekar
Honored Contributor

Re: I can't shutdown my K460

cd to root by cd /

shutdown -hy now to shutdown the box

To reboot after shutdown use

shutdown -ry now

Good Luck..
Michael Steele_2
Honored Contributor

Re: I can't shutdown my K460

You can always 'reset' the system form the GSP and bypass the O/S entirely. It's often done in cases like yours for a hung server.

From console
control b
login: return
passwd: return
GSP>rs

If you want to halt the system and power off wait until the 'interrupt boot up' message is displayed and enter any key. And at main menu power off.

've seen this with some older database products that aren't on a server that's been rebooted for several months, often I/O attributed. When was your last reboot?

who -r, uptime

For any shutdown you must be in /.

cd /
shutdown -r now.
Support Fatherhood - Stop Family Law
Tim Sanko
Trusted Contributor

Re: I can't shutdown my K460

Your K460 is attatched to a serial console with no GSP, so no GSP ^B to get to where you can reset. If you can reach it with telnet, from anywhere else, manually kill all non-database, non-root users' processes. Shutdown the database if applicable,
Unmount all non vg00 drives.

This is the time to turn the key. If you have an option,
shutdown -hy 0 will shutdown.
But remember to take all necessary databases, and applications down first.

Turn key off and on to cycle.
at the wait ten seconds hit a key. Interact with the boot process and type
hpux -is at the ipl prompt.

That will allow you to reset root passwd and do vg00 non / and swap reconfig.

Tim
Tim Sanko
Trusted Contributor

Re: I can't shutdown my K460

To further clarify, shutdown first then turn key if power off is necessary.


With a shutdown -hy 0 you will still have to operate the key to off, and back on....
I worked till 2 A.M. last night and am fuzzy mentally without a drink...

Tim
Mike Still
Occasional Advisor

Re: I can't shutdown my K460

You can try 'reboot -h' as well. reboot bypasses most of the shutdown scripts and is actually the command that's executed after the shutdown scripts. I wouldn't try going into the GSP (^B) before exhausting ALL other options to restart the system.
Jason Arrhaman
Occasional Advisor

Re: I can't shutdown my K460

I used shutdown -y -h 0, and it worked fine. Thanks guys. But I am curious why it is happening. Any suggestions?
Sachin Patel
Honored Contributor

Re: I can't shutdown my K460

I have same problem sometime when automounter is hang. or system can't umount some
disks.

Sachin.
Is photography a hobby or another way to spend $
Pete Randall
Outstanding Contributor

Re: I can't shutdown my K460

What command did you use before? Perhaps just "shutdown"? That will direct the system to go to the single user state, which is pretty much what you saw (not sure about the "timed out" message, though). The only way to really shut down is to add some parameters to your shutdown command (like "-h y 0") or use a reboot command (also with parameters) to do a quick and dirty shutdown.


Pete

Pete
Jason Arrhaman
Occasional Advisor

Re: I can't shutdown my K460

Originally, I used "shutdown -h 0" and I got the message.
Jeff Schussele
Honored Contributor

Re: I can't shutdown my K460

Hi Jason,

I suspect the fact that you did not have a -y in the original command was the culprit.
That parm forces a "yes" answer to any questions/confirmations shutdown may have/want.
If it shuts down cleanly now when you use -y , that's a good indication that was the problem.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!