From: Wang Yugui <wangyugui@e16-tech.com>
To: Forza <forza@tnonline.net>
Cc: Btrfs BTRFS <linux-btrfs@vger.kernel.org>
Subject: Re: What mechanisms protect against split brain?
Date: Wed, 08 Jun 2022 10:44:21 +0800 [thread overview]
Message-ID: <20220608104421.3759.409509F4@e16-tech.com> (raw)
In-Reply-To: <c31c664.705b352f.1810f98f3ee@tnonline.net>
Hi,
I tried some test about this case.
After the missing RAID1 device is re-introduced,
1, mount/read seem to work.
checksum based error detect help.
current pid based i/o patch select policy may help too.
preferred_mirror = first + (current->pid % num_stripes);
2, 'btrfs scrub' failed to finish.
Any advice to return to clean state?
Best Regards
Wang Yugui (wangyugui@e16-tech.com)
2022/06/08
> Hi,
>
> Recently there have been some discussions, both here on the mailing list and on #btrfs IRC, about the consequences of mounting one RAID1 mirror as degraded and then later re-introduce the missing device. But also on having degraded mount option in fstab and kernel command line.
>
> So I wonder if Btrfs has some protective mechanisms against data loss/corruption if a drive is missing for a bit but later re-introduced. There is also the case of split brain where each mirror might be independently updated and then recombined.
>
> Is there an official recommendation to have with regards to degraded mounts from kernel command line? I understand the use case as it allows the system to boot even if a device goes missing or dead after a reboot.
>
> Thanks,
> Forza
next prev parent reply other threads:[~2022-06-08 5:29 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-29 11:34 What mechanisms protect against split brain? Forza
2022-06-08 2:44 ` Wang Yugui [this message]
2022-06-08 10:15 ` Wang Yugui
2022-06-08 10:32 ` Qu Wenruo
2022-06-08 10:58 ` Wang Yugui
2022-06-08 11:19 ` Qu Wenruo
2022-06-08 11:55 ` Wang Yugui
2022-06-08 11:59 ` Qu Wenruo
2022-06-08 11:40 ` Austin S. Hemmelgarn
2022-06-08 14:11 ` Andrei Borzenkov
2022-06-08 20:22 ` Forza
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=20220608104421.3759.409509F4@e16-tech.com \
--to=wangyugui@e16-tech.com \
--cc=forza@tnonline.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