linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Chris Murphy <lists@colorremedies.com>
To: Btrfs BTRFS <linux-btrfs@vger.kernel.org>
Subject: Re: btrfs as / filesystem in RAID1
Date: Fri, 8 Feb 2019 09:56:17 -0700	[thread overview]
Message-ID: <CAJCQCtSzUWfG98K1sBSszieqcCLYXMSVQzeoNKfx4BW-rfKrcQ@mail.gmail.com> (raw)
In-Reply-To: <30996181.4P3RU5RJzb@t460-skr>

On Fri, Feb 8, 2019 at 12:15 AM Stefan K <shadow_7@gmx.net> wrote:
>
> > * Normal desktop users _never_ look at the log files or boot info, and
> > rarely run monitoring programs, so they as a general rule won't notice
> > until it's already too late.  BTRFS isn't just a server filesystem, so
> > it needs to be safe for regular users too.
> I guess a normal desktop user wouldn't create a RAID1 nor other RAID-things, right? So an admin take care of a RAID and monitor it (it doesn't matter if it a hardwareraid, mdraid, zfs raid or what ever)
> and degraded works only with RAID-things, its not relevant for single-disk usage, right?

The point is that persistently setting the degraded mount option as a
boot param has a chance of causing a degraded mount even if your array
is not degraded.

Also, there is no such thing as transitioning from normal mount to
degraded mount. If a device fails, the array is not strictly degraded,
it's a normal mount with a huge amount of kernel errors being
generated by Btrfs due to the bad/missing device. I'm pretty sure
there are unmerged patches add something like the concept of an md
faulty device, but I'm not sure what the logic is, but my
understanding is they're not well enough tested yet (?) for them to
get merged.

If your system log is directed to write to this same volume, that
causes even more errors due to additional failing writes, which then
have to be logged. So now you're depending on kernel printk rate
limiting being set well below the water line to make sure Btrfs errors
don't cause so much disk contention that the system gets stuck (not
difficult if sysroot is a hard drive).

>
> > Also, LVM and MD have the exact same issue, it's just not as significant
> > because they re-add and re-sync missing devices automatically when they
> > reappear, which makes such split-brain scenarios much less likely.
> why does btrfs don't do that?

It's a fair question but the simplest answer is, features don't grow
on trees, they're written by developers and no one has yet done that
work.


--
Chris Murphy

  parent reply	other threads:[~2019-02-08 16:56 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-01 10:28 btrfs as / filesystem in RAID1 Stefan K
2019-02-01 19:13 ` Hans van Kranenburg
2019-02-07 11:04   ` Stefan K
2019-02-07 12:18     ` Austin S. Hemmelgarn
2019-02-07 18:53       ` waxhead
2019-02-07 19:39         ` Austin S. Hemmelgarn
2019-02-07 21:21           ` Remi Gauvin
2019-02-08  4:51           ` Andrei Borzenkov
2019-02-08 12:54             ` Austin S. Hemmelgarn
2019-02-08  7:15           ` Stefan K
2019-02-08 12:58             ` Austin S. Hemmelgarn
2019-02-08 16:56             ` Chris Murphy [this message]
2019-02-08 18:10           ` waxhead
2019-02-08 19:17             ` Austin S. Hemmelgarn
2019-02-09 12:13               ` waxhead
2019-02-10 18:34                 ` Chris Murphy
2019-02-11 12:17                   ` Austin S. Hemmelgarn
2019-02-11 21:15                     ` Chris Murphy
2019-02-08 20:17             ` Chris Murphy
2019-02-07 17:15     ` Chris Murphy
2019-02-07 17:37       ` Martin Steigerwald
2019-02-07 22:19         ` Chris Murphy
2019-02-07 23:02           ` Remi Gauvin
2019-02-08  7:33           ` Stefan K
2019-02-08 17:26             ` Chris Murphy
2019-02-11  9:30     ` Anand Jain
2019-02-02 23:35 ` Chris Murphy
2019-02-04 17:47   ` Patrik Lundquist
2019-02-04 17:55     ` Austin S. Hemmelgarn
2019-02-04 22:19       ` Patrik Lundquist
2019-02-05  6:46         ` Chris Murphy
2019-02-05  7:37           ` Chris Murphy

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=CAJCQCtSzUWfG98K1sBSszieqcCLYXMSVQzeoNKfx4BW-rfKrcQ@mail.gmail.com \
    --to=lists@colorremedies.com \
    --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).