From: Qu Wenruo <wqu@suse.de>
To: Remi Gauvin <remi@georgianit.com>,
linux-btrfs <linux-btrfs@vger.kernel.org>
Subject: Re: [PATCH RFC] btrfs: Don't create SINGLE or DUP chunks for degraded rw mount
Date: Tue, 12 Feb 2019 15:47:32 +0800 [thread overview]
Message-ID: <d5ad9e15-a572-2819-c39f-43d4c0ff2832@suse.de> (raw)
In-Reply-To: <79f33db2-f39c-6bd6-4697-d9d9f6a704f1@georgianit.com>
[-- Attachment #1.1: Type: text/plain, Size: 1245 bytes --]
On 2019/2/12 下午3:43, Remi Gauvin wrote:
> On 2019-02-12 2:22 a.m., Qu Wenruo wrote:
>
>>> Does this mean you would rely on scrub/CSUM to repair the missing data
>>> if device is restored?
>>
>> Yes, just as btrfs usually does.
>>
>
> I don't really understand the implications of the problems with mounting
> fs when single/dup data chunk are allocated on raid1,
Consider this use case:
One btrfs with 2 devices, RAID1 for data and metadata.
One day devid 2 got failure, and before replacement arrives, user can
only use devid 1 alone. (Maybe that's the root fs).
Then new disk arrived, user replaced the missing device, caused SINGLE
or DUP chunks on devid 1, and more importantly, some metadata/data is
already in DUP/SINGLE chunks.
Then some days later, devid 1 get failure too, now user is unable to
mount the fs degraded RW any more, since SINGLE/DUP chunks are all on
devid 1, and no way to replace devid 1.
Thanks,
Qu
> but I would think
> that would actually be a preferable situation than filling a drive with
> 'data' we know is completely bogus... converting single/dup data to raid
> should be much faster than tripping on CSUM errors, and less prone to
> missed errors?
>
>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2019-02-12 7:47 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-12 7:03 [PATCH RFC] btrfs: Don't create SINGLE or DUP chunks for degraded rw mount Qu Wenruo
2019-02-12 7:20 ` Remi Gauvin
2019-02-12 7:22 ` Qu Wenruo
2019-02-12 7:43 ` Remi Gauvin
2019-02-12 7:47 ` Qu Wenruo [this message]
2019-02-12 7:55 ` Remi Gauvin
2019-02-12 7:57 ` Qu Wenruo
2019-02-12 18:42 ` Andrei Borzenkov
2019-02-12 19:09 ` Remi Gauvin
2019-02-13 0:44 ` Qu Wenruo
[not found] <173bc320-4d67-6752-86cb-119dc9fb9a69@dial.pipex.com>
2021-02-21 9:36 ` tai63
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=d5ad9e15-a572-2819-c39f-43d4c0ff2832@suse.de \
--to=wqu@suse.de \
--cc=linux-btrfs@vger.kernel.org \
--cc=remi@georgianit.com \
/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).