Cutover, verification and rollback
The migration job lifecycle, cutover modes, downtime limits, health probes, automatic rollback and finalising.
Job states#
pending → preflight → preparing → initial_sync → syncing ⇄ ready → cutover → verifying → completed → finalized
└──────── failed (source untouched, retry is safe) ────────┘ └─ rolling_back → rolled_back
needs_attention (operator decides)
- Until cutover the source is never shut down. Any error just marks the job
failed, andretryis safe. - From cutover on there is no cancel and no failure: either the job completes, or it rolls back.
- If the service stops in the middle of a cutover, the job becomes
needs_attention. The engine does not guess: an operator choosesrollbackorcontinue. - ready means the last delta round was smaller than
ready_delta_bytes(default 1 GiB). Rounds continue so the target never falls behind.
When cutover happens#
Set cutover in the job policy:
| Mode | Cutover starts |
|---|---|
manual |
When an operator calls the cutover action |
auto |
As soon as the job is ready |
scheduled |
When ready and inside the wave's maintenance window |
Waves can limit how many cutovers run at the same time (max_parallel_cutovers).
Cutover, step by step#
- The
pre_cutoverhook runs (for example, put a maintenance page up). - The source is quiesced:
shutdown(default),shutdown_then_off, orpower_off. With a live mirror, the guest file systems are frozen and the VM paused instead. - The final changes are copied and the volumes flushed.
- The guest is converted if needed.
- Volumes are detached from the converter and boot properties set: firmware, Secure Boot, machine type, disk bus and NIC model.
- Ports are created with the source IP and MAC, the
pre_boothook runs, and the VM is created from the volumes. - When the VM is active, health probes run until
verify_timeout. - The job completes. Downtime, measured from step 2 to the moment the service answers, is recorded on the job. The
post_cutoverhook runs.
max_downtime (default 30 minutes) starts at step 2. If it is exceeded, the job rolls back automatically when auto_rollback is on.
Health probes#
"probes": [
{"type": "icmp"},
{"type": "tcp", "port": 22},
{"type": "http", "port": 443, "path": "/health"}
]
The address defaults to the first mapped IP.
Rollback#
Rollback stops the target VM, runs the rollback hook (for example to move a routed IP back), and powers the source on in its previous state, with its previous autostart setting. The target server is deleted; its volumes and ports are kept for the next attempt.
After a rollback the next attempt starts with a full copy, because both sides may have changed. It is slower, but data is never inconsistent.
Finalise#
When the owner is satisfied, call finalize. Snapshots, reference points, change tracking and mirror jobs are cleaned up on the source. The source VM stays powered off until you delete it yourself.
Actions#
cutover, rollback, finalize, cancel (before cutover only), retry, continue and resync. See the migration API.
Something unclear or wrong on this page? Tell us. © 2026 PikoStack.