From: Duncan <1i5t5.duncan@cox.net>
To: linux-btrfs@vger.kernel.org
Subject: Re: random i/o error without error in dmesg
Date: Fri, 30 Oct 2015 09:32:59 +0000 (UTC) [thread overview]
Message-ID: <pan$a8f03$738e56c1$efb50882$54e11ccd@cox.net> (raw)
In-Reply-To: 2085133.yRiO7H1dHn@thetick
Marc Joliet posted on Thu, 29 Oct 2015 22:10:24 +0100 as excerpted:
>>Meanwhile, as explained in the systemd docs (specifically the systemd
>>for administrators series, IIRC), systemd dropping back to the initr* is
>>actually its way of automatically doing effectively the same thing we
>>were using lib_users and all those restarts to do, getting rid of all
>>possible still running on root executables, including systemd itself, by
>>reexecing systemd itself back in the initr*, as a way to help eliminate
>>*everything* running on root, so it can not only be remounted read-only,
>>but actually unmounted the same as any other filesystem, as userspace is
>>now actually running from the initr* once again. That's a far *FAR*
>>safer reboot after upgrade than traditional sysvinit solutions were able
>>to do. =:^)
>
> Yeah, the ability to do that is a nice plus of using an initramfs.
> Although I've never been clear on why it's *safer*. Is it because the
> remount might fail? Or are there other reasons, too?
While I don't claim anything but informed admin level authority on the
problem...
It's first worth noting that the problem a return to initramfs helps
solve is in practice reasonably rare and obscure, since if it weren't,
people would have been experiencing it in serious numbers on sysvinit-
based systems all along, and something would have been done to solve it
long before systemd came along. So it's a relatively narrow issue that
in practice can only affect a few users, a relatively small portion of
the time.
>From my read of the systemd docs, it's more pointing out a theoretical
issue than a practical one, pointing out that systemd is in fact a more
theoretically correct solution to the (implicitly mostly theoretical)
problem.
In that context, I believe the (mostly theoretical) point is as much that
we were treating / (and perhaps another mount or two) special, remounting
it read-only instead of unmounting it because in practice there wasn't
any other choice, and that now that systemd offers the choice, it can in
fact be treated just like any other filesystem, fully unmounting it
before shutdown.
Since exceptions to rules are nice places for bugs to hide, in theory at
least (the remount-ro root being such a universal exception that in
practice it's a rule of its own, and bugs couldn't long hide in that
exception /because/ of its universalness), being able to treat / like any
other filesystem and unmount it is a "purer and more correct" solution.
IOW, it's a nice counter to the "systemd isn't unixy enough" point, as
here, it's more "unixy" than sysvinit ever was.
That said, I expect that over the years there have been plenty of
otherwise nice implementations of various useful things that ran into a
shutdown/reboot-time problem due to root's remount-ro exception, that
either limited them to non-root-filesystem deployment or sent them back
for a workaround, if not causing them to rejected outright as unworkable,
that in this new return-to-initr*-and-unmount-root environment will see
faster deployment without the workarounds that heretofore were required.
Of course that'll end up being a limitation on deployment on non-initr*
direct-to-root boot sequences, but in this primarily prebuild binary
distro with prebuild by-necessity-modular-kernel-and-initr* environment,
that's unlikely to slow down wide deployment by much, and anyone wanting
to do direct-to-root boots and/or non-systemd-based deployments will just
have to find their own workarounds, which may ultimately be incorporated
into upstream, or not, depending on upstream's whims.
Which, bringing it all back to the btrfs list title topic, is already
where multi-device btrfs as / filesystem is in terms of initr*, since
that's basically broken without an initr* to assemble it. And of course
the same thing goes for / on LVM, since it too requires userspace to
activate, which means initr* if / is on it.
--
Duncan - List replies preferred. No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master." Richard Stallman
next prev parent reply other threads:[~2015-10-30 9:33 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-26 11:23 random i/o error without error in dmesg Szalma László
2015-10-26 14:23 ` Marc Joliet
2015-10-27 6:23 ` Duncan
2015-10-27 9:19 ` Marc Joliet
2015-10-27 14:57 ` Szalma László
2015-10-27 20:54 ` Marc Joliet
2015-10-28 5:21 ` Duncan
2015-10-28 11:23 ` Austin S Hemmelgarn
2015-10-29 21:10 ` Marc Joliet
2015-10-30 9:32 ` Duncan [this message]
2015-10-28 8:44 ` Szalma László
2015-10-28 12:46 ` Duncan
2015-11-02 18:26 ` Szalma László
2016-02-21 12:01 ` Philipp Serr
2016-04-22 13:17 ` Marc Joliet
2016-05-07 15:22 ` Marc Joliet
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='pan$a8f03$738e56c1$efb50882$54e11ccd@cox.net' \
--to=1i5t5.duncan@cox.net \
--cc=linux-btrfs@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;
as well as URLs for NNTP newsgroup(s).