From c9bc5018d5086c0ba4c5b730109d694b5539c57d Mon Sep 17 00:00:00 2001 From: Wolfgang Link Date: Fri, 9 Oct 2015 14:13:53 +0200 Subject: [PATCH] fix bug #750: deactivate volumes to be sure there are no volumes active on the source node --- debian/changelog | 3 +++ src/PVE/LXC/Migrate.pm | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/debian/changelog b/debian/changelog index 5c0180f..045ddcf 100644 --- a/debian/changelog +++ b/debian/changelog @@ -6,6 +6,9 @@ pve-container (1.0-8) unstable; urgency=medium * fix bug #752: correct size of mount point after resize + * fix bug #750: deactivate volumes to be sure there are no volumes + are active on the source node + -- Proxmox Support Team Sat, 10 Oct 2015 17:24:31 +0200 pve-container (1.0-7) unstable; urgency=medium diff --git a/src/PVE/LXC/Migrate.pm b/src/PVE/LXC/Migrate.pm index 1a51829..58e4ea2 100644 --- a/src/PVE/LXC/Migrate.pm +++ b/src/PVE/LXC/Migrate.pm @@ -113,6 +113,10 @@ sub phase1 { PVE::LXC::umount_all($vmid, $self->{storecfg}, $conf); + #to be sure there are no active volumes + my $vollist = PVE::LXC::get_vm_volumes($conf); + PVE::Storage::deactivate_volumes($self->{storecfg}, $vollist); + # move config die "Failed to move config to node '$self->{node}' - rename failed: $!\n" if !rename($conffile, $newconffile); -- 2.39.2