From cf8ded6a9654579929b43804034b15609d5c25e1 Mon Sep 17 00:00:00 2001 From: Wolfgang Link Date: Thu, 19 Apr 2018 08:39:51 +0200 Subject: [PATCH] fix #1691: increase timeout in worker A ZFS storage under heavy load can take more time. --- PVE/Storage/ZFSPoolPlugin.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/Storage/ZFSPoolPlugin.pm b/PVE/Storage/ZFSPoolPlugin.pm index 9680a94..7abf3c6 100644 --- a/PVE/Storage/ZFSPoolPlugin.pm +++ b/PVE/Storage/ZFSPoolPlugin.pm @@ -211,7 +211,7 @@ sub alloc_image { $class->zfs_create_zvol($scfg, $volname, $size); 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++) { last if -b $devname; die "Timeout: no zvol after $timeout sec found.\n"