From: Marc MERLIN <marc@merlins.org>
To: NeilBrown <neilb@suse.de>
Cc: linux-raid@vger.kernel.org
Subject: Re: How can I ensure that my swraid saves checkpoints with sysrq reboot?
Date: Wed, 12 Sep 2012 14:52:36 -0700 [thread overview]
Message-ID: <20120912215236.GL28054@merlins.org> (raw)
In-Reply-To: <20120913072944.06021ab6@notabene.brown>
[-- Attachment #1: Type: text/plain, Size: 1455 bytes --]
On Thu, Sep 13, 2012 at 07:29:44AM +1000, NeilBrown wrote:
> Hi Marc,
>
> md registers a reboot notifier. When that is called it tries to checkpoint
> everything.
> All varieties of the 'reboot' system call seem to call the reboot notifiers.
> alt-sysrq-b doesn't use the same path. It calls machine_emergency_restart,
> bypassing all the reboot handling.
>
> Once upon a time I had the idea that killing the md threads would lead to
> proper checkpointing, so alt-sysrq-I would do-the-right-thing.
> I'm not sure if it does though.
>
> But alt-sysrq-o (power off) seems to use the normal reboot handling and so
> works - as you noticed. So that should always be safe and seems to be the
> only safe approach.
Thank you for confirming what I thought I saw.
For my specific case, I'll be ok because I have a controllable power supply,
but obviously for the hosted server case, this sucks since sending a
poweroff makes sure the machine won't come back.
Is there a chance you can contact whoever is responsible for the sysrq-b
codepath to make the right call so that you get a chance to sync arrays, or
should admins just know to use sysrq-i and then sysrq-r ?
Thanks,
Marc
--
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems ....
.... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 308 bytes --]
prev parent reply other threads:[~2012-09-12 21:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-12 16:52 How can I ensure that my swraid saves checkpoints with sysrq reboot? Marc MERLIN
2012-09-12 21:29 ` NeilBrown
2012-09-12 21:52 ` Marc MERLIN [this message]
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=20120912215236.GL28054@merlins.org \
--to=marc@merlins.org \
--cc=linux-raid@vger.kernel.org \
--cc=neilb@suse.de \
/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 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).