From: Vladimir Panteleev <thecybershadow@gmail.com>
To: Andrei Borzenkov <arvidjaar@gmail.com>
Cc: Btrfs BTRFS <linux-btrfs@vger.kernel.org>
Subject: Re: "kernel BUG" and segmentation fault with "device delete"
Date: Fri, 5 Jul 2019 10:20:38 +0000 [thread overview]
Message-ID: <a0d34e0a-f2bb-abd5-bb6f-f82a8d2da190@gmail.com> (raw)
In-Reply-To: <CAA91j0W+UhJ2O+K1SJs3JaOfzkCnRhWgGjfFxXju5_sUsCj18A@mail.gmail.com>
On 05/07/2019 09.42, Andrei Borzenkov wrote:
> On Fri, Jul 5, 2019 at 7:45 AM Vladimir Panteleev
> <thecybershadow@gmail.com> wrote:
>>
>> Hi,
>>
>> I'm trying to convert a data=RAID10,metadata=RAID1 (4 disks) array to
>> RAID1 (2 disks). The array was less than half full, and I disconnected
>> two parity drives,
>
> btrfs does not have dedicated parity drives; it is quite possible that
> some chunks had their mirror pieces on these two drives, meaning you
> effectively induced data loss. You had to perform "btrfs device
> delete" *first*, then disconnect unused drive after this process has
> completed.
Hi Andrei,
Thank you for replying. However, I'm pretty sure this is not the case as
you describe it, and in fact, unrelated to the actual problem I'm having.
- I can access all the data on the volumes just fine.
- All the RAID10 block profiles had been successfully converted to
RAID1. Currently, there are no RAID10 blocks left anywhere on the
filesystem.
- Only the data was in the RAID10 profile. Metadata was and is in RAID1.
It is also metadata which btrfs cannot move away from the missing device.
If you can propose a test to verify your hypothesis, I'd be happy to
check. But, as far as my understanding of btrfs allows me to see, your
conclusion rests on a bad assumption.
Also, IIRC, your suggestion is not applicable. btrfs refuses to remove a
device from a 4-device filesystem with RAID10 blocks, as that would put
it under the minimum number of devices for RAID10 blocks. I think the
"correct" approach would be first to convert all RAID10 blocks to RAID1
and only then remove the devices, however, this was not an option for me
due to other constraints I was working under at the time.
--
Best regards,
Vladimir
next prev parent reply other threads:[~2019-07-05 10:20 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-05 4:39 "kernel BUG" and segmentation fault with "device delete" Vladimir Panteleev
2019-07-05 7:01 ` Vladimir Panteleev
2019-07-05 9:42 ` Andrei Borzenkov
2019-07-05 10:20 ` Vladimir Panteleev [this message]
2019-07-05 21:48 ` Chris Murphy
2019-07-05 22:04 ` Chris Murphy
2019-07-05 21:43 ` Chris Murphy
2019-07-06 0:05 ` Vladimir Panteleev
2019-07-06 2:38 ` Chris Murphy
2019-07-06 3:37 ` Vladimir Panteleev
2019-07-06 17:36 ` Chris Murphy
2019-07-06 5:01 ` Qu Wenruo
2019-07-06 5:13 ` Vladimir Panteleev
2019-07-06 5:51 ` Qu Wenruo
2019-07-06 15:09 ` Vladimir Panteleev
2019-07-20 10:59 ` Vladimir Panteleev
2019-08-08 20:40 ` Vladimir Panteleev
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=a0d34e0a-f2bb-abd5-bb6f-f82a8d2da190@gmail.com \
--to=thecybershadow@gmail.com \
--cc=arvidjaar@gmail.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).