From: Marc MERLIN <marc@merlins.org>
To: Eric Wheeler <linux-kernel@lists.ewheeler.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH-RFC]: sysrq-a: graceful reboot via kernel_restart(), similar to sysrq-o
Date: Thu, 10 Mar 2016 21:13:13 -0800 [thread overview]
Message-ID: <20160311051313.GF26973@merlins.org> (raw)
In-Reply-To: <alpine.LRH.2.11.1603110424550.13488@mail.ewheeler.net>
On Fri, Mar 11, 2016 at 04:35:21AM +0000, Eric Wheeler wrote:
> Hello all,
>
> We were having a discussion on the bcache list about the safest reboot
> options via sysrq here:
> http://thread.gmane.org/gmane.linux.kernel.bcache.devel/3559/focus=3586
>
> The result of the discussion ended up in a patch for sysrq-a to call
> kernel_restart much in the same way as sysrq-ocalls kernel_power_off.
>
> Please comment on the patch and suggest any appropriate changes.
Thanks Eric.
The quick rationale is that sysrq-r is not desirable to use if you're using
bcache, or software raid since it will reboot without giving them a
chance to properly sync their buffers and get into a clean state.
I've been using sysrq-o to get a clean shutdown, but of course that
actually powers off the server, and you then need to rely on something
like WOL to bring the machine back up, which isn't always easy or
possible.
This new reboot with proper flushing (kernel_power_off) allows for safe
reboots that don't upset bcache or software raid.
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/ | PGP 1024R/763BE901
next prev parent reply other threads:[~2016-03-11 5:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-11 4:35 [PATCH-RFC]: sysrq-a: graceful reboot via kernel_restart(), similar to sysrq-o Eric Wheeler
2016-03-11 5:13 ` Marc MERLIN [this message]
2016-05-30 19:37 ` Marc MERLIN
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=20160311051313.GF26973@merlins.org \
--to=marc@merlins.org \
--cc=linux-kernel@lists.ewheeler.net \
--cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox