Failover
Cheat sheet · https://pcornel.dk/topic.php?topic=4240
Answer
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.
Remember
- Failover ≠ replication.
- Target promoted ≠ clients redirected.
- Clients connected ≠ application recovered.
- Forced failover can accept data loss or divergence depending on currency.
First checks
zfs set readonly=off <dst> / promote— ZFS targetStart-VMFailover— Hyper-V Replicarbd mirror image promote <pool>/<img>— Ceph
Verify in this order
source down → promote replica → redirect clients
Where it usually breaks
First mismatch in source consistency → capture/journal → transport → repository/replica → catalog/checkpoint → restore/failover read-back; preserve identity/pre-state before mutation.
Replication → Failover proof map
| 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 |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4240