-----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
[2] autofs page

On Tue, Nov 12, 2013 at 6:25 PM, John R Pierce 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

--- 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.

Search Discussions

Discussion Posts


Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 5 of 9 | next ›
Discussion Overview
groupcentos @
postedNov 12, '13 at 11:18p
activeNov 14, '13 at 6:25p



site design / logo © 2021 Grokbase