[pve-devel] [PATCH 12/19] phase3 : don't destroy local copy

Alexandre Derumier aderumier at odiso.com
Wed Feb 22 14:33:36 CET 2017


Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 PVE/QemuMigrate.pm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/PVE/QemuMigrate.pm b/PVE/QemuMigrate.pm
index 13952cb..7bd0d6f 100644
--- a/PVE/QemuMigrate.pm
+++ b/PVE/QemuMigrate.pm
@@ -924,6 +924,8 @@ sub phase3 {
     my $volids = $self->{volumes};
     return if $self->{phase2errors};
 
+    return if $self->{opts}->{externalcluster};
+
     # destroy local copies
     foreach my $volid (@$volids) {
 	eval { PVE::Storage::vdisk_free($self->{storecfg}, $volid); };
-- 
2.1.4




More information about the pve-devel mailing list