Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

Replication Troubleshooting

Direct 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.

When to use this

Use it when the storage-protection question has been narrowed to Replication → Replication Troubleshooting. Preserve object identity, timestamps, dependency state and the newest authoritative data before changing configuration, deleting snapshot state, resynchronizing or changing replication ownership.

First 30 seconds

1. Check link, credentials, space on target, version compatibility.

2. Broken incremental chains need full resync.

3. Lag: bandwidth or source load.

4. Split brain: stop and decide which side wins.

5. Fix and verify.

Operational verification

source → link → target → status

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Failure and recovery traps

The useful diagnosis is the first failed replication boundary; generic relationship status does not identify whether capture, transport, target apply, capacity, metadata or ownership failed.

Platform / version applicability
Data protection and recovery
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformData protection and recovery · Linux / systemd journal
Key commandjournalctl --since "-1h" | grep -Ei "replication|replica|sync|resync|error|fail"
Scope / prerequisiteUse it when the storage-protection question has been narrowed to Replication → Replication Troubleshooting. Preserve ob…
Verify · 1
What next?3 suggested next steps
Catalog command links1
Evidence1
On this pageJump to a specific section
Storage command reference

Primary Commands

Configuration and operational commands for this Topic.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

4 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Verification path Verify boundary

symptom/time → authority/source → baseline/common checkpoint → capture queue → transport → target receive/apply → lag/state → controlled action → read-back/failover test

Step 2 Known-good, broken and when it is fixed Verify boundary

Verification for Replication → Replication Troubleshooting must discriminate known-good from broken/suspicious state. With journalctl --since "-1h" | grep -Ei "replication|replica|sync|resync|error|fail", known-good is: no unexplained replication failures appear for the affected window and checkpoints continue advancing. Broken/suspicious is: repeated sync/resync errors, stalled checkpoints, transport failures or target-apply errors align with the symptom. Read back the same target after the minimal approved change, then inspect the specific replication engine's authoritative queue/checkpoint state and verify target read-back.

Step 3 Observation-driven troubleshooting tree Narrow the fault

Troubleshoot Replication → Replication Troubleshooting from one exact failing target, revision/input and timestamp. Capture journalctl --since "-1h" | grep -Ei "replication|replica|sync|resync|error|fail" before mutation, then branch by the first divergent observation: no replication events appear, verify service/change tracking before network; connection/auth errors, stay at transport/identity; session is up but lag grows, compare source generation versus transfer/apply rates and target capacity; target reports current but application test differs, validate exact dataset/checkpoint and consistency semantics. Typical failure signatures include journal overflow, broken checkpoint, expired certificate, blocked port, wrong peer, target full/read-only, resync loop, out-of-order apply, split-brain protection, apparently zero lag on stale telemetry or replica current at storage layer but inconsistent at application layer.

Step 4 Failure signatures, dependencies and operational guardrails Narrow the fault

Failure-signature and guardrail reference for Replication → Replication Troubleshooting: Journal overflow, broken checkpoint, expired certificate, blocked port, wrong peer, target full/read-only, resync loop, out-of-order apply, split-brain protection, apparently zero lag on stale telemetry or replica current at storage layer but inconsistent at application layer. Operational guardrail: The bounded journal grep exposes matching local log lines only and may miss rotated/remote logs or structured fields; a success message is historical evidence rather than evidence of current byte/application equality, so closure requires live checkpoint/lag plus a safe original read or failover-read test where appropriate. Dependencies that can mimic the same symptom are source storage health, journal capacity, clocks, DNS/routing/firewall, authentication/certificates, target capacity, version compatibility, replication slots/checkpoints, snapshot seeding and application write ordering.

Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • 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.
Key checks
  • replication tool status — errors
  • journalctl / event logs — replication errors
  • ping/iperf3 — link
ReferenceHow it works1 section · depth on demand

How it works

Replication → Replication Troubleshooting owns source consistency and change tracking, replication journal/log, transport session, target identity and apply order, backlog/lag measurement, retention window, failover state and the RPO/RTO behavior expected by the consuming service. Execution mechanics: A source records ordered changes from a known consistency point, queues them in a journal/backlog, transports them to the intended peer, validates sequence and identity, applies them durably and advances a checkpoint from which lag and recoverability are measured; connected does not mean caught up or application-consistent. Keep adjacent dependencies separate: source storage health, journal capacity, clocks, DNS/routing/firewall, authentication/certificates, target capacity, version compatibility, replication slots/checkpoints, snapshot seeding and application write ordering. The mapped read surface journalctl --since "-1h" | grep -Ei "replication|replica|sync|resync|error|fail" exposes time-bounded replication/synchronization errors and state transitions.

ReferenceImportant terms & boundaries2 sections · depth on demand

Scope and what the checks show

The useful diagnosis is the first failed replication boundary; generic relationship status does not identify whether capture, transport, target apply, capacity, metadata or ownership failed.

Method

Replication troubleshooting finds why copies are lagging or failing, by checking each step: change capture at the source, transport, apply at the target, and the schedule or policy.

1. Compare current lag with the RPO target.

2. Check the relationship state on both sides (paused, broken, error).

3. Test the network path: bandwidth, latency, packet loss, firewall, certificates.

4. Check target capacity and whether the target volume is locked or in use.

5. Look for change rate spikes (bulk loads, ransomware-like activity) that exceed bandwidth.

zfs list -t snapshot -o name,creation -s creation tank/data | tail -3
ssh dr01 zfs list -t snapshot -o name,creation -s creation backup/data | tail -3
iperf3 -c dr01 -t 20
SymptomCause
Lag grows steadilyBandwidth below change rate
Job fails at startAuthentication, missing base snapshot
Target fullSnapshot retention, capacity

After fixing, verify a test failover or restore from the target, not just a green status.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docData protection and recovery current

Authoritative/upstream documentation reviewed for bounded claims in Replication → Replication Troubleshooting. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://linbit.com/drbd-user-guide/drbd-guide-9_0-en/ · confidence 94%
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
replication troubleshootingreplication-troubleshootingreplication replication troubleshooting
Embedded reference data

Quick lookup tables

Replication → Replication Troubleshooting proof map

Fast identity, dependency, failure-boundary and acceptance checks for Replication → Replication Troubleshooting.

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
Confirmation

Confirm action

Continue?