[pve-devel] [PATCH qemu-server 2/2] increase timeout for QMP block_resize
Thomas Lamprecht
t.lamprecht at proxmox.com
Tue Mar 30 18:57:28 CEST 2021
On 30.03.21 17:59, Stefan Reiter wrote:
> In testing this usually completes almost immediately, but in theory this
> is a storage/IO operation and as such can take a bit to finish. It's
> certainly not unthinkable that it might take longer than the default *3
> seconds* we've given it so far. Make it a minute.
>
> Signed-off-by: Stefan Reiter <s.reiter at proxmox.com>
> ---
>
> Optional for the fix, but seems like a good idea.
>
> PVE/QemuServer.pm | 9 +++++++--
> 1 file changed, 7 insertions(+), 2 deletions(-)
>
> diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
> index 1c0b5c2..f9379f6 100644
> --- a/PVE/QemuServer.pm
> +++ b/PVE/QemuServer.pm
> @@ -4291,8 +4291,13 @@ sub qemu_block_resize {
> my $padding = (1024 - $size % 1024) % 1024;
> $size = $size + $padding;
>
> - mon_cmd($vmid, "block_resize", device => $deviceid, size => int($size));
> -
> + mon_cmd(
> + $vmid,
> + "block_resize",
> + device => $deviceid,
> + size => int($size),
> + timeout => 60,
> + );
> }
>
> sub qemu_volume_snapshot {
>
More information about the pve-devel
mailing list