[pve-devel] [PATCH qemu-server] allow disks on shared storages on replicated VMs
Wolfgang Bumiller
w.bumiller at proxmox.com
Tue Jun 27 15:00:06 CEST 2017
---
PVE/API2/Qemu.pm | 2 ++
1 file changed, 2 insertions(+)
diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm
index da5f5b1..eb7d6dd 100644
--- a/PVE/API2/Qemu.pm
+++ b/PVE/API2/Qemu.pm
@@ -972,6 +972,8 @@ my $update_vm_api = sub {
$format = (PVE::Storage::parse_volname($storecfg, $volid))[6];
}
return if PVE::Storage::storage_can_replicate($storecfg, $storeid, $format);
+ my $scfg = PVE::Storage::storage_config($storecfg, $storeid);
+ return if $scfg->{shared};
die "cannot add non-replicatable volume to a replicated VM\n";
};
--
2.11.0
More information about the pve-devel
mailing list