Replication
Cheat sheet · https://pcornel.dk/topic.php?topic=3638
Answer
Replication can be synchronous or asynchronous, continuous or periodic, host/application/storage based. Its key properties are consistency, lag, ordering, failure handling and whether the secondary is isolated enough from source errors.
Remember
- Replication ≠ backup; source deletion/corruption may replicate.
- Replica connected ≠ caught up.
- Zero transport errors ≠ application-consistent replica.
- Synchronous replication can reduce data loss but introduces latency/availability trade-offs.
First checks
Get-VMReplication— replication statepvesr status— Proxmoxzfs list -t snapshot | grep __replicate— ZFS replication snapshots
Verify in this order
source changes → replicated → target copy
Where it usually breaks
First mismatch in guest block/filesystem view → virtual controller/disk → hypervisor mapping → datastore/path → storage backend → durability/read-back; preserve identity/native error/pre-state before mutation.
Disaster Recovery → Replication reference map
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Capture | Changes selected at source | Layer-specific |
| Transport | Updates reach secondary | Lag may accumulate |
| Apply | Secondary incorporates changes | Order/consistency matter |
| Activation | Secondary serves workload | Requires dependencies |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3638