Use it when configuring, checking or troubleshooting RAIDZ2 in ZFS.
RAIDZ2
RAIDZ2 is a variable-width parity vdev with 2 parity. It can tolerate up to 2 unavailable member device(s) in that vdev before redundancy is exceeded, subject to readable surviving data. Capacity and performance depend on width, sector alignment, record/block sizes and workload. Pools with multiple RAIDZ vdevs stripe allocations across those top-level vdevs.
1. RAIDZ2: double parity — standard for HDD vdevs.
2. 6–10 disks per vdev typical.
3. IOPS ≈ one disk per vdev; add vdevs for more.
4. Survives two failures per vdev.
5. Good for bulk storage.
data + 2 parity → vdev
Context & applicabilityCommon mistakes · platform/version boundaries
An ONLINE RAIDZ2 vdev shows current members satisfy ZFS availability rules with 2-parity protection configured, but it does not show latent sectors are readable, backups exist, or all other top-level vdevs are healthy.
Suspicious evidence: multiple unavailable devices are concentrated in one RAIDZ2 vdev, error counters rise during reads, resilver stalls, or parity count is incorrectly treated as a pool-wide failure budget.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
zpool → RAIDZ2 top-level vdev → data/parity mapping → surviving leaf devices → checksum validation/reconstruction → workload read-back
Healthy evidence: all expected members are online, remaining 2-parity protection is intact, persistent errors are not increasing, and recent scan plus representative I/O is clean.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- RAIDZ2 ≠ backup.
- RAIDZ2 tolerance is per top-level RAIDZ vdev, not a pool-wide budget of 2 disk failures.
- Parity protection ≠ proof against every corruption when no valid redundant reconstruction source remains.
- Usable capacity ≠ simple raw sum after parity, slop space, metadata and allocation effects.
zpool status— raidz2 vdevzpool list -v— capacityzpool get autoreplace <pool>— replacement behaviour
ReferenceImportant terms & boundaries3 sections · depth on demand
Topology
An ONLINE RAIDZ2 vdev shows current members satisfy ZFS availability rules with 2-parity protection configured, but it does not show latent sectors are readable, backups exist, or all other top-level vdevs are healthy.
In depth
Double parity in a ZFS vdev
zpoolconcepts(7) describes raidz1, raidz2 and raidz3 as single, double and triple parity groups that tolerate 1, 2 or 3 device failures without data loss. Usable capacity is roughly (N − P) × X for N disks of size X with P parity disks, and the documentation recommends 3–9 disks per group.
| Disks in raidz2 vdev | Usable (approx.) | Overhead |
|---|---|---|
| 4 × 8 TB | 16 TB | 50 % |
| 6 × 8 TB | 32 TB | 33 % |
| 8 × 8 TB | 48 TB | 25 % |
| 10 × 8 TB | 64 TB | 20 % |
Real usable space is lower because of metadata, padding and the free space you should keep.
# zpool create tank raidz2 /dev/disk/by-id/ata-D1 /dev/disk/by-id/ata-D2 /dev/disk/by-id/ata-D3 \
/dev/disk/by-id/ata-D4 /dev/disk/by-id/ata-D5 /dev/disk/by-id/ata-D6
# zpool list -v tank
Why raidz2 for large disks
A resilver of a large HDD takes many hours. With raidz1, a second failure or unreadable sector during that window can lose data; raidz2 keeps one parity level during the rebuild.
Design points
| Topic | Consideration |
|---|---|
| Random IOPS | A raidz vdev performs roughly like one disk for small random I/O; add vdevs for IOPS |
| Expansion | Plan full vdevs; mixing vdev widths complicates capacity and performance |
| Device names | Use /dev/disk/by-id/ paths, not sdX |
| VM/database workloads | Mirrors usually give better random I/O than raidz2 |
Always back up: parity protects against disk failure, not deletion, corruption from software or site loss.
*The six fictional disk identifiers and pool creation commands demonstrate double-parity layout, not a deployed array.*
Worked example
RAIDZ2 survives two disk failures per vdev and is the common choice for HDD capacity pools. Usable ≈ (n − 2) / n before padding and metadata.
| Width | Usable fraction | Example (16 TB disks) |
|---|---|---|
| 6 | 4/6 = 67 % | 64 TB |
| 8 | 6/8 = 75 % | 96 TB |
| 10 | 8/10 = 80 % | 128 TB |
| 12 | 10/12 = 83 % | 160 TB |
Above ~10–12 disks per vdev, resilver times and per-vdev IOPS limits usually make two narrower vdevs the better choice.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in ZFS → RAIDZ2. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://openzfs.github.io/openzfs-docs/ · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
ZFS → RAIDZ2 ZFS map
Fast topology, capacity, integrity and proof boundaries for ZFS → RAIDZ2.
| ZFS boundary | What to verify | Proof limit |
|---|---|---|
| Identity / topology | Pool GUID/name, dataset/zvol, top-level vdev class, leaf-device identity and effective properties | Object presence alone does not prove integrity, performance or recovery |
| Capacity / protection | Pool free space, quotas/reservations, snapshot retention, redundancy and active scrub/resilver state | Free space or ONLINE state at one layer does not prove end-to-end health |
| Failure boundary | An ONLINE RAIDZ2 vdev proves current members satisfy ZFS availability rules with 2-parity protection configured; it does not prove latent sectors are readable, backups exist, or all other top-level vdevs are healthy. | Correlate ZFS evidence with both workload and lower device/path evidence |
| Acceptance | Healthy evidence: all expected members are online, remaining 2-parity protection is intact, persistent errors are not increasing, and recent scan plus representative I/O is clean. | Close only after original workload plus checksum/read-back/recovery verification succeeds |