Pcornel
Storage

Replication

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

Back to the Topic

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 snapshots
  • rbd mirror pool status <pool> — Ceph mirroring
  • array 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 boundaryWhat to verifyProof limit
Identity / stateCorrect object, source/target or snapshot point and same-window timestampsInventory alone does not prove data correctness
Dependency pathChange capture, queue/transport, target apply and currency checkpointA healthy adjacent component is not end-to-end proof
Failure boundaryReplication 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
AcceptanceHealthy 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

Confirmation

Confirm action

Continue?