Pcornel
Storage · Replication

Failover

Cheat sheet · https://pcornel.dk/topic.php?topic=4240

Back to the Topic

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 target
  • Start-VMFailover — Hyper-V Replica
  • rbd 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 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 boundarySuccessful 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
AcceptanceHealthy 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

Confirmation

Confirm action

Continue?