]> git.proxmox.com Git - qemu-server.git/commit
add live storage migration with vm migration
authorAlexandre Derumier <aderumier@odiso.com>
Tue, 3 Jan 2017 14:03:17 +0000 (15:03 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 5 Jan 2017 08:09:46 +0000 (09:09 +0100)
commitb74cad8ae315c0b2db864cabbff52c27d3704396
tree913349ccc11256bc9e459896b08a3835c7e046d4
parent63a0937008286f1c5a72c55225fb48a65be99527
add live storage migration with vm migration

This allow to migrate disks on local storage  to a remote node storage.

When the target node start, a new volumes are created and exposed through qemu embedded nbd server.

qemu drive-mirror is launch on source vm for each disk with nbd server as target.

when drive-mirror reach 100% of 1 disk, we don't complete the block jobs and begin mirror of next disk.
(mirroring are parralel, but we try to mirroring them 1 by 1 to avoid storage && network overload)

Then we live migrate the vm to destination node. (drive-mirror still occur at the same time).

We the vm is livemigrate (source vm paused, target vm pause), we complete the block jobs mirror.

When is done we stop the source vm and resume the target vm

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
PVE/API2/Qemu.pm
PVE/QemuMigrate.pm