All of lore.kernel.org
 help / color / mirror / Atom feed
From: Niccolo Rigacci <niccolo@rigacci.org>
To: linux-raid maillist <linux-raid@vger.kernel.org>
Subject: Cutting power without breaking RAID
Date: Wed, 28 Jun 2006 23:43:50 +0200	[thread overview]
Message-ID: <20060628214350.GA23970@rigacci.org> (raw)

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

             reply	other threads:[~2006-06-28 21:43 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-28 21:43 Niccolo Rigacci [this message]
2006-06-29  1:03 ` Cutting power without breaking RAID 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060628214350.GA23970@rigacci.org \
    --to=niccolo@rigacci.org \
    --cc=linux-raid@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.