Skip to content

Lesson 8 of 9 · 26m

Live Migration, Storage Migration, and Replication

How guests move between nodes, what makes migration fast or impossible, and how ZFS replication changes maintenance and disaster recovery.

Migration is the feature that turns virtualization from a collection of hosts into a platform. It is also where hidden coupling appears: CPU flags, local devices, storage ownership, network names, and memory pressure all decide whether moving a guest is routine or impossible.

Live migration moves state, not magic

QEMU live migration copies memory and device state from source to target while the VM continues running. Dirty pages are iteratively resent until the final cutover is short enough. Disk state must already be visible on the target, either through shared storage or because Proxmox migrates/replicates local disks too.

qm migrate 101 pve2 --online --with-local-disks

The VM keeps its identity and usually its network session. Downtime is small, not zero. Very memory-dirty workloads can migrate slowly or fail to converge because they dirty pages faster than the network copies them.

Shared prerequisites are design choices

The target node must have compatible CPU exposure, enough free memory, the same bridge names for guest networks, and access to the disks. A VM using PCI passthrough, a local ISO, a host-specific USB device, or a pinned CPU feature may not migrate cleanly.

CPU type matters. A cluster of heterogeneous processors often uses a lowest-common-denominator CPU model. That reduces instruction-set features available to guests but improves mobility. Choosing maximum host CPU performance and choosing migration freedom are sometimes opposite goals.

Storage migration is deliberate data movement

qm move-disk 101 scsi0 nvme-fast --delete

Moving a disk between storages copies blocks while preserving the guest definition. It is useful when evacuating a pool or changing performance tiers, but it consumes bandwidth and IO. Schedule it, monitor it, and remember that snapshots can complicate disk topology.

ZFS replication is operational leverage

For local ZFS storage, Proxmox replication jobs can send incremental snapshots to another node on a schedule. This is not HA and not a backup replacement; it is a warm copy of block state that makes manual recovery and migration much faster.

pvesr list
pvesr status
pvesr run 101-0

Replication traffic uses snapshots, so retention and deletion behavior matter. If the source is destroyed before the last change replicates, the replica is only as current as its latest successful snapshot.

Planned maintenance workflow

A mature maintenance cycle is boring: confirm quorum, verify replicas or shared storage health, migrate noncritical guests, migrate critical guests during the approved window, confirm service health, update the empty node, reboot, wait for stability, then redistribute. Automation helps, but judgment about service priority is still human work.

Field notes

  • Migration across nodes with mismatched bridge names is an avoidable failure; standardize names before scaling.
  • Do not use migration as a substitute for fixing an overloaded host. Moving noisy guests around hides capacity debt.
  • Measure migration bandwidth and expected completion time during a test, not during the incident that motivated it.
  • Replication timestamps are recovery-point reality. Record RPO per service instead of assuming every replica is equally fresh.
  • After migration, verify guest agent visibility, network reachability, monitoring, and backup inclusion. Power-on alone is not proof.

Was this lesson helpful?

Sign in to rate