Pcornel
Storage · Replication

Replication Troubleshooting

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

Back to the Topic

Answer

Troubleshooting first preserves relationship state and timestamps, identifies the authoritative source and last common checkpoint, then traces changes through capture, queue, transport and target apply before any resync or promotion.

Remember

  • Replication alarm ≠ network root cause.
  • Target behind ≠ source capture necessarily healthy.
  • Reset/resync can destroy forensic state or overwrite newer data.
  • Relationship healthy after repair ≠ application recovery proven.

First checks

  • replication tool status — errors
  • journalctl / event logs — replication errors
  • ping/iperf3 — link

Commands

journalctl --since "-1h" | grep -Ei "replication|replica|sync|resync|error|fail"
Read-only/validation observation for time-bounded replication/synchronization errors and state transitions.

Verify in this order

source → link → target → status

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 → Replication Troubleshooting 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 boundaryThe useful diagnosis is the first failed replication boundary; generic relationship status does not identify whether capture, transport, target apply, capacity, metadata or ownership failed.Correlate evidence for the same operation and time window
AcceptanceHealthy evidence for Replication Troubleshooting: 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=4242

Confirmation

Confirm action

Continue?