All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tim <irule@irule.net>
To: Niccolo Rigacci <niccolo@rigacci.org>
Cc: linux-raid maillist <linux-raid@vger.kernel.org>
Subject: Re: Cutting power without breaking RAID
Date: Wed, 28 Jun 2006 18:03:01 -0700	[thread overview]
Message-ID: <44A326C5.70205@irule.net> (raw)
In-Reply-To: <20060628214350.GA23970@rigacci.org>

Your UPS won't accept a timer value to wait before actually cutting
power? That would probably be ideal, issue the power off command with
something like a 30 second timeout, which would give the system time to
power off cleanly first.

-Tim

Niccolo Rigacci wrote:
> 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.
>
>   


  reply	other threads:[~2006-06-29  1:03 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-28 21:43 Cutting power without breaking RAID Niccolo Rigacci
2006-06-29  1:03 ` Tim [this message]
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=44A326C5.70205@irule.net \
    --to=irule@irule.net \
    --cc=linux-raid@vger.kernel.org \
    --cc=niccolo@rigacci.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.