1829028 Members
2485 Online
109986 Solutions
New Discussion

Re: Reboot command

 
SOLVED
Go to solution
Tim O'Connell
Regular Advisor

Reboot command

Hi,

I haven't rebooted my RP5430 HPUX server for about 3 years. I went to shut it down today to connect up a new tape drive & it kept rebooting. It never shutdown . I used the command I had in my notes - shutdown -h 0 . Is there something I have left out?.

Thanks,

Tim
17 REPLIES 17
Oviwan
Honored Contributor

Re: Reboot command

hey

shutdown:
shutdown -h 0

reboot:
shutdown -r 0

Regards
SUDHAKAR_18
Trusted Contributor
Solution

Re: Reboot command

Hello,
#shutdown -hy 0 -->for shutdown
#shutdown -ry 0 -->for reboot

what is the exact problem?
Kenan Erdey
Honored Contributor

Re: Reboot command

Hi,

iif it waits to kill some process/service try break key to interrupt in console.

Kenan.
Computers have lots of memory but no imagination
Tim O'Connell
Regular Advisor

Re: Reboot command

Hi,

Thanks for the replies.

I used shutdown -h 0 but the server just rebooted & came back up.
Would shutdown -hy 0 have shut it down completely?

Thanks,

Tim
Jeeshan
Honored Contributor

Re: Reboot command

yeah "shutdown -hy 0" will halt down your systems. If you want to completely power off the server then you need to down the power from MP/GSP console.
a warrior never quits
Pete Randall
Outstanding Contributor

Re: Reboot command

Tim,

No, adding the y switch causes an automatic "yes" response for any interactive input during the shutdown. It would have no effect on whether the machine reboots or not - that is strictly controlled by the -h vs the -r switch.

I would think there must be some sort of message indicating why the machine is rebooting. Perhaps it has a problem during shutdown and the failure causes a reboot? Study the output from the shutdown process carefully and see if there isn't some indication of why this is happening.


Pete

Pete
Paul McCleary
Honored Contributor

Re: Reboot command

Hi Tim,

I normally always use:

shutdown -yh 0

Which is a shutdown halt (-h) with no grace period and answering yes (-y) to any interactive questions from the shutdown process.

Your system should have been halting. What output is on the console during the shutdown, especially the point where it starts to then boot again?

Paul
Tim O'Connell
Regular Advisor

Re: Reboot command

I don't have the output now but I will need to shutdown the server again as the tape drive wasn't picked up & will keep an eye on it. On older Unix servers there used to be a /var/log/console - is there similar on HPUX?

Thanks,

Tim
Dennis Handly
Acclaimed Contributor

Re: Reboot command

>there used to be a /var/log/console - is there similar on HP-UX?

No. But sometimes the MP/GSP console logs may have 100s of lines.

Have you looked at syslog and /etc/shutdownlog?
Tim O'Connell
Regular Advisor

Re: Reboot command

Poinst assigned. Nothing in the logs so will wait until I can shut it down again.

Many Thanks,

Tim
Cem Tugrul
Esteemed Contributor

Re: Reboot command

Hello,
just as addition to other replies;
rp5430 as mine also has console(GSP)
if u want to power down your system for a reason (after shudown -hy 0) then u may use
PS command from the this console...

Good Luck,
Our greatest duty in this life is to help others. And please, if you can't
Pete Randall
Outstanding Contributor

Re: Reboot command

> Have you looked at syslog and /etc/shutdownlog?

That should probably be OLDsyslog by the way.


Pete

Pete
Tim O'Connell
Regular Advisor

Re: Reboot command

Had a look but nothing of use there
Cem Tugrul
Esteemed Contributor

Re: Reboot command

What about /etc/rc.log ?
Our greatest duty in this life is to help others. And please, if you can't
Steven E. Protter
Exalted Contributor

Re: Reboot command

Shalom Tim,

I'll state the obvious here.

Leaving a system running for three years without even a patch installation is not a good systems administration practice.

Something has been changed, it could have happened any time in the past three years and you have no clue what triggered the problem.

In this situation, I'd start now and work backward.

You attached a tape drive. Check that the SCSI ID configuration is okay and that the drive is properly terminated. Ultrium drives are self terminating and will react badly to terminators.

Know your hardware and act accordingly.

The drive itself could be the source of the problem and you may wish to pull it and see if the system stabilizes.

It would not hurt once the system is running to install the latest bi-annual update and HWE, hardware enablement patches. I doubt they will solve this problem, but they won't hurt.

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
Tim O'Connell
Regular Advisor

Re: Reboot command

Thanks, Stephen.

Issue happened when I shutdown the server prior to connect the tape drive. Agree with you on the patches etc but that's another story.

Thanks,

Tim
Tim O'Connell
Regular Advisor

Re: Reboot command

Will investigate the next time I can shut down the server.

Thanks,

Tim