Thanks for the detailed response. My problem is we have many NFS servers and clients. The client mounts to the servers using /net/serverA/dirA. When server A is decommissioned all the clients hand on `df`. I was wondering if there is a clean way to unmount the server instead of rebooting clients (100+ clients). I am try doing a lazy unmount but that doesn't seem to fix the problem. On Wed, Nov 13, 2013 at 12:58 PM, Denniston, Todd A CIV NAVSURFWARCENDIV Crane <todd.denniston at navy.mil> wrote: > > -----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[1] and use autofs[2] 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. > > [1] 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 > [2] 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. > > > > _______________________________________________ > 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.--