fix #1691: increase timeout in worker
A ZFS storage under heavy load can take more time.
This commit is contained in:
committed by
Thomas Lamprecht
parent
894b9ecc1e
commit
cf8ded6a96
@ -211,7 +211,7 @@ sub alloc_image {
|
|||||||
$class->zfs_create_zvol($scfg, $volname, $size);
|
$class->zfs_create_zvol($scfg, $volname, $size);
|
||||||
my $devname = "/dev/zvol/$scfg->{pool}/$volname";
|
my $devname = "/dev/zvol/$scfg->{pool}/$volname";
|
||||||
|
|
||||||
my $timeout = 10;
|
my $timeout = PVE::RPCEnvironment->is_worker() ? 60*5 : 10;
|
||||||
for (my $i = 1; $i <= $timeout; $i++) {
|
for (my $i = 1; $i <= $timeout; $i++) {
|
||||||
last if -b $devname;
|
last if -b $devname;
|
||||||
die "Timeout: no zvol after $timeout sec found.\n"
|
die "Timeout: no zvol after $timeout sec found.\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user