Storage Migration
Cheat sheet · https://pcornel.dk/topic.php?topic=3579
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— libvirtMove-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
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Scope | Disk/backing relocation | Compute may remain |
| Transfer | Blocks + changed writes | Online move may iterate |
| Cutover | Active backing changes | Verify actual target |
| Aftercare | Retire source later | Only 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