tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Summary: Reboot vs Init 0
@ 2000-03-02 15:26 Ed King
  0 siblings, 0 replies; only message in thread
From: Ed King @ 2000-03-02 15:26 UTC (permalink / raw)
  To: tru64-unix-managers

I had many responses, so it took me awhile to digest and summarize.  This is
my first summary posting and I hope it does justice to all the great info I
recv'd. I thank everyone who responded; hope I'm not leaving anyone out...

From: John Peter Gormley <jgormley@scu.edu.au <mailto:jgormley@scu.edu.au>>
From: Dana Huggard <dana.huggard@home.com <mailto:dana.huggard@home.com>>
From: Andrew Leahy <alf@cit.nepean.uws.edu.au
<mailto:alf@cit.nepean.uws.edu.au>>
From: Ed Bush <edbush@llnl.gov <mailto:edbush@llnl.gov>>
From: Phil Cooper <phil.cooper@cht20.co.uk
From: Zeev Fisher <ZEEVF@amdocs.com <mailto:ZEEVF@amdocs.com>>
From: Arno Hahma <arno@azido.pp.utu.fi <mailto:arno@azido.pp.utu.fi>>
From: Alan  <alan@nabeth.cxo.dec.com
From: Joe Ryals <Joe_Ryals@csx.com <mailto:Joe_Ryals@csx.com>>
From: Ron Bramblett <bramblett@fullerbrush.com
<mailto:bramblett@fullerbrush.com>>
From: Luchini, Marco <Marco.Luchini@acco-uk.co.uk
<mailto:Marco.Luchini@acco-uk.co.uk>>
From: Jim Belonis <belonis@dirac.phys.washington.edu
<mailto:belonis@dirac.phys.washington.edu>>
From: Weis, Mervyn <Mervyn.Weis@COMPAQ.com <mailto:Mervyn.Weis@COMPAQ.com>>
From: Hoover, Tony <hoover@sal.ksu.edu <mailto:hoover@sal.ksu.edu>>
From: Jim Bodie <jabpci@cis.rit.edu <mailto:jabpci@cis.rit.edu>>
From: Freesmeyer, Mary <Mary.Freesmeyer@LendersService.com
From: Bryan Rank <bryan@compgen.com <mailto:bryan@compgen.com>>
From: gwertz@BISYS-Plans.com <mailto:gwertz@BISYS-Plans.com>
<gwertz@BISYS-Plans.com
From: Philip.Ordinario@bmo.com <mailto:Philip.Ordinario@bmo.com>
<Philip.Ordinario@bmo.com
From: Steven M Tom/TAS/LMITCO/INEEL/US <TAS@inel.gov <mailto:TAS@inel.gov>>
From: Steven M Tom/TAS/LMITCO/INEEL/US <TAS@inel.gov <mailto:TAS@inel.gov>>
From: Udo de Boer <udo.de.boer@live.demon.nl
<mailto:udo.de.boer@live.demon.nl>>
From: Degerness, Mandell ISTA:EX <Mandell.Degerness@gems2.gov.bc.ca
From: Lavelle, Bryan <Bryan.Lavelle@COMPAQ.com
<mailto:Bryan.Lavelle@COMPAQ.com>>


My original question was basically:   whats the best (eg: cleanest) way to
reboot my 4.0D system remotely:  the "reboot" command or the "init 0"
command?

I gleaned that there are three commands that might be used to reboot the
system, however, each has its own "problem"

command:   reboot
problem:  in versions of Digital Unix prior to 5.0, "reboot" does not run
shutdown scripts, may not sync the disks, therefore it is not a clean way to
reboot

command:  shutdown -r now
problem:  in versions of Digital Unix prior to 5.0, "shutdown" does not run
shutdown scripts, may not sync the disks, therefore it is not a clean way to
reboot

command:  init 0
problem:  DOES run shutdown scripts, but does not fully restart the system
(leaves you at the >> boot prompt).   not good if you are trying to reboot
remotely.

So how do you do a clean reboot remotely on 4.x systems?  Basically two
ways:

Method #1) customize the shutdown scripts
       a) create a "reboot-flag" file. if the rc.0 script finds this file,
it knows to reboot the system
       b) create/modify rc.6 from rc.0.  Mr Webster says it best...

From: Tom Webster <webster@ssdpdc.lgb.cal.boeing.com
<mailto:webster@ssdpdc.lgb.cal.boeing.com>>

>The answer isn't as simple as it should be. I ended up modifying the
>/sbin/rc0 script and linking it to /sbin/rc6. The modified script
>checks to see how it was called. Calling it by rc0 will still halt
>the system after running the change level scripts. Calling it by
>rc6 will run the change level scripts and reboot.
>
>You will also need to update your /etc/inittab file to add the
>following line:
>
>s6:6:wait:/sbin/rc6 reboot < /dev/console > /dev/console 2>&1


Method #2) use a remote console that gives access to the >> prompt  (reverse
telnet).  Dr. Blinn says it best...

From: Dr. Tom Blinn, 603-884-0646 <tpb@doctor.zk3.dec.com
<mailto:tpb@doctor.zk3.dec.com>>
>If you really want to be able to control the system remotely, then get a
>telnet based terminal server that lets you telnet in through the network
>and connect out through a serial line ("reverse telnet", if you will) and
>connect it to the serial console port on your Alpha system, then telnet to
>the server and through to the serial port, and with the system shut down,
>issue the console command "set console serial". Then "init" the system
>and reboot. When the system comes up, you'll be connected to a serial
>operator console, can log in as root and manage the system. When you go
>to shut it down, even with "init 0", you'll be at single user mode and you
>can still manage the system.

From: Chuck Taylor <mailto:Chuck.Taylor@Vishay.com>>
mentions two products that could be used for remote console:  CA
Unicenter-TNG
and KEA


Some other nifty (but untested) ideas that might work....

From: Leonid Kolytchev <LKolytch@cuedatawest.com
<mailto:LKolytch@cuedatawest.com>>
>You may set "auto_action" variable to "boot" at a console prompt. That
>should help to reboot the box in a case of a power failure or you would
>press reset button (for example). I am not sure how it would behave with
>"init 0".

From: Nikola Milutinovic <Nikola.Milutinovic@ev.co.yu
<mailto:Nikola.Milutinovic@ev.co.yu>>
>The best thing I can think of is:
># nohup (shutdown now ; wait 60 ; reboot)
>but I've never tested this.

Thanks again to all who responded!
Eddie

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-03-02 15:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-03-02 15:26 Summary: Reboot vs Init 0 Ed King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox