Replication
Cheat sheet · https://pcornel.dk/topic.php?topic=4033
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 replicationzfs list -t snapshot -r <dst>— replicated snapshotspvesr 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 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 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 |
| Acceptance | Healthy 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