Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Just curious, I have 6 x 1TB 7200RPM Near Line SAS for my new server. I can either configure it as RAID5+1 Hot Spare or RAID6.

What should I choose?

share|improve this question

closed as primarily opinion-based by Avery Payne, fukawi2, EEAA, Andrew Schulman, Rex Mar 10 at 16:10

Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise. If this question can be reworded to fit the rules in the help center, please edit the question.

I speculate that 5 years from now... many people will be asking.. what's RAID? It's going to be heading out the door very soon but still relevant for today. –  Matt Apr 28 '14 at 20:44

10 Answers 10

up vote 25 down vote accepted

You have disadvantages and advantages with each approach; it depends on why you're using RAID. Most people use it for availability. They don't want a drive to die and end up having to take their system or server down. In that, you don't use RAID 5. I learned it the hard way and hammer this point home with every RAID-related question I get into on SF.

Why? Because as drives are getting larger, there's more tolerance for URE, unrecoverable read errors. We had it happen and it isn't what you want to discover in the middle of a rebuild. Scenario: RAID system with 3 drives. We got an alarm on our Dell with a hardware PERC card that drive C died. Order new drive, swap it out, no problem. In the middle of the rebuild, it died.

According to the diagnostics, there was a "bad spot" on drive B. The system had a silently failed on that drive repeatedly, and now that it was rebuilding the data, it couldn't read that spot, and no matter how many times we ran the repair even off the controller directly and it each time said everything was fixed, it wouldn't rebuild. So we have one dead drive and one drive that couldn't read from a spot...we end up replacing 2 drives and restoring from backup.

Lesson: RAID isn't a backup, and RAID 5 is no longer an availability option for larger drives.

If you're looking to increase speed or increase storage sizes, then you can balance that into your decision. You need to define your needs in terms of your needs and goals, not in terms of "I need RAID, which do I use?"

share|improve this answer
Drives meant for RAID operations typically fail their error correction very quickly and report the failure to the controller. The idea is to avoid situations like you describe above -- the bad block gets remapped and the data recovered from parity rather than the disk getting marked as bad because it "hangs" for 45 seconds trying to recover that block. Western digital even has a utility to change the error recovery behavior of their disks, though the utility isn't "officially" released. –  chris Mar 2 '10 at 13:15
I could not follow the argument. Are you saying use RAID 6, or RAID 5 ? –  Martin Mar 2 '10 at 13:25
@martin: I'm commenting on the concern that certain types of disk failures are dealt with differently depending on the target design of the disk itself. Martin described a multi-disk failure as a result of a "bad spot" on a disk, which under some situations won't (and shouldn't) cause a full array rebuild. In the process of the array rebuild, another disk failed, resulting in a bad day. –  chris Mar 2 '10 at 13:29
@chris - Sorry for the confusion - I was not commenting on your comment. (It was not there when I posted.) My question was directed at Bart: I could not figure out if he was saying RAID 5 is a must-have, or whether RAID-5 is not enough and only RAID 6 would do. –  Martin Mar 2 '10 at 14:40
@Chris-I don't know what the differentiation would be anymore, but PERCs are hardware based, onboard cache, integrated management tools, hot swap, etc. and while Dell isn't necessarily charging ten grand for the servers they're fairly popular in the enterprise environment. The drives are supposed to report errors; that's how you get error messages and alerts. But URE's are something that happens with drives and they don't seem to be aware of it until doing something like...oh...rebuilding an array. Then suddenly "Hey! There's a problem here too!" –  Bart Silverstrim Mar 2 '10 at 17:24

Use RAID6. Read "Why RAID 6 stops working in 2019" by Robin Harris on ZDNet.

share|improve this answer

RAID 5 should never exist with a hot spare (warm spare.) RAID 6 is always a better use of the same drive count.


There is no space/capacity advantage or cost advantage to the RAID 5 solution (but some small performance advantage) but it does a ton for mitigating things like URE risk.

share|improve this answer
RAID-6 is substantially slower then RAID-5 + a hot spare. RAID-6 is not always better. –  Stefan Lasiewski Apr 28 '14 at 17:40

While performance is a concern, it is not as much of a concern as you think. Newer RAID hardware is going to be as fast writing 2 parity stripes as they are at 1 stripe.

Also, SAS drives usually have a lower Bit Error Rate, which translates to a lower Unrecoverable Read Error (URE). Usually an order of magnitude (10x), however, if the SAS drive is the same model as a SATA drive, you may not see an improvement.

Finally, as to the question of RAID-5 and UREs and how that can just ruin your day, I wrote an article on it some time ago at: http://subnetmask255x4.wordpress.com/2008/10/28/sata-unrecoverable-errors-and-how-that-impacts-raid/ in which I cover some of these questions. Basically, RAID-6 on good hardware (not software RAID) should show equivalent performance to RAID-5. If you have poor hardware, or are using software RAID, then you will see a performance hit.

As always, backups are your saving grace. Do not forget to implement a backup policy, AND verify that it can be recovered from.

share|improve this answer
Wow, I think I was all over the dang place with that one. What I was trying to say is that given your drives, if you have a good hardware RAID controller, then RAID 6 has no downsides over RAID 5 with a hot spare (the +1). However, if you do not have a good hardware RAID controller, then you will see slower reads and writes, with writes being a bit slower than the reads. If you are using software RAID only, then you will see a slower read, and much slower writes. Good hardware - RAID 6; Poor hardware - RAID 6 with performance hit; Software only - RAID 5 (+1) and pray a lot. –  subnetmask255x4 Mar 2 '10 at 21:29

Good answers, except that no-one has mentioned write performance. RAID 6 usually gets you a slight performance hit on write compared to RAID 5, since there are two parity stripes to be maintained.

Nonetheless, most find it worthwhile to go with RAID 6.

share|improve this answer

Lots of good advice here, particularly from Bart and Chopper3.

The only thing that I would add is test your workload under a failure condition. People usually setup a RAID-5/RAID-6 to buy availability (ie. the server isn't going down due to disk failure). Unfortunately, for some workloads -- especially write-heavy workloads, you may find that the performance hit is severe enough that you aren't buying much.

If your testing works out, great -- just don't forget to devise and test a backup strategy.

share|improve this answer

This one's easy - do you want more available disk space or the ability to survive disks failing - it's that simple.

So I'll make some wild assumptions - that you don't care about performance as they're 7.2's and that you do care about available space as they're 1TB disks - you don't mention what type of data you want to store but I'm going to assume it's either just video files or a combination of video and audio. If I'm right then presumably you would struggle to replace the data? in that case I'd choose neither 5 or 6 but go with R10, yes you lose 1TB over R6 and 2TB over R5 but it'll be faster and can survive three disks going pop. If I'm wrong and you can quickly recover your data then you may as well go R5 so you get the most available space.

share|improve this answer
“yes you lose 1TB over R6 and 2TB over R5 but it'll be faster and can survive three disks going pop.” – That's if you're lucky; in the worst-case you'll not survive more than 1 drive failure (if the 2nd is in the same RAID 1 pair as the first). If I'm not mistaken, for 1, 2, 3, and 4 drive failures, the ‘naïve’ cumulative probability of having to resort to backup is 0, 1/5, 3/5, 1, respectively (the number of zero terms being the number of drive failures that can be safely tolerated). With RAID 6, it's 0, 0, 1, which is somewhat easier to work with, plus you don't lose that extra terabyte. –  James Haigh Mar 6 at 8:46
You're right James, things have changed in the last FIVE YEARS (OMG that was a long time ago - wow!) and now I only recommend R6/60 and R1/10. –  Chopper3 Mar 6 at 9:11

RAID6. That way, if a two disks fail in relatively quick succession, so the array hasn't finished rebuilding from the first failure (or 2 disks fail to spin up after a power outage), you've not lost all your data.

share|improve this answer

Raid6 has more overhead, so raid5 as such will be faster on the same amount of drives. On the other hand you might lose the advantage once a disk dies, and the rai5 rebuilds, you are at risk of losing the array if another drives dies during the rebuild.

In your case, you're running raid5 vs 6 on a different amount of spindles, so because of the extra spindle raid6 might be faster.

share|improve this answer

I think RAID 5 vs. 6 (and vs. 10) comes down to performance and how much you trust the brand(s) of drives you use. We primarily use HP servers and HP storage and have had very few disk failures, so I'm happy with RAID5+hotspare or even just RAID5 on less critical systems.

In theory, RAID6 saves you from a second drive failure while a first failed drive is being rebuilt, but you trade that off against the increased computations needed to generate 2 different parity stripes. We haven't used 6, so I've never looked at any specs on just how fast a RAID6 array can be rebuilt vs. RAID5, but I assume 6 will take longer since it has to do 2 parity calculations, not just one.

If I were going to move away from RAID5, I'd probably go with 10 (or 01) to get away from parity calculations altogether. With 6 drives, you could do that, although you net only half the capacity.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.