Pcornel
Storage · Filesystems

ZFS

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

Back to the Topic

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 — datasets
  • zpool status -x — pool health
  • zfs 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 boundaryWhat to verifyProof limit
Identity / attachmentFilesystem type, source/backing object, mount/attachment target and effective optionsPresence or mount state alone does not prove consistency or lower-layer health
Capacity / metadataData space, metadata/inodes, quotas/reservations and filesystem stateFree bytes at one layer do not prove allocation can succeed end to end
Failure boundaryAn 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
AcceptanceHealthy 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

Confirmation

Confirm action

Continue?