]> git.proxmox.com Git - pve-container.git/commitdiff
fix bug #750: deactivate volumes to be sure there are no volumes active on the source...
authorWolfgang Link <w.link@proxmox.com>
Fri, 9 Oct 2015 12:13:53 +0000 (14:13 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 12 Oct 2015 11:54:03 +0000 (13:54 +0200)
debian/changelog
src/PVE/LXC/Migrate.pm

index 5c0180fb1f2e2c2945f1246a5e0e253c884595c6..045ddcf2b157cb782cf5efabf6ae5dea81aff68d 100644 (file)
@@ -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 <support@proxmox.com>  Sat, 10 Oct 2015 17:24:31 +0200
 
 pve-container (1.0-7) unstable; urgency=medium
index 1a51829c4228c89be1b100e51be9449c0c2eb86f..58e4ea22ba4eb79b9775a0ef3f14a828ce021b9d 100644 (file)
@@ -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);