]> git.proxmox.com Git - qemu-server.git/commit
migrate: add live-migration of replicated disks
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 17 Mar 2020 07:55:27 +0000 (08:55 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 24 Mar 2020 11:22:32 +0000 (12:22 +0100)
commit9b6efe436d177877145a5a6e8e548e2d54ad1a38
treebb0c528b2284cbe1c437babadbed3bbb4eeada21
parentb9f44d2773f897da5bbe7ee90990359fca77f162
migrate: add live-migration of replicated disks

with incremental drive-mirror and dirty-bitmap tracking.

1.) get replicated disks that are currently referenced by running VM
2.) add a block-dirty-bitmap to each of them
3.) replicate ALL replicated disks
4.) pass bitmaps from 2) to drive-mirror for disks from 1)
5.) skip replicated disks when cleaning up volumes on either source or
target

added error handling is just removing the bitmaps if an error occurs at
any point after 2, except when the handover to the target node has
already happened, since the bitmaps are cleaned up together with the
source VM in that case.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Tested-by: Stefan Reiter <s.reiter@proxmox.com>
PVE/QemuMigrate.pm
PVE/QemuServer.pm