Pcornel
Virtualization · VM Migration

Storage Migration

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

Back to the Topic

Answer

Storage Migration changes where VM storage is backed. Online variants copy blocks while tracking ongoing guest writes, synchronize changed blocks, switch the active backing location and retire the old mapping only after successful cutover.

Remember

  • Storage migration can move disks without moving the VM's compute execution.
  • Guest writes during an online move must be tracked and reconciled before backing ownership switches.
  • Free space at the destination is necessary but does not prove performance, format or feature compatibility.
  • The source storage should not be removed until the destination mapping and workload I/O are verified.

First checks

  • qm move-disk <vmid> scsi0 <storage> --delete 1 — move disk (Proxmox)
  • virsh blockcopy <vm> vda <dst> --wait --pivot — libvirt
  • Move-VMStorage <vm> -DestinationStoragePath <path> — Hyper-V

Commands

qm disk move

Verify in this order

disk copy while running → mirror → pivot

Where it usually breaks

First mismatch in cluster membership/quorum → node capability/health → placement policy → resource ownership → migration/failover task → guest/workload continuity; preserve identity/native error/pre-state before mutation.

VM Migration → Storage Migration reference map

BoundaryMeaningEvidence limit
ScopeDisk/backing relocationCompute may remain
TransferBlocks + changed writesOnline move may iterate
CutoverActive backing changesVerify actual target
AftercareRetire source laterOnly after workload proof

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3579

Confirmation

Confirm action

Continue?