[pve-devel] applied: [PATCH ha-manager] vm resource: add "with-local-disks" for replicated migrate
Thomas Lamprecht
t.lamprecht at proxmox.com
Thu May 14 10:32:58 CEST 2020
We do not need passing a target storage as the identity mapping
prefers replicated storage for a replicated disks already, and other
cases do not make sense anyway as they wouldn't work for HA
recovery..
We probably want to check the "really only replicated OK migrations"
in the respective API code paths for the "ha" RPC environment case,
though.
Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
fixes #2734
src/PVE/HA/Resources/PVEVM.pm | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/PVE/HA/Resources/PVEVM.pm b/src/PVE/HA/Resources/PVEVM.pm
index 2e1698f..58c83e0 100644
--- a/src/PVE/HA/Resources/PVEVM.pm
+++ b/src/PVE/HA/Resources/PVEVM.pm
@@ -108,6 +108,7 @@ sub migrate {
# different host have the same hardware, so this can be fine, and qemu
# knows when not, so can only win here
force => 1,
+ 'with-local-disks' => 1,
target => $target,
online => $online,
};
--
2.20.1
More information about the pve-devel
mailing list