Sub topic 12
RAID 10: Striped Mirrors
This chapter assumes you know what striping, mirroring, and parity are, and that you have seen RAID 0 and RAID 1 described. You should also be comfortable with drive capacity in GB and TB. Here you will learn how RAID 10 combines those two levels, how much capacity it gives you, which failures it survives, and how to separate it from RAID 5 and RAID 6 on the exam.
What RAID 10 is
RAID 10 (also written RAID 1+0) is a stripe of mirrors. The controller first pairs drives into mirrors, as in RAID 1. It then stripes data across those mirrored pairs, as in RAID 0.
- Mirroring gives each block of data a second copy on another drive.
- Striping splits the data stream into chunks and spreads them across the pairs, so reads and writes use several drives at once.
You get the speed of striping and the redundancy of mirroring. The cost is capacity. Half of the raw space holds copies.
Other names you may see are "RAID 1+0" and "stripe of mirrors." The exam usually writes "RAID 10" and asks for the minimum number of drives, which is four.
How data is laid out
Take four drives, A, B, C, and D. Drives A and B form mirror pair 1. Drives C and D form mirror pair 2. The controller stripes chunks across the two pairs.
Every chunk exists on exactly two drives. Losing drive A is harmless because drive B holds the same chunks. Losing both A and B destroys chunks 1 and 3, and the whole array fails.
Requirements and capacity
RAID 10 needs at least four drives, and the drive count must be even. Drives should be the same size. If they are not, each mirror pair is limited by its smaller drive.
The usable capacity formula is:
usable = (drives / 2) x drive size| Drives | Drive size | Raw capacity | Usable capacity |
|---|---|---|---|
| 4 | 2 TB | 8 TB | 4 TB |
| 6 | 2 TB | 12 TB | 6 TB |
| 8 | 4 TB | 32 TB | 16 TB |
Usable capacity is always 50 percent of raw capacity, however many drives you add. Compare that with RAID 5, where efficiency improves as you add drives.
You can check the numbers with the capacity function from the earlier chapter on capacity math. This version covers RAID 10 only and adds a check on the drive count.
def raid10_usable(drives, size_tb):
"""Return usable capacity in TB for RAID 10."""
if drives < 4 or drives % 2 != 0:
raise ValueError("RAID 10 needs an even number of drives, at least 4")
return (drives // 2) * size_tb
print(raid10_usable(4, 2)) # 4
print(raid10_usable(6, 2)) # 6
print(raid10_usable(8, 4)) # 16Fault tolerance: it depends on which drives fail
RAID 10 always survives one drive failure. It may survive more, but only if the failed drives are in different mirror pairs.
With four drives (pairs A+B and C+D):
| Failed drives | Array state |
|---|---|
| A | Survives (degraded) |
| A and C | Survives, one drive lost from each pair |
| A and D | Survives, one drive lost from each pair |
| A and B | Fails, pair 1 has no copy left |
| C and D | Fails, pair 2 has no copy left |
In a four-drive array, there are six ways to lose two drives. Four of them leave the array alive, and two of them destroy it. With more pairs, the odds of a second failure landing in a different pair get better.
The best case is one failure per pair, so an array of n drives can survive up to n/2 failures. The guaranteed case is only one failure. For the exam, the safe statement is "one drive guaranteed, more if they are in different mirrors."
Performance
RAID 10 is fast for both reads and writes.
- Reads are fast because the controller can read from both drives in a mirror and from every pair at once.
- Writes are fast because each chunk is written to two drives, but no parity has to be computed. This is the main advantage over RAID 5 and RAID 6.
- Rebuilds are quick and light. When a drive fails, the controller copies data from the surviving partner to the replacement. It does not have to read every other drive in the array, as RAID 5 does.
RAID 5 and RAID 6 pay a write penalty because each write updates parity. RAID 10 avoids that penalty, which is why it is common for databases, virtual machine hosts, and other write-heavy servers.
Comparing RAID 10 with the other levels
| Level | Minimum drives | Guaranteed fault tolerance | Usable capacity | Write speed |
|---|---|---|---|---|
| RAID 0 | 2 | None | All drives | Fastest |
| RAID 1 | 2 | One drive | One drive's worth | Good |
| RAID 5 | 3 | One drive | n - 1 drives | Slower (parity) |
| RAID 6 | 4 | Two drives | n - 2 drives | Slowest (double parity) |
| RAID 10 | 4 | One drive (more if in different pairs) | n / 2 drives | Fast |
Choose RAID 10 when performance and fast recovery matter more than getting the most space per dollar. Choose RAID 5 or RAID 6 when capacity efficiency matters more, such as in file storage or archives where reads dominate.
RAID 10 versus RAID 0+1
RAID 0+1 sounds similar but is built in the opposite order. It stripes first, then mirrors the two stripe sets.
- RAID 10 (1+0) stripes across mirrored pairs.
- RAID 0+1 mirrors two striped groups.
Both use four drives at minimum and give 50 percent usable capacity. They differ when a drive fails. In RAID 0+1, one failed drive takes down its whole stripe set, so the array runs on the other set with no redundancy left. A single further failure in the second set kills the array. RAID 10 loses only one drive's redundancy and keeps the rest of the protection. For this reason, RAID 10 is the more common and more resilient design.
Hot spares and rebuilds
A hot spare is an idle drive that the controller brings into the array automatically when a drive fails. RAID 10 works well with hot spares. The rebuild only copies the failed drive's mirror partner onto the spare, so the window of risk is short.
During a rebuild, the surviving partner is the only copy of that pair's data. If it fails before the rebuild finishes, the array is lost. Fast rebuilds reduce this risk, but they do not remove it.
Common mistakes
- Using an odd number of drives. Mirrors need pairs. Five drives cannot make a RAID 10 array.
- Assuming two failures are always survivable. They are survivable only if the drives are in different pairs.
- Calculating capacity as n - 1. That is the RAID 5 formula. RAID 10 uses n / 2.
- Treating RAID 10 as a backup. It protects against drive failure only. Deleted files, malware, and corruption are copied to both drives of the mirror at once.
- Confusing RAID 10 with RAID 1 plus RAID 0 on separate volumes. RAID 10 is one array with one logical volume.
Quick recognition for exam scenarios
- "Needs high performance and redundancy" with four or more drives: RAID 10.
- "Database server with heavy writes that must survive a drive failure": RAID 10.
- "Mirrored sets that are then striped": RAID 10.
- "Four 1 TB drives, how much usable space?": 2 TB.
- "Maximum space with one-drive tolerance": RAID 5, not RAID 10.
Exercise
A server has six 4 TB drives configured as RAID 10. (a) What is the usable capacity? (b) What is the largest number of drives that can fail without data loss, and what condition must hold? (c) Is the guaranteed number of survivable failures higher or lower than for RAID 6?
Show answer
(a) Six drives form three mirrored pairs, so usable capacity is (6 / 2) x 4 TB = 12 TB. (b) Up to three drives can fail, but only if each failed drive is in a different mirror pair. If both drives of any one pair fail, the array fails. (c) Lower. RAID 10 guarantees survival of only one failure, while RAID 6 guarantees survival of any two.
Exercise
A technician builds a RAID 10 array with five identical drives. Why can't this work, and what are two valid options for using those five drives?
Show answer
RAID 10 needs an even number of drives because every drive must have a mirror partner. Valid options are to build RAID 10 from four drives and keep the fifth as a hot spare, or to use all five drives in RAID 5 (or RAID 6) for more usable capacity.