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: Mon, 30 May 2016 12:37:42 -0700 [thread overview]
Message-ID: <20160530193742.GA15011@merlins.org> (raw)
In-Reply-To: <20160311051313.GF26973@merlins.org>
On Thu, Mar 10, 2016 at 09:13:13PM -0800, Marc MERLIN wrote:
> 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.
Just updated to 4.6 and re-applied Eric sysrq patch.
It's saved me many times already. I absolutely need to do clean reboots
for both my software raid and bcache, and when the system is not doing
well, sysrq-o does the graceful shutdown, but also powers off my server,
which is not what I want.
I've been using the new sysrq-x Eric wrote and it's been working great.
Any chance, we can get this into standard kernels? I can't be the only
person who benefits from this...
Any suggestion on who might be a good person to
review/critique/integrate this patch?
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
prev parent reply other threads:[~2016-05-30 19:55 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
2016-05-30 19:37 ` 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=20160530193742.GA15011@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 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.