Planned Failover
Cheat sheet · https://pcornel.dk/topic.php?topic=3644
Answer
Because the source participates, a planned failover can often reduce data loss by stopping or quiescing writes, completing final replication, confirming target readiness and then performing an orderly cutover.
Remember
- Planned ≠ automatically zero downtime.
- Final synchronization must occur after writes are controlled if near-zero RPO is expected.
- Source shutdown ≠ target dependencies ready.
- The transition should include rollback criteria before authority is moved.
First checks
Start-VMFailover -Prepare -VMName <vm>— planned failover (primary side)Start-VMFailover -VMName <vm>— on replicaComplete-VMFailover -VMName <vm>— finish
Verify in this order
primary off → final sync → replica starts → reverse
Where it usually breaks
First mismatch in guest block/filesystem view → virtual controller/disk → hypervisor mapping → datastore/path → storage backend → durability/read-back; preserve identity/native error/pre-state before mutation.
Disaster Recovery → Planned Failover reference map
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Precheck | Target ready before source impact | Reduces cutover risk |
| Quiesce | Control writes | Enables final consistent sync |
| Transfer | Authority moves deliberately | Avoid dual writers |
| Validate | Service works at target | Then reprotect |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3644