> -----Original Message----- > From: Rita [mailto:rmorgan466 at gmail.com] > Sent: Tuesday, November 12, 2013 7:22 PM > To: CentOS mailing list > Subject: Re: [CentOS] NFS hard mount > > Yes, unmount the share and error to the client app. > Sounds like you want to have a combination of mounting with the intr flag and use autofs so that the file system is not mounted ALL the time, but not so soft as to loose data all the time. I have seen soft loose data reliably, were in the same environment (and same equipment) hard,intr does not loose data. My experience is that intr is useful in situations where servers go down/have link issues frequently, and autofs with short timeouts (~15s < timeout <~60s) makes those issues even less _visible_. It will not get you an automatic unmount of the share and error to the client app in the case of server down, but it will /allow/ you to terminate the client and unmount as needed IIRC.  nfs mounting page with thanks to zGreenfelder https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/5/html/Deployment_Guide/s1-nfs-client-config-options.html  autofs page https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/5/html/Deployment_Guide/s1-nfs-client-config-autofs.html > > > On Tue, Nov 12, 2013 at 6:25 PM, John R Pierce <pierce at hogranch.com> wrote: > > > On 11/12/2013 3:18 PM, Rita wrote: > > > Is there a tunable to set NFS hard mount time out? For instance, if the > > > server becomes unavailable for extended amount of time, say 1 hour. I > > would > > > like to timeout after 30 secs. > > > > timeout and do what, unmount the share, and error to the client app > > thats trying to do a read(),write(),open(),stat(),etc ? > > > > > > > > -- > > john r pierce 37N 122W > > somewhere on the middle of the left coast > > > > _______________________________________________ > > CentOS mailing list > > CentOS at centos.org > > http://lists.centos.org/mailman/listinfo/centos > > > > > > -- > --- Get your facts first, then you can distort them as you please.-- Even when this disclaimer is not here: I am not a contracting officer. I do not have authority to make or modify the terms of any contract.