Linux Btrfs filesystem development
 help / color / mirror / Atom feed
From: Michael Welsh Duggan <mwd@md5i.com>
To: linux-btrfs@vger.kernel.org
Subject: Re: Fixing a degraded RAID
Date: Sat, 19 Apr 2014 11:31:14 -0400	[thread overview]
Message-ID: <87fvl9bakd.fsf@maru2.md5i.com> (raw)
In-Reply-To: 20140419132335.05c96c1f@renoir.lan

Xavier Bassery <xavier@bartica.org> writes:

> On Fri, 18 Apr 2014 23:23:56 -0400
> Michael Welsh Duggan <mwd@md5i.com> wrote:
>
>> Michael Welsh Duggan <mwd@md5i.com> writes:
>> 
>> root@maru2:~# /usr/local/src/btrfs-progs/btrfs fi df /mnt/
>> Data, RAID1: total=353.00GiB, used=328.24GiB
>> System, single: total=32.00MiB, used=56.00KiB
>> Metadata, RAID1: total=4.00GiB, used=1.43GiB
>
> As Chris Murphy noted, your "System" chunk still reported as "single"
> is likely the issue here.  This reminds me of a bug i stumbled upon
> once: https://bugzilla.kernel.org/show_bug.cgi?id=60594
>
> Have you converted your fs from SINGLE to RAID-1 profile by running a
> balance?

Yes, I did.  And I think I was still on 3.10 or 11 when this happened.

> This conversion bug should no longer occur with the patch "Btrfs: stop
> refusing the relocation of chunk 0" which has been merged since 3.12.
> But chances are that you've converted your fs with an older kernel
> without that patch.  While Ilya Dryomov investigated the issue on my
> system, we managed to work around this by using a patched module that
> ignored the safety measure refusing to mount rw in this case.
>
> I still have the patch, but i think the safest way and only other
> option would be to copy the data from your ro fs and recreate it from
> scratch.  Doing so with recent btrfs progs (v3.12 or newer) you'll
> benefit from the new default metadata blocksize of 16KB that should
> increase performance.

Right.  *sigh*  A pain, but needs must, and all that.  Thanks for your
help.

-- 
Michael Welsh Duggan
(md5i@md5i.com)


      reply	other threads:[~2014-04-19 15:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-19  2:36 Fixing a degraded RAID Michael Welsh Duggan
2014-04-19  2:49 ` Chris Murphy
2014-04-19  2:58   ` Michael Welsh Duggan
2014-04-19  3:23 ` Michael Welsh Duggan
2014-04-19  4:54   ` Chris Murphy
2014-04-19 11:23   ` Xavier Bassery
2014-04-19 15:31     ` Michael Welsh Duggan [this message]

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=87fvl9bakd.fsf@maru2.md5i.com \
    --to=mwd@md5i.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