Re: [Fwd: power down]
Jon Burford <jburford <at> xsilogy.com>
1999-12-07 20:36:21 GMT
I am actually extremely interested in this issue, although I am not very
qualified to present possible solutions. I am primarily a systems and
software guy and have been constructing an embedded linux system which boots
off an M-Systems DOC2000 and runs mostly out of ram disk. The board I am
using has a watchdog timer which could spuriously reset the board (just like
hitting the reset button on your PC). Power failures are also a reality I
must deal with. I must at least make an attempt to guarantee that the
system will always come back up (the damaged DOC2000 filesystem will be
repaired by e2fsck upon subsequent boot up). To give you an idea of
what/when I am doing flash writes, I am running postgres whose db files are
in flash and am doing about a 20-100 byte record insert per minute (on
average). The log files in /var/log/* are also in flash. There are no
custom apps which write often to syslog and I am not running mail (although
I am running apache which I could, but haven't yet turned off logging for).
I mount the DOC2000 on /usr, but write only to the logs and db files (I have
'chattr i' on all other files in /usr). What I would like to get an opinion
on is:
1) What is the probability that e2fsck will not be able to reapair the
filesystem?
2) What is the probability that I will damage the boot sector and lilo will
not be able to being to boot at all?
3) Since I use a pretty standard 5/12 V switching power supply and embedded
PC board (a 40W compact version of a standard PC power supply w/o fan), do I
have any hope in making HW or SW changes to possibly reduce or fix this
problem?
Any suggestions or insight much appreciated.
Regards,
(Continue reading)