Re: balance conversion from RAID-1 to RAID-10 leaves some metadata in RAID-1?

Chris Murphy
2020-03-02T21:03:30Z

On Mon, Mar 2, 2020 at 12:39 AM Tomasz Chmielewski <mangoo@wpkg.org> wrote:
>
> On 2020-03-02 15:29, Chris Murphy wrote:
> > On Sun, Mar 1, 2020 at 3:41 AM Tomasz Chmielewski <mangoo@wpkg.org>
> > wrote:
> >>
> >> To my surprise, some metadata is still RAID-1 - is it expected?
> >
> > I'd say it's not expected but also balance is pretty complicated. Try
> >
> > 'btrfs balance start -dconvert=raid10,soft /mountpoint/'
> >
> > What does dmesg report for that command? And are those raid1 bg's
> > converted to raid10? I don't think it should matter in this case, but
> > what's the btrfs-progs version?
>
> I did one more balance, for metadata only:
>
> btrfs balance start -dconvert=raid10 /mountpoint/

Sorry mine had a typo too; should be '-mconvert=raid10,soft /mountpoint/'

>
> And it fully converted the remaining RAID-1 metadata to RAID-10.
>
> Still, a bit "weird".

Yep, I think Hugo's guess is a likely explanation.

--
Chris Murphy