mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-09 03:18:16 +00:00
fix move_disk on RBD
activating the disk when use RBD is necessary to have the given path.
This commit is contained in:
parent
952e3ac30f
commit
1dbd6d30e0
@ -6276,6 +6276,8 @@ sub clone_disk {
|
|||||||
$newvolid = PVE::Storage::vdisk_alloc($storecfg, $storeid, $newvmid, $format, undef, ($size/1024));
|
$newvolid = PVE::Storage::vdisk_alloc($storecfg, $storeid, $newvmid, $format, undef, ($size/1024));
|
||||||
push @$newvollist, $newvolid;
|
push @$newvollist, $newvolid;
|
||||||
|
|
||||||
|
PVE::Storage::activate_volumes($storecfg, $newvollist);
|
||||||
|
|
||||||
if (!$running || $snapname) {
|
if (!$running || $snapname) {
|
||||||
qemu_img_convert($drive->{file}, $newvolid, $size, $snapname);
|
qemu_img_convert($drive->{file}, $newvolid, $size, $snapname);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user