Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Stop broken NFS mounts from locking a directory in solaris 11.3

3596631Dec 13 2017 — edited Dec 15 2017

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.

This post has been answered by KernelSteve-Oracle on Dec 15 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 12 2018
Added on Dec 13 2017
3 comments
454 views