VDEV
Cheat sheet · https://pcornel.dk/topic.php?topic=4011
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 treezpool iostat -v <pool> 1— per-vdev I/Ozpool 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 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 | A 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 |
| Acceptance | Healthy 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