[pve-devel] [PATCH] fix move_disk on RBD
Wolfgang Link
w.link at proxmox.com
Thu Sep 3 13:12:13 CEST 2015
activating the disk when use RBD is necessary to have the given path.
---
PVE/QemuServer.pm | 2 ++
1 file changed, 2 insertions(+)
diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index be53a1e..42be37b 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -6276,6 +6276,8 @@ sub clone_disk {
$newvolid = PVE::Storage::vdisk_alloc($storecfg, $storeid, $newvmid, $format, undef, ($size/1024));
push @$newvollist, $newvolid;
+ PVE::Storage::activate_volumes($storecfg, $newvollist);
+
if (!$running || $snapname) {
qemu_img_convert($drive->{file}, $newvolid, $size, $snapname);
} else {
--
2.1.4
More information about the pve-devel
mailing list