Replication
Cheat sheet · https://pcornel.dk/topic.php?topic=4230
Answer
A replication relationship includes a source, change-capture mechanism, transport, target apply path, synchronization state and promotion/failback rules. Replication improves availability or recovery options but normally shares corruption/deletion risks unless separate retained versions exist.
Remember
- Replication ≠ backup automatically.
- In sync ≠ application recovery proven.
- Secondary copy ≠ writable production until promotion/ownership is established.
- Redundant transport ≠ independent target storage.
First checks
zfs list -t snapshot -r <dst>— replicated snapshotsrbd mirror pool status <pool>— Ceph mirroringarray replication status— SAN
Verify in this order
source writes → replication → target copy
Where it usually breaks
First mismatch in source consistency → capture/journal → transport → repository/replica → catalog/checkpoint → restore/failover read-back; preserve identity/pre-state before mutation.
Replication proof map
| Storage boundary | What to verify | Proof limit |
|---|---|---|
| Identity / state | Correct object, source/target or snapshot point and same-window timestamps | Inventory alone does not prove data correctness |
| Dependency path | Change capture, queue/transport, target apply and currency checkpoint | A healthy adjacent component is not end-to-end proof |
| Failure boundary | Replication status proves only the relationship and currency boundary observed; it does not prove recoverability from logical corruption, application consistency or successful failover. | Correlate evidence for the same operation and time window |
| Acceptance | Healthy evidence for Replication: source and target identity/ownership are unambiguous, replication advances through the expected checkpoint, target apply succeeds, and the required read-back or promotion test matches the protected state. | Close only after original read-back/recovery test and protection-state verification |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4230