ZFS
Cheat sheet · https://pcornel.dk/topic.php?topic=3953
Answer
ZFS datasets and zvols allocate from a storage pool built from vdevs. End-to-end checksums verify data on read, and redundancy can repair bad copies when a valid replica exists. Pool/vdev health constrains filesystem availability.
Remember
- ZFS dataset ≠ zvol.
- Checksum detection ≠ repair without redundancy.
- Snapshot ≠ backup.
- Pool ONLINE ≠ every block recently scrubbed.
First checks
zfs list— datasetszpool status -x— pool healthzfs get compression,recordsize,atime <dataset>— properties
Verify in this order
dataset → pool → vdevs → disks
Where it usually breaks
First mismatch in media/provider → controller/pool → logical object → path/protocol → filesystem/share/object namespace → consumer workload; preserve identity/pre-state before mutation.
Filesystems → ZFS filesystem map
| Filesystem boundary | What to verify | Proof limit |
|---|---|---|
| Identity / attachment | Filesystem type, source/backing object, mount/attachment target and effective options | Presence or mount state alone does not prove consistency or lower-layer health |
| Capacity / metadata | Data space, metadata/inodes, quotas/reservations and filesystem state | Free bytes at one layer do not prove allocation can succeed end to end |
| Failure boundary | An ONLINE pool and mounted dataset prove current topology/access state; they do not prove all blocks have been scrubbed, backup exists or every workload write is application-consistent. | Correlate filesystem evidence with the backing volume/path/backend before repair |
| Acceptance | Healthy evidence: pool/vdev topology is healthy, dataset mounts as intended, checksum/device error counters are understood, capacity is available and recent scrub/read verification shows no unexplained faults. | Close only after the original path/workload and read-back check succeeds |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3953