ZFS Fundamentals
Cheat sheet · https://pcornel.dk/topic.php?topic=4009
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 errorszfs get all <dataset> | head -40— propertiesarc_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 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 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 |
| Acceptance | Healthy 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