RAID 5 vs RAID 10: which to use on a server
Both protect a server against a failed drive. They differ in usable capacity, write speed and how exposed you are while a replacement drive rebuilds.
- Track
- Storage and RAID
- Module
- 3 of 3
- Level
- Practitioner
- Time
- About 14 minutes
Before you start
You will be able to
- Calculate usable capacity for RAID 5, RAID 6 and RAID 10 from a drive count and size.
- Estimate random-write speed and the shortest rebuild time for each layout.
- Choose a RAID level for a workload and say what risk the choice leaves.
- Explain why RAID is not a backup.
Which RAID level should your server use?
The short answer
Use RAID 10 for databases, virtual machines and other write-heavy work: it writes faster, usually rebuilds faster and is less exposed while it does. Use RAID 5 only for read-mostly data on SSDs or small drives, where capacity matters most; on large hard drives choose RAID 6, because a long RAID 5 rebuild leaves the array with no protection.
By the KComputers Team
Published
In plain words
- What this is
- RAID joins several drives so the server keeps working when one of them fails.
- Who needs it
- Anyone buying a server that will keep business data on more than one drive.
- If you get it wrong
- The wrong layout makes the server slow under load, or loses everything if a second drive fails during a repair.
How each layout protects your data.
Both spread data across several drives. RAID 5 adds parity it can rebuild from; RAID 10 keeps a second copy of every block.
- RAID 5: striping with parity
- Data and parity are striped across three or more drives, with the parity rotating between them. If a drive fails, its contents are recalculated from the others. Usable capacity is every drive but one.
- RAID 10: striped mirrors
- Drives are paired into mirrors and data is striped across the pairs. If a drive fails, its partner holds a full copy. Usable capacity is half the drives, and it needs an even number, at least four.
- RAID 6: double parity
- RAID 5 with a second parity block, so it survives two failed drives at once. It needs at least four drives and gives up two drives' capacity.
RAID 10 trades capacity for speed and safety.
Every small random write costs RAID 5 four disk operations, RAID 6 six and RAID 10 two.
| RAID 5 | RAID 6 | RAID 10 | |
|---|---|---|---|
| Minimum drives | 3 | 4 | 4, in pairs |
| Usable capacity | All drives but one | All drives but two | Half the drives |
| Failed drives it survives | 1 | 2 | 1, or more if each is in a different pair |
| Disk operations per small write | 4 | 6 | 2 |
| Random write speed | Slower | Slowest | Fastest |
| Rebuild after a failure | Reads from every remaining drive | Reads from every remaining drive | Copies one partner drive |
| Best for | Read-mostly data on SSDs | Large hard-drive arrays and backups | Databases, VMs, mail and logs |
To change one block, RAID 5 reads the old data and the old parity, then writes the new data and the new parity. RAID 10 writes the block to both drives of a mirror and is done. Reads are fast on both, and RAID 10 can serve a read from either copy.
A RAID controller with a flash-backed write cache hides part of the parity penalty by absorbing bursts, but not under the sustained writes of databases, virtual machines and mail servers. That is why RAID 10 is the usual choice for them.
Rebuilds are where RAID 5 is exposed.
After a drive fails, the array runs degraded until the replacement is rebuilt. How long that takes, and what can go wrong meanwhile, is the real difference.
A RAID 5 rebuild reads every remaining drive end to end to recalculate the missing data. Until it finishes there is no protection left: a second drive failure, or a sector that cannot be read, can lose data. Drive datasheets quote an unrecoverable read error rate, and a rebuild that reads tens of terabytes gives that rate many chances.
The bigger the drives, the longer the window. A large hard drive can take a day or more to rebuild while the server carries its normal load. That is why RAID 6 has largely replaced RAID 5 on large hard-drive arrays: it can lose another drive mid-rebuild and still recover.
RAID 10 rebuilds by copying one drive, the failed drive's mirror partner, so the window is usually shorter and the other drives carry no rebuild load. A hot spare shortens the exposure further, because the controller starts rebuilding the moment a drive fails instead of waiting for a replacement.
SSDs change the picture: they rebuild far faster and rarely return unreadable sectors, so RAID 5 on SSDs is reasonable for read-heavy data. Write-heavy SSD arrays still belong on RAID 10, for its write speed. Either way the drives absorb more writes than the server sends: RAID 10 writes every block twice and RAID 5 up to twice, the data and its parity, so choose drives with the endurance for it. SSD endurance and DWPD shows the arithmetic. Compare SSDs and hard drives by endurance rating, and drive interfaces in SAS vs SATA vs NVMe.
Worked example: eight 8 TB hard drives.
An example with assumed inputs, not a quotation or a customer case. We assume 100 random IOPS per drive and a rebuild rate of 100 MB/s; real figures depend on the drives, the controller and the load.
| RAID 5 | RAID 6 | RAID 10 | |
|---|---|---|---|
| Usable capacity | 7 × 8 = 56 TB | 6 × 8 = 48 TB | 4 × 8 = 32 TB |
| Random write IOPS | 800 ÷ 4 = 200 | 800 ÷ 6 ≈ 133 | 800 ÷ 2 = 400 |
| Read to rebuild one drive | 56 TB from 7 drives | Up to 56 TB from 7 drives | 8 TB from 1 drive |
| Rebuild time under load | 22 hours at best, often longer | 22 hours at best, often longer | Usually close to 22 hours |
| Another drive fails mid-rebuild | Data lost | Survives | Survives, unless it is the partner |
Eight drives at 100 IOPS give 800 random IOPS before the write penalty. At 100 MB/s, rebuilding one 8 TB drive takes 8,000,000 MB ÷ 100 MB/s = 80,000 seconds, about 22 hours: the floor for every layout, set by how fast the new drive can be written.
RAID 5 and RAID 6 rarely reach that floor on a working server, because each rebuilt block needs reads from every remaining drive and a parity calculation, alongside the normal load. RAID 10 copies one partner drive and usually finishes closest to it. For the whole rebuild RAID 5 has no protection left, while in RAID 10 only a failure of the partner drive, one of the seven remaining, would lose data.
Choose by workload, then back it up.
Match the layout to how the data is written, and remember that RAID protects against a failed drive, not against everything else.
| Use | Why | |
|---|---|---|
| Databases, virtual machines, mail and logs | RAID 10 | Fast random writes and shorter, safer rebuilds |
| File shares and archives on large hard drives | RAID 6 | Capacity with two-drive protection |
| Read-mostly data on SSDs | RAID 5 | Capacity, with quick SSD rebuilds |
| Backup targets and video surveillance storage | RAID 6 | Large drives and mostly sequential writes |
| Operating system or hypervisor boot drives | RAID 1 | A simple mirror of two drives |
RAID is not a backup. It does not protect against deletion, ransomware, file corruption or a fire, so keep separate backups with at least one copy off site. Nor does it keep the server running when a power supply or the controller fails: server redundancy explained covers the rest of the chain.
The controller matters too. A hardware RAID controller with a flash-backed cache suits RAID 5, 6 and 10 under Windows Server, VMware and most Linux servers. ZFS and Ceph provide their own redundancy and want the drives passed straight through, so never stack them on a hardware RAID volume; our VMware and Proxmox guide covers that choice. Find RAID controllers and HBAs and drives for the servers you run, or plan database servers and surveillance storage with us.
Engineer's notes.
Before you order: check, and avoid these mistakes.
Decision checklist
Common mistakes
-
Using RAID 5 on large hard drives.
- Why it hurts
- A rebuild reads every remaining drive end to end for a day or more with no protection left; a second failure or an unreadable sector can lose the array.
- Do this instead
- Use RAID 6, or RAID 10 for write-heavy work.
-
Treating RAID as a backup.
- Why it hurts
- RAID survives a failed drive, not deletion, ransomware, corruption or fire.
- Do this instead
- Keep separate backups with one copy off site.
-
Putting a write-heavy database on RAID 5.
- Why it hurts
- Every small write costs four disk operations, against two on RAID 10.
- Do this instead
- Use RAID 10 for databases, virtual machines and mail.
-
Building ZFS or Ceph on top of a hardware RAID volume.
- Why it hurts
- They keep their own redundancy and need to see each drive.
- Do this instead
- Pass the drives straight through.
Check what you learned.
Check your understanding
Eight 4 TB drives are set up as RAID 6. What is the usable capacity?
Show the answer to question 1
RAID 6 gives up two drives' capacity: (8 − 2) × 4 TB = 24 TB.
Twelve drives at 150 random IOPS each are set up as RAID 10. How many random write IOPS can they sustain?
Show the answer to question 2
12 × 150 = 1,800 IOPS before the write penalty. RAID 10 turns each write into two disk operations: 1,800 ÷ 2 = 900 write IOPS.
Why does RAID 10 sometimes survive two failed drives and sometimes not?
Show the answer to question 3
It survives when the two drives are in different mirror pairs. If both drives of one pair fail, the only copy of that data is gone.
In the worked example, why is 22 hours the shortest rebuild for every layout?
Show the answer to question 4
It is set by how fast the new drive can be written: 8 TB at 100 MB/s is 80,000 seconds, about 22 hours. RAID 5 and RAID 6 also read every remaining drive, so they are usually slower.
Key takeaways
- RAID 10 for databases, virtual machines and mail: faster writes, shorter and safer rebuilds, half the capacity.
- RAID 6 for large hard-drive arrays; RAID 5 only for read-mostly data on SSDs or small drives.
- A rebuild is the exposed window: the longer it runs, the more RAID 5 risks.
- RAID protects against a failed drive, never against everything else: keep backups.
Sources and standards
- Wikipedia (readable summary), Standard RAID levels, read . The layouts of RAID 5, RAID 6 and RAID 10, parity, the read-modify-write small-write penalty and how unrecoverable read errors fault a drive. The IOPS and the 100 MB/s rebuild rate in the worked example are assumed inputs, stated there.
Questions about RAID 5 and RAID 10.
Is RAID 10 the same as RAID 1+0?
Yes. RAID 10 and RAID 1+0 both mean data striped across mirrored pairs. RAID 0+1, a mirror of two stripes, is different and less resilient, which is why most controllers offer RAID 10 instead.
Can RAID 10 survive two failed drives?
Yes, if they are in different mirror pairs. If both drives of one pair fail, the array is lost, so replace a failed drive promptly or keep a hot spare.
Is RAID 5 safe on SSDs?
Safer than on large hard drives, because SSD rebuilds are short. It still survives only one failure at a time, so use RAID 6 or RAID 10 for large or critical SSD arrays.
Can we change RAID 5 to RAID 10 later?
Some controllers can migrate between RAID levels online, but RAID 10 needs more drives for the same capacity and the migration takes a long time. The dependable route is a verified backup, a new array and a restore.
How many drives does RAID 10 need?
At least four, always in pairs. Usable capacity is half the total, so eight 8 TB drives give 32 TB.
What to tell us
- What the server will hold (database, virtual machines, files, video, backups)
- How much data there is today and how fast it grows
- Whether the work is mostly reading or writing
- How long the business can be without the data if a repair goes wrong
- Where the backups are kept now
Planning a server's storage?
Tell us the workload and the capacity. We size the drives, controller and RAID layout, then send a formal quotation.