Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Automatic Reboot, Fsck and a PCI HW-Watchdog
@ 1998-05-31 20:22 Gavin
  1998-05-31 20:35 ` mgraffam
  1998-05-31 21:00 ` Brian E.W. Wood
  0 siblings, 2 replies; 4+ messages in thread
From: Gavin @ 1998-05-31 20:22 UTC (permalink / raw)
  To: axp-list

Hi 

How would i best reboot my alpha say .. every 24 hours ? 
shutdown command in a cron job .. would that woek .. (and be a good
idea)?
and could the init script in RH 5.0 be modified so that fsck runs .. no
matter what ?
eaven when the FS is damaged .. 

At the same time i am looking for a PCI card that can detect if the
system has crashed, and reboot 
the alpha . anyone know if sutch a thing is possible and exists ? 

Regards 

Gavin


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Automatic Reboot, Fsck and a PCI HW-Watchdog
  1998-05-31 20:22 Automatic Reboot, Fsck and a PCI HW-Watchdog Gavin
@ 1998-05-31 20:35 ` mgraffam
  1998-05-31 21:00 ` Brian E.W. Wood
  1 sibling, 0 replies; 4+ messages in thread
From: mgraffam @ 1998-05-31 20:35 UTC (permalink / raw)
  To: axp-list

On Sun, 31 May 1998, Gavin wrote:

> How would i best reboot my alpha say .. every 24 hours ? 
> shutdown command in a cron job .. would that woek .. (and be a good
> idea)?

shutdown should work, yeah. You'd probably want it give the users 30
minutes or so before actually rebooting so that any work can be saved..
and give root a chance to stop it.

> and could the init script in RH 5.0 be modified so that fsck runs .. no
> matter what ?

I can't see any reason why not.. as it stands now the logic for checking
whether to launch fsck is in the script.. just change the logic. 

> At the same time i am looking for a PCI card that can detect if the
> system has crashed, and reboot 
> the alpha . anyone know if sutch a thing is possible and exists ? 

You want what is called a watchdog card. There is a software "watchdog"
solution, but obviously this won't catch all crash situations.

I don't know if the watchdog drivers work under Linux/Alpha .. but they
do work on Intel. 

If they _don't_ work on Alpha, feel free to fix it :)

OTOH, you could do something like this (which is a solution I came up
with for a VME based machine):

I took an 8051 microcontroller and hooked it up to the serial port.
If the 8051 stops getting a byte every second for more than 3 seconds
it supplies 5 volts to the reset pin on the mainboard and waits until
the board starts sending bytes again, then it falls back into the timing
loop. Then I just wrote a small program that dumps a's to the serial port
and put it in my startup configuration. 

This solution is a whole lot more fun than buying a watchdog board!
But then, I'm a geek so my idea of fun may be radically different than
yours :)

Michael J. Graffam (mgraffam@mhv.net)
http://www.mhv.net/~mgraffam -- Philosophy, Religion, Computers, Crypto, etc
"..the isle is full of noises, sounds and sweet airs that give delight and
hurt not. Sometimes a thousand twangling instruments will hum about mine
ears, and sometimes voices.." Caliban, Shakespeare's "The Tempest"


^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Automatic Reboot, Fsck and a PCI HW-Watchdog
  1998-05-31 20:22 Automatic Reboot, Fsck and a PCI HW-Watchdog Gavin
  1998-05-31 20:35 ` mgraffam
@ 1998-05-31 21:00 ` Brian E.W. Wood
  1998-05-31 21:30   ` mgraffam
  1 sibling, 1 reply; 4+ messages in thread
From: Brian E.W. Wood @ 1998-05-31 21:00 UTC (permalink / raw)
  To: axp-list


On 31-May-98 Gavin wrote:
> Hi 
> 
> How would i best reboot my alpha say .. every 24 hours ? 
> shutdown command in a cron job .. would that woek .. (and be a good
> idea)?
> and could the init script in RH 5.0 be modified so that fsck runs .. no
> matter what ?
> eaven when the FS is damaged .. 

Why on earth would you want to do this? If you have to re-boot every day (or
even every month) something is seriously wrong. 

As for "detecting" crashes, by definition a crash means things are not running,
so how could the system "detect" this fact. You might have another machine test
yours, to see if it responds to certain requests and thereby "detect" if it is
down, but other than taking over its tasks I'm not sure what else it could do
about it.

Linux systems are designed not to crash, and if they do you should discover the
reason why, not work around it by re-booting at intervals (IMHO).


---
Brian E.W. Wood  beww@intac.com


^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Automatic Reboot, Fsck and a PCI HW-Watchdog
  1998-05-31 21:00 ` Brian E.W. Wood
@ 1998-05-31 21:30   ` mgraffam
  0 siblings, 0 replies; 4+ messages in thread
From: mgraffam @ 1998-05-31 21:30 UTC (permalink / raw)
  To: Brian E.W. Wood; +Cc: axp-list

On Sun, 31 May 1998, Brian E.W. Wood wrote:
> On 31-May-98 Gavin wrote:
> > Hi 
> > 
> > How would i best reboot my alpha say .. every 24 hours ? 
> > shutdown command in a cron job .. would that woek .. (and be a good
> > idea)?
> > and could the init script in RH 5.0 be modified so that fsck runs .. no
> > matter what ?
> > eaven when the FS is damaged .. 
> 
> Why on earth would you want to do this? If you have to re-boot every day (or
> even every month) something is seriously wrong. 

I have to admit that I can't figure this out, but running shutdown would
achieve it.

> As for "detecting" crashes, by definition a crash means things are not
> running, so how could the system "detect" this fact. You might have
> another machine test yours, to see if it responds to certain requests
> and thereby "detect" if it is down, but other than taking over its
> tasks I'm not sure what else it could do about it.

A watchdog board gets data written to it periodically by the mainboard.
If this data stream stops (because the mainboard crashes) then the
watchdog board resets the mainboard by tripping its reset line. Simple
idea, and a simple device. 

As I said in my other message, I hacked up a microcontroller to do this
for me via the serial port. 

> Linux systems are designed not to crash, and if they do you should
> discover the reason why, not work around it by re-booting at intervals
> (IMHO).

I agree. My Unix-based machines power down only for hardware upgrades and
reboot only for kernel (or other serious software) upgrades. Once properly
configured, I've never had a machine under Linux, or FreeBSD crash.

I suppose that some really hard-core applications may require absolute
system integrity and warrant rebooting frequently. Such systems would
also be required to do crash detection...

Michael J. Graffam (mgraffam@mhv.net)
http://www.mhv.net/~mgraffam -- Philosophy, Religion, Computers, Crypto, etc
"86% of conspiracy theories have some basis in truth... but, oddly enough,
it's that last 14% that usually gets you killed." 
    --Talas (http://cadvantage.com/~algaeman/conspiracy/public.htm)


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1998-05-31 21:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-05-31 20:22 Automatic Reboot, Fsck and a PCI HW-Watchdog Gavin
1998-05-31 20:35 ` mgraffam
1998-05-31 21:00 ` Brian E.W. Wood
1998-05-31 21:30   ` mgraffam

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