Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

RAIDZ2

Direct answer

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.

When to use this

Use it when configuring, checking or troubleshooting RAIDZ2 in ZFS.

First 30 seconds

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.

Operational verification

data + 2 parity → vdev

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Failure and recovery traps

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.

Platform / version applicability
ZFS storage
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformZFS storage
Scope / prerequisiteUse it when configuring, checking or troubleshooting RAIDZ2 in ZFS.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • 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.
Key checks
  • zpool status — raidz2 vdev
  • zpool list -v — capacity
  • zpool 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 vdevUsable (approx.)Overhead
4 × 8 TB16 TB50 %
6 × 8 TB32 TB33 %
8 × 8 TB48 TB25 %
10 × 8 TB64 TB20 %

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

TopicConsideration
Random IOPSA raidz vdev performs roughly like one disk for small random I/O; add vdevs for IOPS
ExpansionPlan full vdevs; mixing vdev widths complicates capacity and performance
Device namesUse /dev/disk/by-id/ paths, not sdX
VM/database workloadsMirrors 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.*

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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.

WidthUsable fractionExample (16 TB disks)
64/6 = 67 %64 TB
86/8 = 75 %96 TB
108/10 = 80 %128 TB
1210/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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docZFS storage current

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%
Terminology layer

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.

Aliases that resolve here
raidz2zfs raidz2zpool raidz2
Embedded reference data

Quick lookup tables

ZFS → RAIDZ2 ZFS map

Fast topology, capacity, integrity and proof boundaries for ZFS → RAIDZ2.

ZFS boundaryWhat to verifyProof limit
Identity / topologyPool GUID/name, dataset/zvol, top-level vdev class, leaf-device identity and effective propertiesObject presence alone does not prove integrity, performance or recovery
Capacity / protectionPool free space, quotas/reservations, snapshot retention, redundancy and active scrub/resilver stateFree space or ONLINE state at one layer does not prove end-to-end health
Failure boundaryAn 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
AcceptanceHealthy 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
Confirmation

Confirm action

Continue?