All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Krig <robert.krig@render-wahnsinn.de>
To: linux-btrfs <linux-btrfs@vger.kernel.org>
Subject: Re: btrfs-balance convert from raid1 to single on specific device?
Date: Tue, 10 Nov 2015 13:41:16 +0100	[thread overview]
Message-ID: <5641E5EC.6070808@render-wahnsinn.de> (raw)
In-Reply-To: <5641C566.7030309@render-wahnsinn.de>

Hi again,
I've been browsing through the mailing list and I came across a patch
that might solve my issue a lot easier.

Specifically "[PATCH 02/15] btrfs: Do per-chunk check for mount time
check" by Qu Wenruo

I'm a bit at a loss as to how to apply that patch. Since I'm not even
sure for which kernel tree or git repo this patch refers to.

I've cloned the btrfs-next git repo from the btrfs wiki page. I've also
searched through the gitweb site for that repo, but I couldn't find that
patch included anywhere.
I'm guessing that it will probably take a while for patches to the
mailing list to be merged into one of the repos.

What would be the easiest way for me to compile that specific patch?
Which kernel version sources do I ideally need?
Is there a git repo that already has that patch included?

Thank you for your help.




On 10.11.2015 11:22, Robert Krig wrote:
> Hi,
>
> I'm running Kernel 4.3 and Btrfs-tools 4.3 on Debian Jessie. I compiled
> the tools and kernel myself.
>
> Recently I added a new disk to my btrfs volume and wanted to proceed to
> convert from single to raid1.
> Unfortunately the new disk seems to be faulty and started throwing a lot
> of errors.
>
> The balance convert operation didn't manage to finish, and now I'm
> trying to get my btrfs volume back to single mode so that I can mount it
> read/write.
>
> If I try to mount it degraded, then it complains that there are too few
> devices to mount writeable. So it will only allow me to mount read-only.
>
> So far, so bad.
>
> I have managed to boot and mount the volume once, with the faulty disk
> and cancel the balance operation.
> Now I would like to convert it all to single again, so that I can
> finally remove that faulty drive.
>
> However, if I simply say
> btrfs fi balance start -dconvert=single -mconvert=single /btrfs-volume
>
> Wouldn't that theoretically move some blocks to the faulty drive? Can I
> somehow specify to rebalance only the working drive?
>
> I was thinking by specifying the device id, which seems possible
> according to the manpage.
> I just wanted to check with you guys first, if that should work as
> expected, or will I run into further trouble?
>
> Also, I understand -dconvert is for data, and -mconvert is for metadata,
> but is -sconvert? Is that data and metadata combined, or are system
> chunks something else entirely?
>
> Thanks for your help.


      reply	other threads:[~2015-11-10 12:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-10 10:22 btrfs-balance convert from raid1 to single on specific device? Robert Krig
2015-11-10 12:41 ` Robert Krig [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=5641E5EC.6070808@render-wahnsinn.de \
    --to=robert.krig@render-wahnsinn.de \
    --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.