Pcornel
Storage · ZFS

Send / Receive

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

Back to the Topic

Answer

ZFS send serializes snapshot state into a stream; incremental sends encode changes between related snapshot points. ZFS receive reconstructs the dataset state from that stream. Stream completion proves transfer mechanics, but recovery quality also depends on correct source snapshots, lineage, properties, application consistency, destination capacity and validation.

Remember

  • Send stream ≠ backup policy by itself.
  • Successful receive ≠ application-consistent recovery proof.
  • Incremental send requires compatible snapshot lineage/base state.
  • Transferred logical state ≠ identical physical vdev layout or performance.

First checks

  • zfs send -i <ds>@a <ds>@b | ssh <host> zfs recv -u <pool>/<ds> — incremental send
  • zfs send -w ... — raw (encrypted) send
  • zfs get receive_resume_token <ds> — resume interrupted

Commands

zfs send
zfs receive

Verify in this order

snapshot → send stream → receive → target dataset

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 → Send / Receive 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 completed send/receive proves the selected ZFS snapshot stream was generated and accepted by the destination; it does not prove application consistency, retention policy or restore usability.Correlate ZFS evidence with both workload and lower device/path evidence
AcceptanceHealthy evidence: source and destination snapshot lineage matches plan, transfer completes without errors, destination properties/capacity are correct, and recovery read-back succeeds.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=4032

Confirmation

Confirm action

Continue?