]> git.proxmox.com Git - qemu-server.git/commitdiff
fix move_disk on RBD
authorWolfgang Link <w.link@proxmox.com>
Thu, 3 Sep 2015 11:12:13 +0000 (13:12 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Sun, 6 Sep 2015 09:05:51 +0000 (11:05 +0200)
activating the disk when use RBD is necessary to have the given path.

PVE/QemuServer.pm

index be53a1e15fdc6865886dfe30c9ff11c6c5a02205..42be37be56ddc0a46cb774928603ff7b60bfde67 100644 (file)
@@ -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 {