InfraBench / compute-storage / raid-zfs-planner

RAID & ZFS Capacity, IOPS & Rebuild Planner

Compare RAID 0/1/5/6/10 and ZFS RAIDZ1/2/3/Mirrors side-by-side — usable TiB vs TB, write penalty, IOPS, throughput & rebuild hours

Presets:
Usable Capacity
-
-
Storage Efficiency
-
-
Est. Random IOPS (R / W)
-
-
Est. 1-Drive Rebuild
-
-
Usable Parity / Mirror ZFS Slop + Metadata
Side-by-Side RAID & ZFS Comparison
LevelUsable CapacityEfficiencyFault ToleranceRandom IOPS (R/W)Seq Throughput (R/W)Est. Rebuild

Technical Guide: Hardware RAID vs. OpenZFS Capacity & Performance

Storage drives are marketed in decimal terabytes (1 TB = 10^12 bytes), whereas Linux, BSD, and OpenZFS report usable pool capacity in binary tebibytes (1 TiB = 2^40 bytes ≈ 1.0995 TB). Before any parity or filesystem overhead is deducted, a raw 8 TB disk already provides only 7.28 TiB of addressable space.

Key Planning Rules for Production & Homelab Pools

  • ZFS Slop Space & 80% Fill Rule: OpenZFS reserves roughly 3.125% (1/32, capped by default at 128 GiB) as slop space so copy-on-write transactions never deadlock on a full pool. Additionally, keeping ZFS pools below 80% utilization avoids severe fragmentation and write amplification.
  • Why RAIDZ IOPS Differ from Mirrors: A single ZFS RAIDZ1/2/3 vdev delivers roughly the random write IOPS of a single drive (regardless of vdev width), while streaming sequential throughput scales with the number of data drives. For VM storage, databases, or Proxmox/Kubernetes PVCs, prefer ZFS Striped Mirrors or RAID 10.
  • Avoid Single-Parity on Large HDDs: Rebuilding a failed 8 TB–20 TB spinning disk can take 15–40+ hours under load, creating a dangerous window for a second drive failure or Unrecoverable Read Error (URE). Use RAID 6 or ZFS RAIDZ2 for large HDD arrays.

Frequently Asked Questions

Why is usable TiB ~9% smaller than the drive label TB?

Drive manufacturers measure capacity in base-10 (1 TB = 1,000^4 bytes), while operating systems and ZFS measure in base-2 (1 TiB = 1,024^4 bytes). The ratio is 10^12 / 2^40 ≈ 0.9095, so an 8 TB disk shows 7.28 TiB raw before parity.

When should I choose ZFS Striped Mirrors over RAIDZ2?

Choose ZFS Striped Mirrors when random IOPS, low latency, fast resilver times, and easy two-drive expansion matter most (such as VM hosts, Docker volumes, or PostgreSQL). Choose RAIDZ2 when maximizing usable capacity per dollar for bulk media, backups, or large sequential datasets.