]> git.proxmox.com Git - qemu-server.git/commit
close #2792: allow online migration with replicated snapshots
authorFiona Ebner <f.ebner@proxmox.com>
Wed, 18 Jan 2023 13:52:40 +0000 (14:52 +0100)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 27 Jan 2023 08:53:28 +0000 (09:53 +0100)
commit5cbf4d727df6095351eb80d508c3b7bf333a1968
tree353360e5e115c2429c6b68aeffbc6c81ff8cf873
parent252e2624dc1e2d1f4242734a7f7c34b918b7020c
close #2792: allow online migration with replicated snapshots

Since commit 9b6efe43 ("migrate: add live-migration of replicated
disks") live-migration with replicated volumes is possible. When
handling the replication, it is checked that all local volumes
previously detected as replicatable are actually replicated. So the
check if migration with snapshots is possible can just allow volumes
that are detected as replicatable.

Note that VM state files are also replicated.

If there is an invalid configuration with a non-replicatable volume or
state file and replication is enabled, then replication will fail, and
thus migration will fail early.

Trying to live-migrate to a non-replication target (needs --force)
will still fail if there are snapshots, because they are (correctly)
detected as non-replicated.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
PVE/QemuMigrate.pm
test/run_qemu_migrate_tests.pl