All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin <m_btrfs@ml1.co.uk>
To: linux-btrfs@vger.kernel.org
Subject: Re: Btrfs and raid5 status with kernel 3.14, documentation, and howto
Date: Tue, 25 Mar 2014 01:11:43 +0000	[thread overview]
Message-ID: <lgql40$lm5$1@ger.gmane.org> (raw)
In-Reply-To: <20140324215239.GC11533@merlins.org>

On 24/03/14 21:52, Marc MERLIN wrote:
> On Mon, Mar 24, 2014 at 07:17:12PM +0000, Martin wrote:
>> Thanks for the very good summary.
>>
>> So... In very brief summary, btrfs raid5 is very much a work in progress.
> 
> If you know how to use it, which I didn't know do now, it's technically very
> usable as is. The corner cases are in having a failing drive which you can't
> hot remove because you can't write to it.
> It's unfortunate that you can't just "kill" a drive without umounting,
> making the drive disappear so that btrfs can't see it (dmsetup remove
> cryptname for me, so it's easy to do remotely), and remounting in degraded
> mode.

Yes, looking good, but for my usage I need the option to run ok with a
failed drive. So, that's one to keep a development eye on for continued
progress...


>> Question: Is the raid5 going to be seamlessly part of the
>> error-correcting raids whereby raid5, raid6,
>> raid-with-n-redundant-drives are all coded as one configurable raid?
> 
> I'm not sure I parse your question. As far as btrfs is concerned you can
> switch from non raid to raid5 to raid6 by adding a drive and rebalancing
> which effectively reads and re-writes all the blocks in the new format.

There's a big thread a short while ago about using parity across
n-devices where the parity is spread such that you can have 1, 2, and up
to 6 redundant devices. Well beyond just raid5 and raid6:

http://lwn.net/Articles/579034/


>> Also (second question): What happened to the raid naming scheme that
>> better described the btrfs-style of raid by explicitly numbering the
>> number of devices used for mirroring, striping, and error-correction?
> 
> btrfs fi show kind of tells you that if you know how to read it (I didn't
> initially). What's missing for you?

btrfs raid1 at present is always just the two copies of data spread
across whatever number of disks you have. A more flexible arrangement is
to be able to set to have say 3 copies of data and use say 4 disks.
There's a new naming scheme proposed somewhere that enumerates all the
permutations possible for numbers of devices, copies and parity that
btrfs can support. For me, that is a 'killer' feature beyond what can be
done with md-raid for example.


Regards,
Martin




  reply	other threads:[~2014-03-25  1:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-23 22:56 Btrfs and raid5 status with kernel 3.14, documentation, and howto Marc MERLIN
2014-03-24 19:17 ` Martin
2014-03-24 21:52   ` Marc MERLIN
2014-03-25  1:11     ` Martin [this message]
2014-03-25  1:29       ` Marc MERLIN
2014-03-25  8:04         ` Brendan Hide

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='lgql40$lm5$1@ger.gmane.org' \
    --to=m_btrfs@ml1.co.uk \
    --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.