Dataset
Cheat sheet · https://pcornel.dk/topic.php?topic=4012
Answer
A ZFS dataset is a filesystem object in a hierarchy. Properties can be local or inherited, and datasets share pool capacity unless constrained by quota/refquota/reservation/refreservation or other policy. Snapshot and clone relationships are scoped to datasets and their descendants depending on operation.
Remember
- Dataset ≠ zpool.
- Dataset available space ≠ raw pool free space when quotas/reservations or snapshots constrain it.
- Mounted dataset ≠ application health or full integrity proof.
- Property value ≠ locally configured value when inheritance is active.
First checks
zfs list -o name,used,avail,refer,mountpoint— datasetszfs get compression,recordsize,atime,quota,reservation <ds>— key propertieszfs create -o compression=lz4 <pool>/<ds>— create
Verify in this order
dataset properties → files → 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 → Dataset 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 mounted and writable dataset proves namespace and allocation are presently functional for the tested path; it does not prove all blocks, snapshots, permissions or underlying vdevs are healthy. | Correlate ZFS evidence with both workload and lower device/path evidence |
| Acceptance | Healthy evidence: expected dataset hierarchy, mountpoint, properties, quota/reservation headroom and read/write behavior match design with no correlated pool 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=4012