Hi there
I'm trying to set up my NFS mount options so that if my server goes down, the file access fails as immediately as possible. Instead it seems to hang forever. Currently I have the following:
rw,nolock,soft,intr,timeou=1,retrans=1
With these option I can get the mount either fail or succeed instantly which is great. But if the server goes down, and the client tries to access a file, or cd into the mount, it just hangs forever. Ideally it would also fail quickly. I am mounting via autofs files from a server that is not always turned on. Global warming and big electric bill!!
Any ideas welcome
Cheers
Charles
Charles
This is the way that NFS works ( or worked when I used it about 5 years back ) in the era of Solaris 2.6. Sorry.
What you could do is only mount the remote file system when you know when its up, and then use a script which pings the server first prior to mounting it.
Regards Keith
________________________________
From: main-bounces@lists.alug.org.uk on behalf of Charles Garcia-Tobin Sent: Fri 30/03/2007 4:58 AM To: ALUG Subject: [ALUG] Any NFS experts out there
Hi there
I'm trying to set up my NFS mount options so that if my server goes down, the file access fails as immediately as possible. Instead it seems to hang forever. Currently I have the following:
rw,nolock,soft,intr,timeou=1,retrans=1
With these option I can get the mount either fail or succeed instantly which is great. But if the server goes down, and the client tries to access a file, or cd into the mount, it just hangs forever. Ideally it would also fail quickly.
I am mounting via autofs files from a server that is not always turned on. Global warming and big electric bill!!
Any ideas welcome
Cheers
Charles
_______________________________________________ main@lists.alug.org.uk http://www.alug.org.uk/ http://lists.alug.org.uk/mailman/listinfo/main Unsubscribe? See message headers or the web site above!
Charles Garcia-Tobin charles@garciatobin.plus.com wrote:
I'm trying to set up my NFS mount options so that if my server goes down, the file access fails as immediately as possible. Instead it seems to hang forever. Currently I have the following: rw,nolock,soft,intr,timeou=1,retrans=1
I think the option is timeo, not timeou? Certainly, I had an NFS system working roughly as you describe about 10 years ago, but it did need all the NFS servers and clients to be running perfectly compatible software IIRC. These days, I'm using fuse and sshfs, which fails in a neater way.
Some software also handles failure badly, particularly if it is aware that there was or should be a filesystem there.
Good luck!
Thanks, that seems to work better with server death, and it is much simpler to set up.
Cheers
On Fri, 2007-03-30 at 00:56 +0100, MJ Ray wrote:
Charles Garcia-Tobin charles@garciatobin.plus.com wrote:
I'm trying to set up my NFS mount options so that if my server goes down, the file access fails as immediately as possible. Instead it seems to hang forever. Currently I have the following: rw,nolock,soft,intr,timeou=1,retrans=1
I think the option is timeo, not timeou? Certainly, I had an NFS system working roughly as you describe about 10 years ago, but it did need all the NFS servers and clients to be running perfectly compatible software IIRC. These days, I'm using fuse and sshfs, which fails in a neater way.
Some software also handles failure badly, particularly if it is aware that there was or should be a filesystem there.
Good luck!