Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

Replication Lag

Direct answer

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.

When to use this

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.

First 30 seconds

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.

Operational verification

change rate vs link capacity → lag

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

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.

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
Scope / prerequisiteUse it when the storage-protection question has been narrowed to Replication → Replication Lag. Preserve object identit…
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

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

1 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

source change rate → capture backlog → send queue → network throughput → receive/apply queue → target checkpoint → measured lag

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
  • 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.
Key checks
  • zfs list -t snapshot -o name,creation -r <dst> | tail -1 — newest replicated snapshot
  • Measure-VMReplication — Hyper-V lag stats
  • rbd 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

CauseCheck
Change rate above link bandwidthBytes per interval compared with Mbit/s available
Replication job failingJob logs; unchanged newest-snapshot age at the target
Interrupted transfers restarting from scratchUse zfs receive -s and resume with zfs send -t <token>
Target slower than sourceTarget 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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
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 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%
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 lagreplication-lagreplication replication lag
Embedded reference data

Quick lookup tables

Replication → Replication Lag proof map

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

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 boundaryA 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
AcceptanceHealthy 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
Confirmation

Confirm action

Continue?