1844522 Members
3363 Online
110233 Solutions
New Discussion

Re: Cannot shutdown

 
KiatLeong Len
Occasional Contributor

Cannot shutdown

I tried to shutdown my HP 715 machine running on HPUX 10.20 using the following commands:

# shutdown -hy 0
# shutdown -ry 0
# reboot 0

All the above created core file and does not shutdown or reboot the machine. I have to manually power off the machine in order to reboot or shutdown.

What could have caused it? I have checked syslog.log but nothing much there. What other log file can i look into? Or better still, what solution can i take?

Thanks.

8 REPLIES 8
Uday_S_Ankolekar
Honored Contributor

Re: Cannot shutdown

Hi,

You can check shutdownlog .
Since after reboot new syslog file created you can check Oldsyslog file..

-Good luck,
-USA..
Good Luck..
Michael Tully
Honored Contributor

Re: Cannot shutdown

Hi,

Try this

To shutdown:

# /sbin/shutdown -h -y 0

To Reboot:

# /sbin/shutdown -r -y 0

Do not use 'reboot 0'

-Michael
Anyone for a Mutiny ?
Sanjay_6
Honored Contributor

Re: Cannot shutdown

Hi Len,

Try,

shutdown -h 0
shutdown -h now
init 0

Hope this helps.

Regards.
James R. Ferguson
Acclaimed Contributor

Re: Cannot shutdown

Hi:

Given that you say a core file was created in every case, what does the following return?

# file core

Regards!

...JRF...
Animesh Chakraborty
Honored Contributor

Re: Cannot shutdown

Hi,
Another thought
Check your /sbin/shutdown file.
-r-sr-xr-x 1 root bin 311296 Jun 10 1996 shutdown

What is the bytes size of your shutdown command
(hpux 10.20)

Best of luck
Animesh
Did you take a backup?
Roger Baptiste
Honored Contributor

Re: Cannot shutdown

Kiat,

Does it create a core file immediately?
Do you see any shutdown message sequence
on the console??

#which shutdown
-> should show you the binary it is executing. Make sure it's ownership and permissions are correct. Do an ll on it
it see whether it was modified.

Try
#/sbin/shutdown


-raj
Take it easy.
Sharon Prothero
Frequent Advisor

Re: Cannot shutdown

I had a machine which was supposed to be rebooted each week via cron. At some point (when I wasn't looking) this failed/hung up and stopped subsequent shutdown commands from working. I killed all the old shutdown processes and it was then fine. Never did find out why the first one hung though!!!

Another idea is to try using the init command to change the run level either to 0 for shutdown, or to level 1 or 2 so you can then try your shutdown command again.
Darrell Allen
Honored Contributor

Re: Cannot shutdown

Hello,

As James says, see what created the core with "file core". Maybe one of the rc files has a process core dumping and /sbin/rc isn't completing. Check /etc/rc.log and rc.log.old.

When it's core dumping, can you still access the system? Do a ps and see if shutdown and / or rc jobs are running.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)