[pve-devel] [PATCH] increase zfs default timeout to 30sec

Lauri Tirkkonen lauri at tuxera.com
Mon Mar 12 15:06:47 CET 2018


busy pools can easily take more than 5 seconds for eg. zfs create
---
 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 e864a58..7ba035f 100644
--- a/PVE/Storage/ZFSPoolPlugin.pm
+++ b/PVE/Storage/ZFSPoolPlugin.pm
@@ -167,7 +167,7 @@ sub path {
 sub zfs_request {
     my ($class, $scfg, $timeout, $method, @params) = @_;
 
-    my $default_timeout = PVE::RPCEnvironment->is_worker() ? 60*60 : 5;
+    my $default_timeout = PVE::RPCEnvironment->is_worker() ? 60*60 : 30;
 
     my $cmd = [];
 
-- 
2.16.2



More information about the pve-devel mailing list