From a2a4c341d307e8bb4ed14e9eadcae49b48fe307c Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 16 Feb 2019 12:11:45 +0000 Subject: [PATCH] Use NFSv4 over TCP for NFS mounts --- cookbooks/nfs/recipes/default.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cookbooks/nfs/recipes/default.rb b/cookbooks/nfs/recipes/default.rb index ff37b7b61..6c39c9a67 100644 --- a/cookbooks/nfs/recipes/default.rb +++ b/cookbooks/nfs/recipes/default.rb @@ -21,9 +21,9 @@ package "nfs-common" node[:nfs].each do |mountpoint, details| mount_options = if details[:readonly] - "ro,bg,soft,udp,rsize=8192,wsize=8192,nfsvers=3" + "ro,bg,soft,tcp,rsize=8192,wsize=8192,nfsvers=4" else - "rw,bg,udp,rsize=8192,wsize=8192,nfsvers=3" + "rw,bg,tcp,rsize=8192,wsize=8192,nfsvers=4" end directory mountpoint do -- 2.39.5