Pcornel
Storage · ZFS

Replication

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

Back to the Topic

Answer

ZFS replication typically creates snapshots, transfers full or incremental streams, retains selected recovery points and manages divergence or resumption. The replication mechanism preserves ZFS block state, but recovery objectives also depend on schedule, destination independence, retention, encryption/key handling, monitoring and restore testing.

Remember

  • Replication ≠ backup automatically.
  • Replication success ≠ restore proof.
  • Low replication lag ≠ application consistency.
  • Second pool ≠ independent failure domain if power, credentials, ransomware access or site risk is shared.

First checks

  • syncoid <src> <dst> — sanoid/syncoid replication
  • zfs list -t snapshot -r <dst> — replicated snapshots
  • pvesr status — Proxmox ZFS replication

Verify in this order

source snapshots → send -i → target

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 → Replication 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 current replicated snapshot proves a ZFS state reached the destination; it does not prove the copy is operationally isolated, application-consistent or recoverable within RTO.Correlate ZFS evidence with both workload and lower device/path evidence
AcceptanceHealthy evidence: protected snapshot age meets RPO, destination is independent enough for the threat model, retention is intact, and periodic recovery tests meet the intended RTO.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=4033

Confirmation

Confirm action

Continue?