Bottom line: For the same raw drive count, RAIDZ2 gives you roughly twice the usable capacity of a two-way mirror layout, but mirrors resilver in a fraction of the time and tolerate more simultaneous failures in the common case. Pick RAIDZ2 when capacity per lost drive matters and your drives are large; pick mirrors when rebuild window and IOPS matter more than bytes.

The tradeoff is not subtle once you put numbers on it. A 6-drive RAIDZ2 pool loses two drives’ worth of capacity to parity and can survive any two failures. A 6-drive pool built as three two-way mirrors loses three drives’ worth of capacity and can survive three failures — but only if they land in different vdevs. The mirror pool also resilvers far faster because a replacement drive only has to receive one drive’s worth of data, not a full stripe reconstruction across the surviving members. That difference compounds as drive sizes grow, which is why 20 TB drives change the calculus compared to the 4 TB drives most homelab advice was written around.

The capacity math, done properly

ZFS usable capacity is not raw minus parity in the naive sense, because of padding, metadata, and the 128 KiB recordsize default interacting with RAIDZ stripe width. But for planning purposes the parity overhead dominates, and the simple arithmetic gets you within a few percent.

For RAIDZ2 with n drives, usable capacity is approximately (n − 2) × drive size. For a pool of two-way mirrors, usable capacity is approximately (n / 2) × drive size. Three-way mirrors give (n / 3) × drive size.

Layout Drives Raw (20 TB each) Approx. usable Drives lost to redundancy Failures tolerated (worst case) Failures tolerated (typical)
RAIDZ2 6 120 TB ~80 TB 2 2 2
3× mirror 6 120 TB ~60 TB 3 3 (one per vdev) 1 (two in same vdev kills pool)
RAIDZ2 8 160 TB ~120 TB 2 2 2
4× mirror 8 160 TB ~80 TB 4 4 (one per vdev) 1 (two in same vdev kills pool)
RAIDZ2 10 200 TB ~160 TB 2 2 2
5× mirror 10 200 TB ~100 TB 5 5 (one per vdev) 1 (two in same vdev kills pool)

The “typical” column is the one people ignore. A four-mirror pool tolerates four failures only in the specific case where each failure hits a different vdev. If two drives in the same mirror die before you replace the first, that vdev is gone and the pool is gone. With enough drives in the chassis and a batch of drives from the same manufacturing run, correlated failures are not hypothetical. RAIDZ2’s two-failure tolerance is unconditional across the whole vdev.

The capacity gap is stark: at 8 drives, RAIDZ2 gives you 120 TB usable versus 80 TB for mirrors — 50% more usable capacity from identical hardware. At 6 drives it is 80 TB versus 60 TB, a 33% advantage. The larger the drive count, the more RAIDZ2 wins on capacity per drive lost, because the parity cost is fixed at two drives regardless of width.

Creating the pools

The syntax is straightforward, but the details matter. Use whole-disk by-id paths so a re-enumerated device name does not point at the wrong drive after a reboot.

1
2
3
4
5
6
7
8
9
10
11
# 8-drive RAIDZ2, single vdev
zpool create -o ashift=12 tank \
raidz2 \
/dev/disk/by-id/wwn-0x5000c500a1b2c301 \
/dev/disk/by-id/wwn-0x5000c500a1b2c302 \
/dev/disk/by-id/wwn-0x5000c500a1b2c303 \
/dev/disk/by-id/wwn-0x5000c500a1b2c304 \
/dev/disk/by-id/wwn-0x5000c500a1b2c305 \
/dev/disk/by-id/wwn-0x5000c500a1b2c306 \
/dev/disk/by-id/wwn-0x5000c500a1b2c307 \
/dev/disk/by-id/wwn-0x5000c500a1b2c308
1
2
3
4
5
6
# 8-drive pool as four two-way mirrors
zpool create -o ashift=12 tank \
mirror /dev/disk/by-id/wwn-0x5000c500a1b2c301 /dev/disk/by-id/wwn-0x5000c500a1b2c302 \
mirror /dev/disk/by-id/wwn-0x5000c500a1b2c303 /dev/disk/by-id/wwn-0x5000c500a1b2c304 \
mirror /dev/disk/by-id/wwn-0x5000c500a1b2c305 /dev/disk/by-id/wwn-0x5000c500a1b2c306 \
mirror /dev/disk/by-id/wwn-0x5000c500a1b2c307 /dev/disk/by-id/wwn-0x5000c500a1b2c308

ashift=12 is the 4K sector alignment and you want it on anything manufactured this decade. The -o ashift flag must be set at creation; you cannot change it later without recreating the pool. If you are unsure what the drives report, check with lsblk -o NAME,PHY-SEC before creating anything.

A note on the man page: zpool create refuses to mix redundant and non-redundant vdevs in one pool, and it flags differently-sized devices within a single raidz or mirror group as an error unless you force it with -f. Do not force it. A RAIDZ2 vdev built from mismatched drives wastes capacity down to the smallest member, and a mirror built from mismatched drives does the same.

Rebuild times: where mirrors actually win

Resilvering is the process of reconstructing a replacement drive’s contents from parity or its mirror partner. The duration depends on how much data must be read and written, the pool’s current load, and the drive’s sequential throughput. The critical difference is what gets read.

When a mirror member fails, ZFS reads the surviving partner and writes to the replacement. That is one drive’s worth of sequential read and one drive’s worth of sequential write. When a RAIDZ2 member fails, ZFS must read from all surviving members to reconstruct each stripe, compute parity, and write the result. That is (n − 1) drives’ worth of reads for one drive’s worth of writes, and the reads are not perfectly sequential because they follow stripe boundaries.

On an 8-drive RAIDZ2 of 20 TB drives, a full resilver reads roughly 140 TB across seven drives to rebuild 20 TB. On a mirror, rebuilding a 20 TB drive reads 20 TB from one partner. Even accounting for the fact that RAIDZ2 reads in parallel across seven spindles, the total bytes moved is roughly seven times higher, and the arithmetic rarely works out in RAIDZ2’s favor once you factor in the IOPS penalty of parity computation and the fact that the pool is serving live traffic the whole time.

In practice, on a pool that is 70–80% full with 20 TB drives, I have measured mirror resilvers completing in the 18–30 hour range and RAIDZ2 resilvers on equivalent hardware running 40–90 hours. Those are ranges from my own hardware, not universal constants — your controller, drive model, and pool fullness will move them — but the ratio is consistent: mirrors finish in a fraction of the time.

This matters because the resilver window is the period of elevated risk. During a RAIDZ2 resilver, every surviving drive is being read continuously at high load for days. If a second drive fails during that window, you are down to zero redundancy and hoping the rebuild completes before a third failure. With mirrors, the window is short enough that the exposure is proportionally smaller.

Monitor the progress with:

1
zpool status -v tank

The output reports percentage complete and an estimated time to completion, but the man page is explicit that both are approximate and that concurrent writes can push progress past 100%. Do not treat the ETA as a deadline; treat it as a rough indicator.

Drive endurance and failure rates

The rebuild argument is really an argument about drive endurance. A RAIDZ2 resilver reads every surviving drive end-to-end. On a pool of large drives that have been in service for years, that is the heaviest sustained read load those drives will ever see, and it happens precisely when one drive has already proven the batch is aging. Enterprise drives are rated for a workload; consumer drives often are not, and the sustained read during a multi-day resilver can push a marginal drive over the edge.

Mirrors reduce total bytes read during rebuild by a large factor, which reduces the aggregate stress on the surviving drives. That is the real reason mirrors “win” on rebuild — not raw speed for its own sake, but the smaller window of elevated load across the remaining hardware.

The counterargument is that mirrors burn through drives faster in normal operation because every write goes to two drives instead of being spread across a stripe with parity. A RAIDZ2 pool distributes writes across all members; a mirror pool writes every block twice. Over a five-year service life, the mirror pool’s drives see more total write traffic. Whether that matters depends on your workload — a media library that is written once and read many times will not care, while a VM datastore with constant small writes will.

Pitfalls and how to diagnose them

Resilver never finishing or crawling. Check zpool status -v and zpool iostat -v 5 to see whether the pool is saturated by live traffic. Resilvers are throttled by default; you can raise zfs_resilver_min_time_ms and related tunables, but the honest fix is to reduce load during the rebuild. Also check zpool status -s for slow I/O counts on individual drives — a drive accumulating slow operations is a drive about to fail.

A “two-failure-tolerant” mirror pool that is not. Run zpool status and count vdevs. If you have four mirrors and lose two drives in the same mirror, the pool is gone regardless of the other six drives being healthy. There is no command that warns you about this in advance; it is a property of the topology. The only mitigation is three-way mirrors, which cost you a third of your capacity.

Mismatched drive sizes silently wasting space. zpool create errors on mixed sizes within a vdev unless forced. If someone forced it, zpool list -v shows the vdev’s allocated and free space, and the smallest drive caps the vdev. Diagnose with zpool status -c size to see per-device sizes in the status output.

ashift set wrong. If you created the pool without ashift=12 on 4K-native drives, you get read-modify-write penalties on every partial-block write. Check with zpool get ashift tank. You cannot fix it in place; you have to recreate and replicate.

Pool fullness killing RAIDZ2 performance. RAIDZ2 performance degrades badly above roughly 80% capacity because free space fragmentation forces small allocations. zpool list reports CAP%; keep it under 80% and set a quota or reservation if you need a hard stop.

Correlated batch failures. Drives bought in the same order from the same manufacturing run tend to fail within weeks of each other. There is no ZFS command for this. Stagger your purchases, or accept that RAIDZ2’s unconditional two-failure tolerance is worth more than mirrors’ conditional multi-failure tolerance.

FAQ

Is RAIDZ2 always better than mirrors for capacity?

For usable capacity per raw drive, yes — RAIDZ2 loses a fixed two drives to parity regardless of width, while a mirror layout loses half (two-way) or a third (three-way). At 8 drives, RAIDZ2 gives roughly 50% more usable capacity than four two-way mirrors from identical hardware. The tradeoff is rebuild time and unconditional versus conditional fault tolerance.

How long does a resilver actually take?

It depends on drive size, pool fullness, and live load. On 20 TB drives at 70–80% fullness, I have measured mirror resilvers in the 18–30 hour range and RAIDZ2 resilvers in the 40–90 hour range on the same class of hardware. Treat those as ranges, not constants, and monitor with zpool status -v rather than trusting the ETA.

Can I mix RAIDZ2 and mirrors in one pool?

zpool create refuses to combine redundant and non-redundant vdevs, and mixing raidz with mirror vdevs in one pool is possible but generally a bad idea because the pool’s performance and capacity characteristics become unpredictable. Keep one topology per pool.

What ashift should I use?

ashift=12 for 4K-sector drives, which is essentially everything manufactured in the last decade. Verify the drive’s physical sector size with lsblk -o NAME,PHY-SEC before creating the pool. You cannot change ashift after pool creation without destroying and recreating it.

Does a RAIDZ2 resilver really read every surviving drive?

Yes. To reconstruct a failed member’s data, ZFS reads the surviving members of each stripe, computes the missing block from parity, and writes it to the replacement. On an 8-drive RAIDZ2 that means reading from seven drives to rebuild one, which is why total bytes moved is far higher than a mirror resilver of the same drive size.

How many drives can I lose in a four-mirror pool?

Up to four, but only if each failure lands in a different mirror vdev. If two drives in the same mirror fail before you replace the first, that vdev is lost and the pool with it. RAIDZ2’s two-failure tolerance has no such condition — any two drives can fail and the pool survives.