9

RAID6 is intended to provide fault tolerance in the event 2 disks fail.

What is the minimum number of disks required to implement RAID6?

thanks

Martin Schröder
  • 315
  • 1
  • 5
  • 24
Upul
  • 211
  • 1
  • 2
  • 6

4 Answers4

12

http://en.wikipedia.org/wiki/Standard_RAID_levels#RAID_6

Raid 6 is basically "two parity blocks" vs Raid 5 having one.

So you need n+2 where n is the number of data disks.

The minimum is 4 disks = 2 for data, 2 for parity
I suppose you could get away with 3 disks, but why have 2 parity for 1 data?

gbn
  • 6,009
  • 1
  • 17
  • 21
  • I don't think any controller is going to let you do a RAID 6 with only 3 disks. It will force you to do a RAID 5. If it does let you do a RAID 6 with three disks, I would stop using that RAID card right away since it can't be reliable at all. – Urda Mar 13 '10 at 17:38
  • 2
    RAID6 over three disks is in fact equivalent to RAID1... – b0fh Mar 13 '10 at 19:07
  • @b0fh, @Urda: personally, I've never tried RAID 6 and have never heard of anyone using it until now. With 4 disks, why not RAID 10 for example? – gbn Mar 14 '10 at 09:04
  • 8
    With raid10, if you randomly lose 2 disks, there is a 1/3 chance of them being the same stripe, and you lose the whole array. Raid6 will guard you against any combination of 2 drives failing (but is computationally more expensive, and has lower parallelism as well) – b0fh Mar 14 '10 at 12:43
  • 2
    Fyi: that link is dead (well, the fragment part anyway) and the Wikipedia page it points to no longer explicitly states the minimum number of drives required for RAID 6. Additionally, this question is now the third result on Google for "raid 6 minimum drives". This is why I don't believe sentiments like "Did you do any investigation yourself?" are particularly useful on SE. I *am* doing investigation myself. That's why I'm here! ;-) – Ajedi32 Jan 30 '15 at 15:05
  • @Ajedi32: the comment was not directed at you! A simple look at RAID anywhere would have answered this. I;m flattered to be in a Google result though – gbn Feb 03 '15 at 12:53
  • 2
    Generally speaking, RAID 6 is good for larger amounts of disks where disk cost is a problem. Writes to RAID 6 (and 5) setups are not very fast though. Reading is nice and speedy, so if that is your thing, RAID 6 is nice. In both the RAID 5 and 6 cases, I would add a hot spare to add resilience. If you were to spend a bit more on a setup, go for RAID 10 - it has both good read and write performance and up 50% failure tolerance. Still, a hot spare is really nice though. – MrMajestyk Feb 03 '15 at 13:03
  • @gbn Yes, I realize you meant that comment for the OP, and I agree that this question wasn't very well researched. I was just saying that, from the perspective of anyone other than the OP viewing this question (which, judging by the view count and Google ranking, is quite a lot of people), remarks like like that aren't very useful, and should probably go in the comments instead of the answers. – Ajedi32 Feb 03 '15 at 14:21
  • @gbn I think a lot of people on SE tend to forget that answers aren't just meant for the OP, but also potentially for thousands of future viewers who come from Google. We're not just answering people's questions here, we're building a giant FAQ. ;) – Ajedi32 Feb 03 '15 at 14:27
  • if you use SNIA's definition of raid6, then the minimum number of required disks is 3. by SINA's definition, a simple raid1 with 3 disks is RAID6-compliant, any 2 disks can die and the raid is still fully operational. (SNIA=Storage Networking Industry Association) – hanshenrik Jun 13 '19 at 10:03
  • If RAID 6 requires 2 disks for parity, if D is the size of each disk in domr N number of disks in the RAID 6 set, I'd generally expect roughly (N-2)D usable storage in the RAID set. What I am curious about if there is a limit to a RAID 6 size or if size begins to cause performance hits. I use 8 disks in my RAID 6 set and it seems great, but I wonder what would happen if I tried 16 disks? – Darf Nader Oct 05 '19 at 18:23
8

It makes a lot of sense to go for a 3 disk raid 6.

Its the most efficient config that can handle 2 failures. I can assure you that its a very nervous time when you loose one disk on a raid 1 or 5 system, especially when you know that the disks were bought at the same time which increases risk dramatically. With Raid 6 you can still be quite laid back about it.

After a disk fail you pull the wrong disk out, whoops, with raid 6 its stressful but not fatal.

Peter Collard
  • 81
  • 1
  • 1
  • Can't you just use a 3-disk RAID 1 system? – Ajedi32 Jan 30 '15 at 15:16
  • @Ajedi32: No, you can't, as RAID1 needs multiples of 2. – Sven Jan 30 '15 at 15:26
  • @Sven Isn't RAID 1 just mirroring? Why would that require multiples of 2? – Ajedi32 Jan 30 '15 at 15:34
  • 2
    @Ajedi32: Because the disks are mirrored pairwise. What you likely have in mind is an extension called [RAID 1E](http://en.wikipedia.org/wiki/Non-standard_RAID_levels#RAID_1E). – Sven Jan 30 '15 at 15:39
  • @Sven I think you've got it backwards (either that or the Wikipedia page you linked to does). Compare: http://en.wikipedia.org/wiki/Non-standard_RAID_levels#RAID_1E and http://en.wikipedia.org/wiki/Standard_RAID_levels#RAID_1 Based on those diagrams, it seems that with RAID 1E in a three disk array, if two disks fail then you're out of luck. With Raid 1 in a three disk array, that's not the case. – Ajedi32 Jan 30 '15 at 15:46
  • @Sven So I did a bit of research, and it seems our misunderstanding has arisen from the differences in capabilities between software and hardware RAID. It most definitely *is* possible to set up a three-disk RAID 1 array, but you have to do it in software. Have a look at this thread: http://ubuntuforums.org/showthread.php?t=825205 – Ajedi32 Jan 30 '15 at 16:01
3

The minimum number of drives required for RAID 6 is four.

Technically there's no reason why you couldn't set up a RAID 6 array with only three disks, but most RAID controllers don't support this. (See Why does RAID 6 require at least 4 disks?)

In a RAID 6 array with four disks, data blocks will be distributed across the drives, with two disks being used to store each data block, and two being used to store parity blocks. As you stated, with this setup you can lose up to two disks simultaneously without experiencing any data loss.

In the future, you can use this helpful table comparing various RAID levels to help you decide which RAID level is suitable for your needs.

Ajedi32
  • 167
  • 11
  • if you use SNIA's definition of raid6, then the minimum number of required disks is 3. by SNIA's definition, a simple raid1 with 3 disks is RAID6-compliant, any 2 disks can die and the raid is still fully operational. (SNIA=Storage Networking Industry Association) – hanshenrik Jun 13 '19 at 10:04
0

Since you need a double level of parity it should be 4 disks. You split the data on 2 disks while you calculate different parities on the other ones..

Jack
  • 139
  • 5