Pcornel
Storage · ZFS

VDEV

Cheat sheet · https://pcornel.dk/topic.php?topic=4011

Back to the Topic

Answer

Leaf devices are grouped into top-level normal vdevs such as mirrors or RAIDZ groups. The pool stripes allocations across top-level normal vdevs, but redundancy is contained inside each vdev. Auxiliary vdev roles have different semantics: log accelerates synchronous durability, cache supplies L2ARC, and special stores unique metadata/small-block allocations.

Remember

  • Vdev ≠ physical disk.
  • Pool-wide redundancy ≠ parity distributed across every disk unless the actual vdev topology provides it.
  • Cache vdev failure ≠ normal data-vdev failure because cache contains secondary copies.
  • Special vdev ≠ cache; it can hold the only copy of metadata or selected data blocks.

First checks

  • zpool status <pool> — vdev tree
  • zpool iostat -v <pool> 1 — per-vdev I/O
  • zpool list -v — vdev capacity

Verify in this order

disks → vdev (redundancy) → pool

Where it usually breaks

First mismatch in member media → metadata/layout → allocation/placement → redundancy/recovery → logical object → consumer; preserve identity/pre-state before mutation.

ZFS → VDEV ZFS map

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 boundaryA healthy leaf device proves only that member is currently usable; pool availability depends on the complete top-level vdev and all other required top-level vdevs.Correlate ZFS evidence with both workload and lower device/path evidence
AcceptanceHealthy evidence: every expected top-level vdev and child appears with intended class/redundancy, no unexplained error counters grow, and the pool remains healthy under representative I/O.Close only after original workload plus checksum/read-back/recovery verification succeeds

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4011

Confirmation

Confirm action

Continue?