Pcornel
Storage · ZFS

Dataset

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

Back to the Topic

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 — datasets
  • zfs get compression,recordsize,atime,quota,reservation <ds> — key properties
  • zfs 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 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 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
AcceptanceHealthy 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

Confirmation

Confirm action

Continue?