[pve-devel] [PATCH qemu-server 4/7] migrate : phase1 : skip sync_disk for external migration

Alexandre Derumier aderumier at odiso.com
Mon Oct 29 16:38:49 CET 2018


we don't need sync_disk as we mirror all disks through qemu
---
 PVE/QemuMigrate.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/QemuMigrate.pm b/PVE/QemuMigrate.pm
index ce43fc9..3e50f07 100644
--- a/PVE/QemuMigrate.pm
+++ b/PVE/QemuMigrate.pm
@@ -562,7 +562,7 @@ sub phase1 {
     $conf->{lock} = 'migrate';
     PVE::QemuConfig->write_config($vmid, $conf);
 
-    sync_disks($self, $vmid);
+    sync_disks($self, $vmid) if !$self->{migration_external};
 
 };
 
-- 
2.11.0




More information about the pve-devel mailing list