Sub topic 12
RAID 10: striped mirrors
This chapter assumes you know what striping and mirroring are (RAID 0 and RAID 1) and that you can read basic drive-capacity figures. RAID 10 combines both techniques, and it is a common answer on the exam when a scenario needs speed and redundancy together.
How RAID 10 works
RAID 10 (also written RAID 1+0) is a stripe of mirrors. The controller first pairs drives into mirrors. Each pair holds identical copies of its data. It then stripes data across those pairs.
Data is split into blocks. Each block goes to one mirrored pair, and both drives in that pair store it. Reads and writes are spread across several pairs, which gives RAID 0-style speed. The mirror in each pair gives RAID 1-style redundancy.
Key facts for the exam
| Property | RAID 10 |
|---|---|
| Minimum drives | 4 |
| Drive count | Must be even |
| Usable capacity | Half of the raw capacity |
| Fault tolerance | One drive per mirrored pair |
| Performance | Fast reads and fast writes |
| Rebuild | Copies from the surviving partner, with no parity math |
Fault tolerance
RAID 10 can lose one drive from each mirrored pair and keep running. In a four-drive array, losing drive 1 and drive 3 is survivable. Losing drive 1 and drive 2 is not, because that pair held the only copies of its blocks.
So the guaranteed tolerance is one drive. Surviving more failures depends on which drives fail.
Capacity
Usable capacity is the number of drives divided by two, multiplied by the drive size. Four 2 TB drives give 4 TB usable, and the other 4 TB is used by the mirror copies. This matches the usable_capacity(10, 4, 2) result of 4 in the earlier capacity function.
RAID 10 compared with RAID 5
RAID 5 is cheaper per usable terabyte, because it gives up only one drive. However, every write also updates parity, and a rebuild must read every surviving drive. RAID 10 writes faster and rebuilds more simply, but it gives up half of the raw capacity.
Choose RAID 10 for workloads with heavy writes and a need for uptime, such as database servers. Choose RAID 5 when capacity matters more and the workload is mostly reads.
Worked example
A small business needs a file server with fast writes, tolerance of a single drive failure, and six 4 TB drives available.
- Six drives form three mirrored pairs.
- Usable capacity is (6 / 2) x 4 TB = 12 TB.
- The array survives one failure in each pair, so up to three drives if each is in a different pair.
- A hot spare, if one is installed, can start copying from the failed drive's partner right away.
Exercise
A technician has eight 1 TB drives and builds a RAID 10 array. How much usable capacity does the array have, and what happens if both drives of one mirrored pair fail?
Show answer
Usable capacity is (8 / 2) x 1 TB = 4 TB. If both drives of the same mirrored pair fail, the data held by that pair is lost and the whole array fails, even though the other six drives are healthy.
Exercise
Why is RAID 10 often preferred over RAID 5 for a write-heavy database server, and what is the cost?
Show answer
RAID 10 does not calculate or write parity, so writes are faster and rebuilds are simpler. The cost is that only half of the raw capacity is usable.