Use it when the storage-protection question has been narrowed to Replication → Replication Lag. Preserve object identity, timestamps, dependency state and the newest authoritative data before changing configuration, deleting snapshot state, resynchronizing or changing replication ownership.
Replication Lag
Lag can arise from source burst rate, change-capture backlog, transport limits, target apply latency, pauses, throttling or dependency failure. The metric must be interpreted using its exact vendor definition.
1. Lag = how far the replica is behind.
2. Causes: bandwidth, latency, source change spikes, target slow.
3. Alert when lag > RPO.
4. Track trends.
5. Fix capacity or schedule.
change rate vs link capacity → lag
Context & applicabilityCommon mistakes · platform/version boundaries
A lag metric shows only the distance represented by that metric at that time; it does not automatically equal business RPO or data-loss exposure.
Operational reference
Fast context before you go deeper.
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 change rate → capture backlog → send queue → network throughput → receive/apply queue → target checkpoint → measured lag
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.
- Lag ≠ network RTT.
- Zero queued bytes ≠ target applied checkpoint unless the metric defines it that way.
- Current lag ≠ achieved RPO during a later incident.
- Average lag can hide spikes and stalled checkpoints.
zfs list -t snapshot -o name,creation -r <dst> | tail -1— newest replicated snapshotMeasure-VMReplication— Hyper-V lag statsrbd mirror image status— Ceph lag
ReferenceImportant terms & boundaries3 sections · depth on demand
Scope and what the checks show
A lag metric shows only the distance represented by that metric at that time; it does not automatically equal business RPO or data-loss exposure.
In depth
Lag is how far the replica is behind; measure it in time and in data
Replication lag is the age of the newest data present at the target. For snapshot-based replication it is the age of the latest snapshot received. For streaming replication it is the bytes or time still in flight.
Measuring with ZFS send/receive
zfs-send(8) documents incremental streams (-i for the difference between two snapshots, -I including intermediate snapshots) and a dry run: -n with -v or -P reports what would be sent without sending.
# zfs list -H -t snapshot -o name,creation -s creation tank/data | tail -1 # source
tank/data@repl-2026-11-27_1000 Fri Nov 27 10:00 2026
# ssh dr01 zfs list -H -t snapshot -o name,creation -s creation backup/data | tail -1 # target
backup/data@repl-2026-11-27_0600 Fri Nov 27 06:00 2026
# zfs send -nvP -i tank/data@repl-2026-11-27_0600 tank/data@repl-2026-11-27_1000
incremental repl-2026-11-27_0600 tank/data@repl-2026-11-27_1000 48318382080
size 48318382080
The target is 4 hours behind, with about 45 GiB still to transfer.
Causes of growing lag
| Cause | Check |
|---|---|
| Change rate above link bandwidth | Bytes per interval compared with Mbit/s available |
| Replication job failing | Job logs; unchanged newest-snapshot age at the target |
| Interrupted transfers restarting from scratch | Use zfs receive -s and resume with zfs send -t <token> |
| Target slower than source | Target pool latency, CPU for decompression or decryption |
Alerting
Alert when lag exceeds the RPO, not when one job fails. Two failed runs in a row on an hourly schedule can still be within a 4-hour RPO. A run that "succeeds" without advancing the newest snapshot is a failure.
Documented example, not captured output.
Quick reference
Replication lag is how far the replica is behind the source, in time or data. It grows when the change rate exceeds link bandwidth or the target is slow, and directly becomes data loss in a disaster. Alert when lag exceeds the RPO, and trend it to see if bandwidth is enough.
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 Replication → Replication Lag. 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%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
Replication → Replication Lag proof map
Fast identity, dependency, failure-boundary and acceptance checks for Replication → Replication Lag.
| 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 | A lag metric proves only the distance represented by that metric at that time; it does not automatically equal business RPO or data-loss exposure. | Correlate evidence for the same operation and time window |
| Acceptance | Healthy evidence for Replication Lag: 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 |