Data from my nfs server:
zfs set share=name=opt_media,path=/opt/media,prot=nfs,sec=sys,root=iphostclent,public,rw=* rpool/media
Data from my nfs client:
mount -F nfs -o bg,soft,retry=5,timeo=5 iphostserver:/opt/media /opt/media
I use options:
bg
soft
retry=5
timeo=5
more info:
nfsstat -m
/opt/media from iphostserver:/opt/media
Flags: vers=4,proto=tcp,sec=sys,soft,printed,intr,link,symlink,acl,rsize=1048576,wsize=1048576,retrans=5,timeo=5
Attr cache: acregmin=3,acregmax=60,acdirmin=30,acdirmax=60
but, if I turn off my nfs server, in my nfs client the /opt/media/ directory is blocked.
add:
The problem are the applications, for example df -h it freezes, or an app that depends on the /opt/media/ directory, also it freezes, and this is because the nfs client is trying to reconnect infinitely, therefore the parameters bg, soft, retry = 5, timeo = 5 to stop retry, but it does not work.