Use it when the storage-protection question has been narrowed to Replication → Failover. Preserve object identity, timestamps, dependency state and the newest authoritative data before changing configuration, deleting snapshot state, resynchronizing or changing replication ownership.
Failover · Replication
A safe failover determines the best available recovery point, prevents or fences conflicting primary writes when required, promotes the target, redirects consumers, and validates data plus application dependencies.
1. Failover makes the replica primary.
2. Confirm the source is down or fenced (avoid split brain).
3. Point clients to the target.
4. Choose recovery point.
5. Document steps.
source down → promote replica → redirect clients
Context & applicabilityCommon mistakes · platform/version boundaries
Successful target promotion shows storage ownership changed, but it does not show service recovery until consumers and application data are validated.
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
failure/decision → source ownership/fencing → select target checkpoint → promote target → redirect hosts/services → application read-back → reprotection
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.
- Failover ≠ replication.
- Target promoted ≠ clients redirected.
- Clients connected ≠ application recovered.
- Forced failover can accept data loss or divergence depending on currency.
zfs set readonly=off <dst> / promote— ZFS targetStart-VMFailover— Hyper-V Replicarbd mirror image promote <pool>/<img>— Ceph
ReferenceImportant terms & boundaries3 sections · depth on demand
Scope and what the checks show
Successful target promotion shows storage ownership changed, but it does not show service recovery until consumers and application data are validated.
In depth
Failover moves the active role to the replica
In replicated storage, only one side normally accepts writes. Failover promotes the replica to that role after the primary fails, or during planned maintenance.
Roles in DRBD
The DRBD user guide describes the roles. A Primary has unrestricted read and write access. A Secondary receives updates but allows no application access, not even reads. Promotion can be manual (drbdadm primary), driven by a cluster manager, or automatic: auto-promote, on by default, promotes the resource when the device is opened or mounted. DRBD refuses to promote a resource whose data is Outdated, and data marked Inconsistent (for example during a resync) must not be put into service.
# drbdadm status r0 # on the surviving node
r0 role:Secondary
disk:UpToDate
node1 connection:Connecting
# drbdadm primary r0
# mount /dev/drbd0 /srv && systemctl start app
Failover checklist
| Step | Why |
|---|---|
| Confirm the old primary is really down, or fenced | Prevents two primaries (split brain) |
| Check the replica's state (UpToDate, replication lag) | Know how much data, if any, is missing |
| Promote and start services in dependency order | Storage, file system, application, network address |
| Redirect clients (VIP, DNS, load balancer) | Users reach the new side |
| Record the time and the data state | Needed for failback and the incident report |
Automated versus manual
| Approach | Use when |
|---|---|
| Cluster manager (Pacemaker) with fencing or quorum | Local HA with low RTO |
| Manual, runbook-driven | Disaster-recovery sites, where a wrong automatic failover costs more than minutes of delay |
The DRBD guide recommends quorum (three nodes, one of which can be diskless) or fencing, so a partitioned node cannot keep writing.
Documented example, not captured output.
Quick reference
Storage failover promotes the replica to read-write and points hosts at it. Before promoting, stop replication in the right direction, check the last consistent point, and make sure the old primary cannot come back and write (split-brain).
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 → Failover. 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 → Failover proof map
Fast identity, dependency, failure-boundary and acceptance checks for Replication → Failover.
| 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 | Successful target promotion proves storage ownership changed; it does not prove service recovery until consumers and application data are validated. | Correlate evidence for the same operation and time window |
| Acceptance | Healthy evidence for Failover: 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 |