Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

Synchronous Replication

Direct answer

The write path is latency-coupled to the remote side: source commit, network transport and target commit/acknowledgement participate in the application-visible completion time according to product policy.

When to use this

Use it when the storage-protection question has been narrowed to Replication → Synchronous Replication. 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. Synchronous replication acknowledges after both sites write — RPO 0.

2. Adds RTT to every write — short distances only (about <100 km).

3. Link loss: choose suspend or fail.

4. Split brain protection needed.

5. Expensive bandwidth.

Operational verification

write → local + remote → ack

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

A synchronous acknowledgement shows the configured source/target commit condition was satisfied for that write, but it does not show future availability or application consistency beyond the protected write boundary.

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 → Synchronous Replication. Preserve object…
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

host write → source commit stage → network → target commit stage → replication acknowledgement → host acknowledgement

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
  • Synchronous ≠ zero application downtime.
  • RPO near zero depends on the relationship remaining healthy and on the exact acknowledgement/durability semantics.
  • Low network RTT ≠ target storage latency is low.
  • Two copies ≠ backup/version history.
Key checks
  • array: show sync mirror status — sync state
  • drbdadm status — DRBD (protocol C)
  • ping -c 100 <remote> — RTT (latency budget)
ReferenceImportant terms & boundaries3 sections · depth on demand

Scope and what the checks show

A synchronous acknowledgement shows the configured source/target commit condition was satisfied for that write, but it does not show future availability or application consistency beyond the protected write boundary.

In depth

Synchronous replication: a write completes only when both copies have it

With synchronous replication the application's write is acknowledged only after the remote site has stored it. Recovery point objective (RPO) is zero for the replicated data, and the cost is that every write waits for the round trip.

DRBD protocol C as a concrete example

The DRBD user guide describes protocol C: a write is considered complete only after both the local and the remote disk writes have been confirmed. Losing one node therefore loses no data. The guide calls it the most common choice.

# /etc/drbd.d/r0.res (excerpt)
resource r0 {
  net { protocol C; }
  on node1 { device /dev/drbd0; disk /dev/vg0/r0; address 10.0.50.1:7789; node-id 0; }
  on node2 { device /dev/drbd0; disk /dev/vg0/r0; address 10.0.50.2:7789; node-id 1; }
}
# drbdadm status r0
r0 role:Primary
  disk:UpToDate
  node2 role:Secondary
    peer-disk:UpToDate

Latency budget

Distance (fibre)Added round trip (approx.)
Same rack or room< 0.1 ms
Campus, ~10 km~0.1 ms
Metro, ~100 km~1 ms
1000 km~10 ms; usually too slow for synchronous

Every write pays at least the round-trip time plus the remote write latency.

Design considerations

  • A dedicated, redundant replication link. If it is slow or congested, every application write slows down.
  • Quorum or fencing, so that two sides never both accept writes (split brain). The DRBD guide notes that quorum needs at least three nodes, where the third can be a diskless tiebreaker.
  • Synchronous replication copies corruption and deletions instantly. It is not a backup.

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

Synchronous replication acknowledges a write to the host only after both sites have it. RPO is zero, but every write waits for the round trip: roughly 1 ms per 100 km of fibre (5 µs/km one way, doubled) plus equipment latency. That limits distance and makes link quality critical.

If the link fails, the array must choose: stop writes (protect consistency) or continue alone (protect availability) — know which your system does.

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 → Synchronous Replication. 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
synchronous replicationsynchronous-replicationreplication synchronous replication
Embedded reference data

Quick lookup tables

Replication → Synchronous Replication proof map

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

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 synchronous acknowledgement proves the configured source/target commit condition was satisfied for that write; it does not prove future availability or application consistency beyond the protected write boundary.Correlate evidence for the same operation and time window
AcceptanceHealthy evidence for Synchronous Replication: 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?