Send / Receive
Cheat sheet · https://pcornel.dk/topic.php?topic=4032
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 sendzfs send -w ...— raw (encrypted) sendzfs get receive_resume_token <ds>— resume interrupted
Commands
zfs sendzfs 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 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 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 |
| Acceptance | Healthy 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