Before you buy drives, it helps to know how much space you will actually be able to use. Pick the number of bays, the drive size and the RAID type to see usable capacity, how much goes to parity or mirroring, and how many drive failures the array can survive.
Assumes every drive is the same size. Mixed sizes change SHR results in particular.
- Raw capacity–
- Parity or mirror overhead–
- Storage efficiency–
- Shown by the OS (TiB)–
Drive makers count 1 TB as 1,000,000,000,000 bytes, while most operating systems count in TiB (1,099,511,627,776 bytes), so the OS will show about 9% less than the TB figure. Filesystem metadata takes a little more on top.
RAID is not a backup.
The formulas
With n drives of equal size:
- JBOD / RAID 0: n times the drive size. No redundancy; one failed drive can take the data with it.
- RAID 1: the size of one drive, however many drives are in the mirror. Survives all but one drive failing.
- RAID 5, SHR-1 and RAIDZ1: (n – 1) times the drive size. Needs at least 3 drives and survives one failure. With equal drives, SHR-1 gives the same capacity as RAID 5 (and with two drives it acts as a mirror).
- RAID 6, SHR-2 and RAIDZ2: (n – 2) times the drive size. Needs at least 4 drives and survives any two failures.
- RAID 10: n / 2 times the drive size. Needs an even number of drives, 4 or more. Survives one failure for certain, and more if each failed drive sits in a different mirror pair.
ZFS reserves some extra space for its own housekeeping, and RAIDZ padding can cost a little more depending on the pool layout, so treat the RAIDZ figures as a ceiling. Rebuilds on large drives can take a day or more, which is why many people choose two-drive protection (RAID 6, SHR-2 or RAIDZ2) once arrays reach 6 or more large drives.
Related guides
- How to choose the right RAID level for a home NAS
- Best NAS hard drives: WD Red vs Seagate IronWolf vs Toshiba N300
- Best 4-bay NAS enclosures
- Best home server backup software, because RAID is not a backup
Results are estimates for planning. Your NAS operating system, filesystem and pool layout decide the exact figure.