linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* i/o still hangs when nfs server unavailable even with soft mount option
@ 2013-06-04  2:41 Brian Hawley
  0 siblings, 0 replies; only message in thread
From: Brian Hawley @ 2013-06-04  2:41 UTC (permalink / raw)
  To: linux-nfs


I've noticed that even with 'soft' mount specified as an option, i/o 
will continue to cache (after a server has gone away - or the clients 
links to it), at which point it hangs, instead of returning an i/o error 
as I would expect based on the man pages.

For our environment, speed is more important than reliability as when we 
lose access to one of the nfs mounts, we cease writing new data to it 
and journal it on the remaining available mounts.

Based on the descriptions in the various manuals, I would have thought 
'soft' mount would have given us an i/o error on any write (or read) 
which failed.

This however, isn't the case, unless 'sync' is also set.

I believe the reason for this has to do with somewhere in the cache 
handling.   Even when the mount is set to 'soft', without 'sync' the 
writes go to the cache, until the cache is full and the client wants to 
perform the actual write to the server.   It is at this time, that it 
stays stuck and never returns, irregardless of the timeo and retrans 
options, until the server (or links to it) have been restored.

If 'sync' is on, the i/o error occurs as expected.    However, 'sync' 
has a significant performance penalty, even if the server exports the 
filesystem as 'async'.

I wasn't able to find anything in the archives about this, but did find 
one other reference in 2010 to this same issue, but without any reply or 
comment about a solution.

Does anyone know how I might get this working, or could point me to the 
correct location in the kernel fs sources to effect my own change to the 
kernel handling?

Thanks,

-- Brian


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-06-04  3:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-04  2:41 i/o still hangs when nfs server unavailable even with soft mount option Brian Hawley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).