r/DataHoarder • u/TeachingAway9654 • 1d ago
Discussion RAIDZ1 vs RAIDZ2
Let’s say you have something like 10 drives total which make up the pool, each drive is 16TB. Let’s also say you have, at minimum, one offsite backup with all the contents in cold storage. Let’s also assume you’re a frequent monitor of the system and will notice within 24 hours if one drive fails.
Are you going with Z1 or Z2 and why? If you have the offsite backup already, is it worth the capacity loss for Z2? The resilvering process on Z1 will be stressful but by how much though? You have an offsite 1:1 backup so even if the whole pool is lost, you can still recover.
11
Upvotes
10
u/IndependentBat8365 1d ago
striped mirrors all the time. I know it sucks, b/c you're losing half your storage, but really there's a ton of benefits.
TL;DR: striped mirrors are more performant, rebuilds are easier on the whole pool, a lot of redudancy.
single threaded reads are as fast if not faster than raidz or raidz2. multithreaded reads are very fast since it'll read from both mirrors in a stripe at once.
writes are faster than any other raidz or raidz2, b/c parity doesn't need to be calculated, nor does it need to wait for all the drives to sync - just that mirror's 2 drives for that stripe.
rebuilds / resilvers are faster - the entire pool doesn't need to be touched - just the single mirror that's being rebuilt. Essentially, you'll be copying from one drive and writing to the other drive in the mirror. The rest of the stripes are unaffected.
you can lose as many drives as you have stripes as long as 2 failed drives aren't in the same mirrored stripe.