Six 4 TB disks, every way round
Twenty-four terabytes of disk, and what you get to keep depends entirely on the level. This is the trade in one view: capacity against how many failures the array survives.
| Level | Usable | Reported | Lost | Disks that may fail |
|---|---|---|---|---|
| RAID 0 — striping | 24 TB | 21.83 TiB | 0 TB (100% kept) | 0 |
| RAID 1 — mirroring | 4 TB | 3.64 TiB | 20 TB (17% kept) | 5 |
| RAID 5 — single parity | 20 TB | 18.19 TiB | 4 TB (83% kept) | 1 |
| RAID 6 — dual parity | 16 TB | 14.55 TiB | 8 TB (67% kept) | 2 |
| RAID 10 — striped mirrors | 12 TB | 10.91 TiB | 12 TB (50% kept) | 1 |
| JBOD — concatenation | 24 TB | 21.83 TiB | 0 TB (100% kept) | 0 |
Why RAID 5 gets riskier as the array grows
Parity costs a fixed number of disks, so a bigger array wastes a smaller share of itself. That makes RAID 5 look better and better as you add disks — a four-disk array keeps 75% of its space, a sixteen-disk array keeps 94%.
The number that does not improve is the one in the last column. RAID 5 survives one failure whether it has four disks or sixteen, and while it is rebuilding onto a replacement, it has no redundancy at all. A second disk failing during that window takes the array. The more disks there are, the more likely a second failure is, and the longer the rebuild takes. RAID 6 costs one more disk and survives that case.
| Disks | RAID 5 kept | May fail | RAID 6 kept | May fail |
|---|---|---|---|---|
| 4 | 75% | 1 | 50% | 2 |
| 6 | 83% | 1 | 67% | 2 |
| 8 | 88% | 1 | 75% | 2 |
| 12 | 92% | 1 | 83% | 2 |
| 16 | 94% | 1 | 88% | 2 |
How the capacity is worked out
Geometry, with n disks all the same size:
RAID 0 n x size nothing is redundant
RAID 1 1 x size every disk holds the same data
RAID 5 (n - 1) x size one disk's worth of parity
RAID 6 (n - 2) x size two disks' worth of parity
RAID 10 (n / 2) x size half the array mirrors the other half
JBOD n x size nothing is redundantRAID 10 needs an even disk count, because it stripes across mirrored pairs. RAID 0 and JBOD give the same capacity and both tolerate nothing, but they fail differently: lose a disk from a stripe set and the whole array goes, lose one from a concatenation and you lose that disk's share.
The failure counts are the guaranteed ones
A six-disk RAID 10 can sometimes survive two failures — but only if they land in different mirrored pairs. If both hit the same pair, the array is gone. This reports 1, because an array should not be designed around which disk happens to fail.
What this does not tell you
- Capacity only. Nothing here is a claim about reliability, rebuild time, rebuild risk or throughput — those depend on the disks, the controller and the workload, and no figure on this page recommends a level.
- It assumes every disk is the same size. A mixed array is normally limited to its smallest member, so enter that.
- No filesystem overhead. This is what the array presents to the operating system; the filesystem then takes its own cut.
- No controller specifics, and no nested levels such as 50 or 60. Some controllers reserve space of their own.
- RAID is not a backup. Redundancy covers a disk failing. It does not cover deletion, overwriting, ransomware, someone walking off with the enclosure, or a fire.
How long will it hold?
For a camera system, the useful question is not terabytes but days. The CCTV storage calculator takes a usable capacity — the 20 TB from a six-disk RAID 5, for instance — and works out how many days of footage it holds for a given set of cameras.
Sources
The capacity arithmetic is geometry and needs no source. The prefix definitions are worth citing because mixing them up is the common error:
Full derivation, worked examples and limits: docs/raid-capacity.md in the site's repository.
Specifying a recorder?
We size the array against the retention the site actually needs, rather than fitting the retention to whatever the recorder shipped with.
Other tools
- Voltage dropHow much voltage a run loses, and how much reaches the device at the end of it.
- Wire sizeThe smallest conductor that still gets the device enough voltage.
- PoE budgetWhat a set of cameras and door controllers asks of the switch feeding them.
- CCTV storageHow much disk a retention period needs, and how long an array will last.
- CCTV bandwidthWhat the cameras ask of the switch, recording and while being watched.
- Conduit fillWhether the cable you are pulling fits the conduit, and how much room is left.
- Resistor colorsWhat the bands mean, and which resistor a supervised zone wants.
- Ohm's lawAny two of volts, amps, ohms and watts give the other two.
- Speaker loadWhether the amplifier covers the taps, with reserve left over.
- IP subnetWhat a prefix really holds, and how to carve one up by system.
- Address planThe commissioning address list, before you are up a ladder.
