Networking Forums

Networking Forums > Computer Networking > Linux Networking > problem with NFS timeout options

Reply
Thread Tools Display Modes

problem with NFS timeout options

 
 
Tasos Kotaras
Guest
Posts: n/a

 
      06-07-2005, 09:53 AM
Hello

I have great problem understanding the NFS mount options, and I wish
someone could clarify some things to me. Here is my situation:

I have a set of NFS servers, some up and running, others down, but I
don't know which is which. What I need, is a way to abort any mounting
effort from those servers that are dead as soon as possible (after, say,
1 second or so). My problem is that I cannot tune the timeout option
appropriately to get the desired behaviour. What happens, is that the
mount command hangs for some minutes before it eventually gives me an
error message.

Here is the command I used:

mount dead_server:/dir /mnt/dir -o soft,timeo=10,intr,retrans=0,retry=1

Now, according to the man pages, 'timeo' and 'retrans' settings should
have forced mount to terminate after 1 second. Otherwise, 'retry' option
should have taken over and stopped mount after one minute. Nevertheless,
neither happened.

I wonder what I understand wrong. Any ideas? By the way, is there a way
to test whether an NFS server is down, so that I don't try to mount from
it in the first place?


Tasos Kotaras
Senior Telecom Engineer
Intracom S.A.
Greece
 
Reply With Quote
 
 
 
 
Tim Kelley
Guest
Posts: n/a

 
      06-08-2005, 08:11 AM
Tasos Kotaras wrote:

> Here is the command I used:
>
> mount dead_server:/dir /mnt/dir -o soft,timeo=10,intr,retrans=0,retry=1
>
> Now, according to the man pages, 'timeo' and 'retrans' settings should
> have forced mount to terminate after 1 second. Otherwise, 'retry' option
> should have taken over and stopped mount after one minute. Nevertheless,
> neither happened.


Really you want to use "hard", not soft. this will cause a process to hang
if it tries to access a file on unavailable nfs mount - normally this is
what you want.

> I wonder what I understand wrong. Any ideas? By the way, is there a way
> to test whether an NFS server is down, so that I don't try to mount from
> it in the first place?


"showmount --exports hostname"

or you can just use the automounter to avoid all this.
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Configure ARP-Request-Timeout? (NOT Cache-Timeout!) Mario lzteM Linux Networking 0 07-28-2008 09:41 AM
Network timeout estimation Options dondora Linux Networking 0 11-17-2007 08:28 AM
Wanadoo timeout problem this morning..? Ivor Jones Broadband 2 04-22-2006 11:16 PM
Part of network has a internet timeout problem news.losch.net Network Routers 6 12-19-2005 02:08 PM
Strange VPN timeout problem. Need help. Nate Windows Networking 0 10-12-2004 03:22 AM



1 2 3 4 5 6 7 8 9 10 11