[pve-devel] [PATCH qemu-server, container v2 0/6] migration: don't scan all storages, fail on aliases

Aaron Lauterer a.lauterer at proxmox.com
Fri May 12 14:40:37 CEST 2023

v1 was the series: avoid migrating disk images multiple times

We decided to take a different approach to avoid migrating potentially
aliased disk images / volumes in a migration.

Do not scan the storages for potential images belonging to the guest.
Only migrate images referenced in the config. This made it necessary to
add steps that used to be covered by the initial storage scan.
Especially pending changes need to be handled explicitly.

The patches are split in two parts for each repo, first remove the scan
of all storages, secondly we check for aliases and fail.

Due to the hard fail, this series is intended for Proxmox VE 8!

More details in the patches themselves.

qemu-server: Aaron Lauterer (4):
  migration: only migrate disks used by the guest
  tests: add migration test for pending disk
  migration: fail when aliased volume is detected
  tests: add migration alias check

 PVE/QemuMigrate.pm                    |  81 ++++++++--------
 test/MigrationTest/QemuMigrateMock.pm |  10 ++
 test/run_qemu_migrate_tests.pl        | 132 ++++++++++++++++++++++++--
 3 files changed, 173 insertions(+), 50 deletions(-)

container: Aaron Lauterer (2):
  migration: only migrate volumes used by the guest
  migration: fail when aliased volume is detected

 src/PVE/LXC/Migrate.pm | 56 ++++++++++++++++++++----------------------
 1 file changed, 26 insertions(+), 30 deletions(-)


More information about the pve-devel mailing list