Storage Tools
RAID 5 Calculator
Usable capacity and rebuild risk for single-parity arrays
Usable capacity
12 TB
Shown as about 10.91 TiB in Windows/Linux
- Array
- 4 × 4 TB
- Efficiency
- 75.0%
RAID 5 with 4 × 4 TB
| Raw capacity | 16 TB |
|---|---|
| Usable capacity | 12 TB (10.91 TiB) |
| Used for parity or mirroring | 4 TB |
| Storage efficiency | 75.0% |
| Fault tolerance | Survives any 1 disk failure. |
| Hot spares | 0 |
| Total disks required | 4 |
| Read performance | up to ~4× single-disk reads |
| Write performance | up to ~3× single-disk writes, write penalty 4 |
| Minimum disks for RAID 5 | 3 |
Performance figures are approximations for sequential work on healthy disks. Real throughput depends on the controller, the cache, the workload and whether the array is rebuilding.
Disk layout
Capacity given up to redundancy, one block per disk. Parity is spread across all disks in a real array.
- Data
- Data
- Data
- Parity
- D
- Data
- P
- Parity
- M
- Mirror
- S
- Hot spare
What to watch for
Single parity on 4 TB disks
Rebuilding one 4 TB disk reads every other disk in the array from end to end, and the array has no redundancy left until it finishes. A second failure or an unrecoverable read error during that window loses everything. RAID 6 keeps a second parity disk for exactly this.
Needs a GPT partition table
At 12 TB the volume is past the 2 TiB an MBR partition table can address. Use GPT when you partition it, or the usable space will stop at 2 TiB.
Rebuild time, roughly
Replacing one failed 4 TB disk takes about 11 hours at a sustained 100 MB/s. This is an estimate: a rebuild on an array that is still serving work is routinely slower, sometimes by several times.
RAID is not a backup
Redundancy protects against a disk failing. It does nothing about deletion, corruption, ransomware, theft or fire, all of which are written faithfully to every disk at once. Keep a separate copy of anything you would miss.
Recommended file system
XFS or ext4 on Linux, NTFS on Windows
Pick the default for the operating system that will mount it. Choose an intended use above for something more specific.
Compare RAID levels
The same 4 disks of 4 TB across every level they are valid for.
| Level | Usable | Efficiency | Survives |
|---|---|---|---|
| RAID 0 | 16 TB | 100.0% | None |
| RAID 1 | 4 TB | 25.0% | 3 disks |
| RAID 5 Selected | 12 TB | 75.0% | 1 disk |
| RAID 6 | 8 TB | 50.0% | 2 disks |
| RAID 10 | 8 TB | 50.0% | 1 disk |
| RAID 50 | RAID 50 needs at least 6 disks. | ||
| RAID 60 | RAID 60 needs at least 8 disks. | ||
| RAID-Z1 | 12 TB | 75.0% | 1 disk |
| RAID-Z2 | 8 TB | 50.0% | 2 disks |
| RAID-Z3 | RAID-Z3 needs at least 5 disks. | ||
How RAID 5 works
RAID 5 breaks each write into blocks, spreads them across the disks, and stores a parity block calculated from them. The parity is the exclusive-or of the data blocks in that stripe, so any one missing block can be reconstructed from the rest. Crucially the parity rotates: stripe one puts it on the last disk, stripe two on the one before, and so on, which is why no single disk becomes the bottleneck that RAID 4 suffered from.
usable = (n − 1) × size of the smallest disk
One disk's worth of capacity goes to parity no matter how wide the array, which is what makes RAID 5 efficient at scale. The minimum is three disks.
Two worked examples
Four 4 TB disks. (4 − 1) × 4 TB = 12 TB usable, which an operating system reports as 10.91 TiB. Efficiency is 75%, and one disk may fail.
Eight 2 TB disks. (8 − 1) × 2 TB = 14 TB usable, 87.5% efficiency. The same single disk of parity, spread across twice as many disks. Note that the fault tolerance has not improved: still exactly one disk, now across a wider array where a failure is more likely.
The write penalty
Changing a single block means reading the old data and the old parity, computing the new parity, then writing both back: four operations for one logical write. That is the write penalty of 4, and it is why RAID 5 suits read-heavy work such as file shares and archives far better than databases or busy virtual machines. A controller with battery-backed write cache hides much of it, until the cache fills.
When to use it, and when not to
RAID 5 is a reasonable choice on disks up to about 4 TB, for data you can restore from elsewhere, where read performance matters more than write performance and capacity matters more than both.
The argument against it on large disks is specific rather than vague. Rebuilding onto a replacement disk means reading every sector of every surviving disk. On 8 TB disks that is many hours, often more than a day on a busy array, and for all of it there is no redundancy left. Two things can end it: a second disk failing, which is more likely than usual because the rebuild is hammering disks of the same age and batch; or a single unrecoverable read error on any surviving disk, which stops the rebuild dead. Published drive specifications put that error rate at roughly one sector in every 10^14 to 10^15 bits read, and a full-array rebuild reads enough to make it a real possibility rather than a theoretical one.
If any of that describes your array, RAID 6 keeps a second parity disk so a rebuild survives one more failure, and RAID-Z2 does the same on ZFS while also detecting corruption the disk does not report.