Pcornel
Storage · ZFS

ZFS Fundamentals

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

Back to the Topic

Answer

ZFS writes changed blocks to new locations and commits consistent transaction groups rather than overwriting live blocks in place. Block pointers carry checksums and tree metadata, while datasets and zvols consume space from a shared pool subject to quotas, reservations and properties. The operational unit for redundancy is the top-level vdev, not an individual dataset.

Remember

  • Copy-on-write ≠ backup.
  • Pool free space ≠ guaranteed free space for every dataset when quotas/reservations apply.
  • Checksum coverage ≠ automatic repair without redundancy.
  • Dataset properties may be inherited; an observed value ≠ proof of where it was set.

First checks

  • zpool status — layout and errors
  • zfs get all <dataset> | head -40 — properties
  • arc_summary | head -40 — ARC

Verify in this order

dataset → pool → vdevs → disks

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 → ZFS Fundamentals 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 clean imported dataset hierarchy proves ZFS metadata can describe the namespace and current mappings; it does not prove all data blocks are intact or that the workload is application-consistent.Correlate ZFS evidence with both workload and lower device/path evidence
AcceptanceHealthy evidence: pool topology, dataset hierarchy, properties, capacity and checksummed I/O agree with design and recent scrub/read-back evidence has no unexplained errors.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=4009

Confirmation

Confirm action

Continue?