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.
Synchronous Replication
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.
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.
write → local + remote → ack
Context & applicabilityCommon mistakes · platform/version boundaries
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.
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
host write → source commit stage → network → target commit stage → replication acknowledgement → host acknowledgement
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.
- 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.
array: show sync mirror status— sync statedrbdadm 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.
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
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 → 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%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 → Synchronous Replication proof map
Fast identity, dependency, failure-boundary and acceptance checks for Replication → Synchronous Replication.
| 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 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 |
| Acceptance | Healthy 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 |