Storage Tools
RAID 6 Calculator
Double-parity capacity for arrays of large disks
Usable capacity
32 TB
Shown as about 29.1 TiB in Windows/Linux
- Array
- 6 × 8 TB
- Efficiency
- 66.7%
RAID 6 with 6 × 8 TB
| Raw capacity | 48 TB |
|---|---|
| Usable capacity | 32 TB (29.1 TiB) |
| Used for parity or mirroring | 16 TB |
| Storage efficiency | 66.7% |
| Fault tolerance | Survives any 2 disk failures. |
| Hot spares | 0 |
| Total disks required | 6 |
| Read performance | up to ~6× single-disk reads |
| Write performance | up to ~4× single-disk writes, write penalty 6 |
| Minimum disks for RAID 6 | 4 |
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
- Data
- Parity
- Parity
- D
- Data
- P
- Parity
- M
- Mirror
- S
- Hot spare
What to watch for
Needs a GPT partition table
At 32 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 8 TB disk takes about 22 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 6 disks of 8 TB across every level they are valid for.
| Level | Usable | Efficiency | Survives |
|---|---|---|---|
| RAID 0 | 48 TB | 100.0% | None |
| RAID 1 | 8 TB | 16.7% | 5 disks |
| RAID 5 | 40 TB | 83.3% | 1 disk |
| RAID 6 Selected | 32 TB | 66.7% | 2 disks |
| RAID 10 | 24 TB | 50.0% | 1 disk |
| RAID 50 | 32 TB | 66.7% | 1 disk |
| RAID 60 | RAID 60 needs at least 8 disks. | ||
| RAID-Z1 | 40 TB | 83.3% | 1 disk |
| RAID-Z2 | 32 TB | 66.7% | 2 disks |
| RAID-Z3 | 24 TB | 50.0% | 3 disks |
How RAID 6 works
RAID 6 stores two independent parity calculations per stripe rather than one. The first is the same exclusive-or RAID 5 uses; the second is computed differently, usually with Reed-Solomon coding, so the two can be solved together to recover any two missing blocks. Both rotate across the disks the way RAID 5's single parity does.
usable = (n − 2) × size of the smallest disk
Two disks' worth of capacity goes to parity whatever the array size. The minimum is four disks, though four is rarely the right number: see below.
Two worked examples
Six 8 TB disks. (6 − 2) × 8 TB = 32 TB usable, reported as 29.10 TiB. Efficiency is 66.7%, and any two disks may fail together.
Twelve 12 TB disks. (12 − 2) × 12 TB = 120 TB usable, 83.3% efficiency. The fixed two-disk cost is now a sixth of what it was proportionally, while the protection is unchanged. This is the shape of array RAID 6 is designed for.
Why four disks is rarely the answer
At four disks RAID 6 gives up half the raw capacity, which is exactly what RAID 10 costs. RAID 10 writes several times faster, because it has no parity to recompute, and rebuilds by copying one disk rather than reading three. The only thing RAID 6 buys at that width is a guarantee that any two failures survive, where RAID 10 survives two only if they land in different mirror pairs. Unless that specific guarantee is what you need, RAID 10 is usually the better four-disk array. RAID 6 starts to pay from six disks and is clearly right from eight.
The cost of the second parity
The write penalty is 6: a small write reads the data and both parity blocks, recomputes both, and writes all three back. The second parity calculation is also more arithmetic than an exclusive-or, which older controllers feel. Sequential writes of whole stripes avoid most of this, so RAID 6 performs far better on large files than on small random updates.
In exchange, the rebuild window that makes RAID 5 risky on large disks stops being frightening. A second failure during a rebuild is survivable, and so is an unrecoverable read error on a surviving disk, which is the quieter and more common of the two.