From: "Austin S. Hemmelgarn" <ahferroin7@gmail.com>
To: Tomasz Torcz <tomek@pipebreaker.pl>, linux-btrfs@vger.kernel.org
Subject: Re: raid1: cannot add disk to replace faulty because can only mount fs as read-only.
Date: Wed, 8 Feb 2017 14:06:07 -0500 [thread overview]
Message-ID: <0565ffd4-dd9b-cf56-61fe-8da887f99848@gmail.com> (raw)
In-Reply-To: <20170208134647.GA86702@mother.pipebreaker.pl>
On 2017-02-08 08:46, Tomasz Torcz wrote:
> On Wed, Feb 08, 2017 at 07:50:22AM -0500, Austin S. Hemmelgarn wrote:
>> It is exponentially safer in BTRFS
>> to run single data single metadata than half raid1 data half raid1 metadata.
>
> Why?
>
>> To convert to profiles _designed_ for a single device and then convert back
>> to raid1 when I got another disk. The issue you've stumbled across is only
>> partial motivation for this, the bigger motivation is that running half a 2
>> disk array is more risky than running a single disk by itself.
>
> Again, why? What's the difference? What causes increased risk?
Aside from bugs like the one that sparked this thread that is? Just off
the top of my head:
* You're running with half a System chunk. This is _very_ risky because
almost any errors in the system chunk run the risk of nuking entire
files and possibly the whole filesystem. This is part of the reason
that I explicitly listed -mconvert=dup instead of -mconvert=single.
* It performs significantly better. As odd as this sounds, this
actually has an impact on safety. Better overall performance reduces
the size of the windows of time during which part of the filesystem is
committed. This has less impact than running a traditional filesystem
on top of a traditional RAID array, but it still has some impact.
* Single device is exponentially more well tested than running a
degraded multi-device array. IOW, you're less likely to hit obscure
bugs by running a single profile instead of half a raid1 profile.
next prev parent reply other threads:[~2017-02-08 19:08 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-24 18:57 raid1: cannot add disk to replace faulty because can only mount fs as read-only Hans Deragon
2017-01-24 19:48 ` Adam Borowski
[not found] ` <W75Sc6PDCBok7W75TcCgc7@videotron.ca>
2017-01-27 16:47 ` Hans Deragon
2017-01-27 20:03 ` Austin S. Hemmelgarn
2017-01-27 20:28 ` Adam Borowski
2017-01-28 9:17 ` Andrei Borzenkov
2017-01-30 12:18 ` Austin S. Hemmelgarn
[not found] ` <YAvBcoM9EImXYYAvCcegSf@videotron.ca>
2017-02-01 2:51 ` Hans Deragon
2017-02-01 5:23 ` Duncan
2017-02-01 11:55 ` Adam Borowski
2017-02-01 22:48 ` Duncan
2017-02-02 12:49 ` Austin S. Hemmelgarn
2017-02-02 14:25 ` Adam Borowski
2017-02-02 15:06 ` Austin S. Hemmelgarn
[not found] ` <ZIyPcL4cW36fIZIyQcB9Hs@videotron.ca>
2017-02-08 3:21 ` Hans Deragon
2017-02-08 12:50 ` Austin S. Hemmelgarn
2017-02-08 13:46 ` Tomasz Torcz
2017-02-08 19:06 ` Austin S. Hemmelgarn [this message]
2017-02-03 9:35 ` Duncan
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=0565ffd4-dd9b-cf56-61fe-8da887f99848@gmail.com \
--to=ahferroin7@gmail.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=tomek@pipebreaker.pl \
/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).