linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Cutting power without breaking RAID
@ 2006-06-28 21:43 Niccolo Rigacci
  2006-06-29  1:03 ` Tim
  2006-06-29  4:00 ` Neil Brown
  0 siblings, 2 replies; 9+ messages in thread
From: Niccolo Rigacci @ 2006-06-28 21:43 UTC (permalink / raw)
  To: linux-raid maillist

Hello,

I'm facing this problem:

when my Linux box detects a POWER FAIL event from the UPS, it 
starts a normal shutdown. Just before the normal kernel poweroff, 
it sends to the UPS a signal on the serial line which says 
"cut-off the power to the server and switch-off the UPS".

This is required to reboot the server as soon as the power is 
restored.

The problem is that the root partition is on top of a RAID-1 
filesystem which is still mounted when the program that kills the 
power is run, so the system goes down with a non clean RAID 
volume.

What can be the proper action to do before killing the power to 
ensure that RAID will remain clean? It seems that remounting 
the partition read-only is not sufficient.

-- 
Niccolo Rigacci
Firenze - Italy

Iraq, missione di pace: 38475 morti - www.iraqbodycount.net

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

end of thread, other threads:[~2006-07-05 21:25 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-28 21:43 Cutting power without breaking RAID Niccolo Rigacci
2006-06-29  1:03 ` Tim
2006-06-29  9:45   ` Niccolo Rigacci
2006-06-30  0:50     ` alexwang.com (sent by Nabble.com)
2006-07-05 21:25   ` Molle Bestefich
2006-06-29  4:00 ` Neil Brown
2006-06-29  9:48   ` Niccolo Rigacci
2006-06-29 18:50     ` Bill Davidsen
2006-06-30  1:53       ` Neil Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).