Operating System - HP-UX
1846858 Members
9356 Online
110256 Solutions
New Discussion

Re: reboot doesn't work properly

 
Zollinger Beat
New Member

reboot doesn't work properly

After a reboot command, my Server (L-Class,HPUX11.11 and MC/SG ) doesn't shutdown clean. With command init 0, there aren't any problems. Whats the difference between init 0 and reboot during the shutdown-process?

Output of shutdownlog:
07:15 Thu Feb 12 2004. Reboot after panic: SafetyTimer expired, isr.ior = 0'9227ffff.c0000000'e83b1030
13:52 Wed Feb 18 2004. Reboot after panic: SafetyTimer expired, isr.ior = 0'0.0'0
7 REPLIES 7
Bharat Katkar
Honored Contributor

Re: reboot doesn't work properly

1.Init 0 will take u down to level 0 i.e. System halted state and then you can power it off. It will gracefully terminate the processes running on the system and unmount the file systems.

2. Reboot will restart the system.

Most preferred way to bring down the machine is:

#shutdown -h -y 0

If you want to reboot it do this:

#shutdown -r -y 0

THis should help.


You need to know a lot to actually know how little you know
Robert-Jan Goossens
Honored Contributor

Re: reboot doesn't work properly

Hi,

Check this doc,

Document description: HP-UX: reboot(1M) versus shutdown(1M)
Document id: 4000030837

Europe
http://www5.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000065140529

US
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000065140529

Hope this helps,
Robert-Jan
Elmar P. Kolkman
Honored Contributor

Re: reboot doesn't work properly

The problem is probably the reboot command. The reboot that comes with HP-UX is a real reboot command, nothing like the reboot from linux. It has about the same effect as the hardware-reset button on a PC... No syncing, no real shutdown of processes, etc.

The reboot command you want, as mentioned before, the shutdown -r -y 0, meaning you want to reboot NOW, no further questions asked. Or just a shutdown -r, which will ask some questions and give logged in users a grace period.
Every problem has at least one solution. Only some solutions are harder to find.
Pete Randall
Outstanding Contributor

Re: reboot doesn't work properly

The difference is that reboot does not run through your shutdown time rc scripts. Init 0 (or a shutdown command) will process all the rc scripts and shut everything down normally, while a reboot command just halts the system without shutting anything down.

I often use the reboot command when I'm in a hurry, but I first manually stop the database and anything else that proper shutdown is critical.


Pete

Pete
Zollinger Beat
New Member

Re: reboot doesn't work properly

thanks for the helpfully answers.
I tried it with shutdown -r -y 0 and it works without any problems.
Kent Ostby
Honored Contributor

Re: reboot doesn't work properly

The main issue here is that the "init 0" will go through the shutdown process and in particular will execute a "cmhaltnode" command which will gracefully shut down ServiceGuard on that box.

The "reboot" simply issues a kill all and the "cmcld" daemon is killed.

This looks to ServiceGuard like an abnormal termination of ServiceGuard services (which it is) and so ServiceGuard does a TOC of this box to ensure the data integrity of the shared disk drives.

Best regards,

Kent M. Ostby
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Bharat Katkar
Honored Contributor

Re: reboot doesn't work properly

Reboot should be only used in case you are in single user system administartion mode and almost all of the services are stopped. And then you want to emmediately start with restart of the system.
Shutting down thr' reboot is equivalent to haltsys command.
I hardly use it!



You need to know a lot to actually know how little you know