All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Murphy <lists@colorremedies.com>
To: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
Cc: Chris Murphy <lists@colorremedies.com>,
	Btrfs BTRFS <linux-btrfs@vger.kernel.org>
Subject: Re: paused balance convert from raid1 can no longer be a writeable mount
Date: Wed, 4 Feb 2015 20:00:18 -0700	[thread overview]
Message-ID: <CAJCQCtTdbVOqY0zyCuxSwstZs=MLGVtipw2LStXhRy78HG=8mA@mail.gmail.com> (raw)
In-Reply-To: <20150205023835.GA23108@hungrycats.org>

On Wed, Feb 4, 2015 at 7:38 PM, Zygo Blaxell
<ce3g8jdj@umail.furryterror.org> wrote:
> On Wed, Feb 04, 2015 at 01:53:09PM -0700, Chris Murphy wrote:
>> This is completely reproducible with a brand new file system created
>> as raid1, using kernel 3.19 and btrfs-progs 3.18.
>
> I think you'll find it's reproducible with any kernel after 3.8-rc1
> (circa October 2012).
>
>> The conversion from raid1 to single, if paused, will apparently break
>> the file system's ability to be subsequently mounted writable.
>
> Only if you remove a disk (or one fails).

Conversion is done while degraded, so yes.

> The problem is that one is more than the maximum number of missing devices
> for the single profile, and you are missing one disk, so the filesystem
> gives up.  It doesn't check that all the single chunks are on currently
> present disks.
>
> If you revert commit 292fd7fc39aa06668f3a8db546714e727120cb3e
> you might be able to finish the balance and resume non-degraded read-write
> operation.

Good to know. In my case it's a throw away file system. I guess the
current work around is to not force conversion down to single unless
for sure it won't be interrupted.

I haven't tested it but hopefully conversion of degraded raid1 to
raid10/5/6 can successfully be done. I can see someone with a raid1
say, oh screw it, just add more drives recover to raid5 rather than a
long raid1 rebuild followed by a raid5/6 conversion.


-- 
Chris Murphy

      reply	other threads:[~2015-02-05  3:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-04  7:02 paused balance convert from raid1 can no longer be a writeable mount Chris Murphy
2015-02-04 20:53 ` Chris Murphy
2015-02-05  2:38   ` Zygo Blaxell
2015-02-05  3:00     ` Chris Murphy [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='CAJCQCtTdbVOqY0zyCuxSwstZs=MLGVtipw2LStXhRy78HG=8mA@mail.gmail.com' \
    --to=lists@colorremedies.com \
    --cc=ce3g8jdj@umail.furryterror.org \
    --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.