Use it when the symptom is “Replication Failure”: work through the layers in order and stop at the first one that fails.
Replication Failure
Trace source writes → change capture/checkpoint → replication queue → network/transport → target receive/apply → target capacity/state → currency → failover/failback ownership.
1. Replication failure: network, credentials, target full, broken incremental chain.
2. Fix and resync.
3. Full resync if chain broken.
4. Monitor lag.
5. Verify target.
source → link → target
Context & applicabilityCommon mistakes · platform/version boundaries
A replication failure shows protected changes are not flowing as intended, but it does not show source data is damaged or the target is a valid recovery point.
Suspicious evidence includes stalled checkpoints, growing backlog, transport retries, target apply errors, capacity exhaustion or unclear source/target authority.
Operational reference
Fast context before you go deeper.
journalctl --since "-1h" | grep -Ei "replication|replica|sync|resync|error|fail"Primary Commands
Configuration and operational commands for this Topic.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
Source write → change capture/checkpoint → queue → transport → target receive/apply → target capacity/state → currency/ownership → read-back
Healthy evidence shows ordered changes advancing from source to target, lag returning to policy, successful target read-back and active reprotection.
Step 2 Known-good, broken and when it is fixed Verify boundary
Verification for Storage Troubleshooting → Replication Failure 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 Storage Troubleshooting → Replication Failure 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: capture stopped, stay on source; backlog exists but no transfer, inspect peer/network/auth; transfer occurs but apply fails, inspect target capacity/version/data conflict; full resync repeatedly restarts, inspect retention/window and unstable dependencies; status turns healthy after repair, verify checkpoint progression and a bounded replica read. Typical failure signatures include lost journal segment, gap/divergence, credential expiry, peer mismatch, target capacity exhausted, schema/version conflict, checksum/apply error, split-brain state, resync storm or stale status showing healthy after progress stopped.
Step 4 Failure signatures, dependencies and operational guardrails Narrow the fault
Failure-signature and guardrail reference for Storage Troubleshooting → Replication Failure: Lost journal segment, gap/divergence, credential expiry, peer mismatch, target capacity exhausted, schema/version conflict, checksum/apply error, split-brain state, resync storm or stale status showing healthy after progress stopped. Operational guardrail: Grep-filtered journal lines are a navigation aid, not a completeness guarantee or current consistency evidence; do not promote/fail over or reseed until source/target identity, direction and authoritative-copy decision are explicit and recoverable. Dependencies that can mimic the same symptom are source consistency, log/journal capacity, network path, peer credentials, certificates/time, target free space/performance, version/schema compatibility, resync mechanism and failover role state.
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.
- Replication ≠ backup automatically.
- Connected relationship ≠ target current.
- Replication lag ≠ network RTT.
- Resyncing the wrong direction can overwrite the newest authoritative data.
replication status— errors/lagnetwork tests— linktarget space— capacity
ReferenceHow it works1 section · depth on demand
How it works
Storage Troubleshooting → Replication Failure owns the first failing step between source change capture, journal/backlog retention, peer connectivity/authentication, target acceptance/apply, checkpoint advancement and the service-level recovery point. Execution mechanics: Diagnosis starts with the last known common checkpoint and current source generation rate, then follows change records into queue, transport and target apply; repair must preserve ordering and identity, avoid overwriting the only good copy and establish a new verified common point before declaring replication restored. Keep adjacent dependencies separate: source consistency, log/journal capacity, network path, peer credentials, certificates/time, target free space/performance, version/schema compatibility, resync mechanism and failover role state. 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
A replication failure shows protected changes are not flowing as intended, but it does not show source data is damaged or the target is a valid recovery point.
Method
When replication fails, protected data stops flowing to the target and the gap to the RPO grows. Restore the flow quickly, but without overwriting good target data.
1. Measure how far behind the target is.
2. Read the error on source and target: authentication, network, missing base, space, conflicts.
3. Fix the cause and resume incrementally if possible.
4. If a full resync is needed, preserve the current target copy until the new one completes.
5. Verify by recovering a test object or VM from the target.
zfs list -t snapshot tank/data | tail -2
ssh dr01 zfs list -t snapshot backup/data | tail -2
drbdadm status
rbd mirror pool status rbd --verbose
| Error type | Typical fix |
|---|---|
| Missing common snapshot | Do not delete base snapshots used by replication; resync from a common point |
| Target out of space | Expand or adjust retention |
| Network timeouts | Bandwidth, MTU, firewall |
| Split-brain | Choose authoritative side deliberately |
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Storage Troubleshooting → Replication Failure. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.kernel.org/block/index.html · confidence 94%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.
Quick lookup tables
Storage Troubleshooting → Replication Failure proof map
Fast scope, dependency, failure-boundary and acceptance checks for Storage Troubleshooting → Replication Failure.
| Troubleshooting boundary | What to verify | Proof limit |
|---|---|---|
| Scope / identity | Exact workload, object/device identity, affected hosts and incident window | Symptom naming alone is not root-cause proof |
| Dependency path | Source write → change capture/checkpoint → queue → transport → target receive/apply → target capacity/state → currency/ownership → read-back | Healthy adjacent layers do not prove end-to-end health |
| Failure boundary | A replication failure proves protected changes are not flowing as intended; it does not prove source data is damaged or the target is a valid recovery point. | Correlate evidence for the same operation and timestamps |
| Acceptance | Healthy evidence shows ordered changes advancing from source to target, lag returning to policy, successful target read-back and active reprotection. | Close only after the original workload/recovery test and regression check |