archive mirror
 help / color / mirror / Atom feed
Subject: [linux-lvm] (Why) Does lvmcreate --raid6 need 5 drives?
Date: Mon, 17 Sep 2018 09:36:08 +1000	[thread overview]
Message-ID: <> (raw)

This question was originally put on ServerFault here:

I'm investigating using LVMRAID instead of MD+LVM. In my case, I'm 
looking at a RAID6. As expected, the docs say you need N+1 devices for 
RAID5, and a minimum of 3 drives. The docs say for RAID 6 you need N+2.

However, it then says that the minimum drives required is 5, which means 
that N is different.

In an MD RAID6, only 4 drives are required; 2 for striping, 2 for 
parity. So if I built RAID6+LVM I'd only need 4 drives whereas, 
according to the docs, I'd need 5 drives for LVMRAID6.  It was my 
understanding that LVMRAID is really just LVM on MD, so I don't 
understand the difference.

Thomas on ServerFault pointed out that a minimum of 3 stripes is 
hardcoded into the source code[1].

But the commit message[2] doesn't seem to indicate a reasoning behind 
requiring a higher number of striped for RAID6 than RAID5.

Why does LVMRAID need 3 stripes for RAID6 where MD only needs 2?



             reply	other threads:[~2018-09-16 23:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-16 23:36 tudor [this message]
2018-09-17 12:41 ` [linux-lvm] (Why) Does lvmcreate --raid6 need 5 drives? Heinz Mauelshagen
2018-09-17 23:41   ` tudor
2018-09-18  9:14     ` Heinz Mauelshagen

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \

* 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;
as well as URLs for NNTP newsgroup(s).