mirror of
git://git.proxmox.com/git/qemu-server.git
synced 2025-01-06 13:17:56 +03:00
vzdump: increase timeout for attaching drives to 60 seconds
The default timeout for HMP commands is 5 seconds and while it should be rather fast to attach a new drive to QEMU, a system can be very busy during backup, so future-proof and increase to 60 seconds. Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
This commit is contained in:
parent
a0541b7149
commit
3281138ab7
@ -461,7 +461,7 @@ my $attach_tpmstate_drive = sub {
|
||||
|
||||
my $drive = "file=$task->{tpmpath},if=none,read-only=on,id=drive-tpmstate0-backup";
|
||||
$drive =~ s/\\/\\\\/g;
|
||||
my $ret = PVE::QemuServer::Monitor::hmp_cmd($vmid, "drive_add auto \"$drive\"");
|
||||
my $ret = PVE::QemuServer::Monitor::hmp_cmd($vmid, "drive_add auto \"$drive\"", 60);
|
||||
die "attaching TPM drive failed - $ret\n" if $ret !~ m/OK/s;
|
||||
};
|
||||
|
||||
@ -606,7 +606,7 @@ my sub attach_fleecing_images {
|
||||
# fleecing image when allocating.
|
||||
$drive .= ",size=$di->{size}" if $format eq 'raw';
|
||||
$drive =~ s/\\/\\\\/g;
|
||||
my $ret = PVE::QemuServer::Monitor::hmp_cmd($vmid, "drive_add auto \"$drive\"");
|
||||
my $ret = PVE::QemuServer::Monitor::hmp_cmd($vmid, "drive_add auto \"$drive\"", 60);
|
||||
die "attaching fleecing image $volid failed - $ret\n" if $ret !~ m/OK/s;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user