All of lore.kernel.org
 help / color / mirror / Atom feed
From: efkf <efkf@firemail.cc>
To: Forza <forza@tnonline.net>, linux-btrfs@vger.kernel.org
Subject: Re: Tried to replace a drive in a raid 1 and all hell broke loose
Date: Fri, 27 May 2022 17:28:17 +0100	[thread overview]
Message-ID: <d76489d5-06eb-5737-17d7-98d02fce38f7@firemail.cc> (raw)
In-Reply-To: <33e31083-99d5-b8d8-e082-a1260849b8da@tnonline.net>

[-- Attachment #1: Type: text/plain, Size: 1195 bytes --]

On 5/27/22 16:25, Forza wrote
> On 2022-05-27 17:13, efkf@firemail.cc wrote:
>> I had mounted the fs with -o degraded and one drive a couple of times 
>> just as a sanity check to make sure the data really is in both drives, 
>> i assume this would mount it rw and fall into the category you described. 
> 
> With Btrfs, this is not good practice. If you mount RAID mirrors 
> independently as degraded, the metadata could be updated differently and 
> when you combine the drives again, the data would not be the same on 
> each device - which would lead to corruption. This is true even for ro 
> mounts. ro is a Linux VFS thing, Btrfs will still write to the disk for 
> its internal things.

I don't know much about advanced filesystems but I can imagine scenarious where it would be beneficial to reintroduce an old drive into an array that maybe even has changed without whiping it, maybe it's the only one storing the intact copy of an old file.
Anyway, is there a way to check the data is really redundant without trusting the filesystem telling me it's so?

> Good to hear that you got most of your data back. :)
:)

I tried another client now, hopefully the attachment has gone through

[-- Attachment #2: transfer_dmesg_full.xz --]
[-- Type: application/x-xz, Size: 44660 bytes --]

  reply	other threads:[~2022-05-27 16:28 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-23 17:21 Tried to replace a drive in a raid 1 and all hell broke loose efkf
     [not found] ` <5fd50e9.def5d621.180f273d002@tnonline.net>
2022-05-23 20:00   ` efkf
2022-05-23 20:05     ` efkf
2022-05-24  6:51       ` efkf
2022-05-24 19:11         ` Chris Murphy
2022-05-27 15:13           ` efkf
2022-05-27 15:15             ` efkf
2022-05-27 15:25             ` Forza
2022-05-27 16:28               ` efkf [this message]
2022-05-27 21:37                 ` Forza
2022-05-28 20:20           ` Nicholas D Steeves
2022-05-28 21:04             ` Forza
2022-05-29 20:48             ` efkf
2022-05-30 20:47               ` Forza
2022-05-30 21:59                 ` Graham Cobb
2022-06-07 21:17                   ` Nicholas D Steeves

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=d76489d5-06eb-5737-17d7-98d02fce38f7@firemail.cc \
    --to=efkf@firemail.cc \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.