lkml.org 
[lkml]   [2002]   [May]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: PROBLEM: knfsd misses occasional writes
On Thursday May 16, Sverker.Wiberg@uab.ericsson.se wrote:
> Neil Brown wrote:
> >
> > On Wednesday May 15, Sverker.Wiberg@uab.ericsson.se wrote:
> > >
> > > Hello everyone,
> > >
> > > When copying lots of small files from multiple NFS clients to a kNFSd
> > > filesystem (i.e. doing backup of a cluster), exported with `sync', I
> > > find that some few files (1 out of 1000) were silently truncated to zero
> ^^^^^^^^
> no errors reported
>
> > > size when checking locally with `ls' (the clients reported total
> > > success). With `asynch' instead, all files were correctly copied.
> >
> > How are you mounting the file systems on the clients?
> > The symptoms sound exactly like you are using "soft" mounts. "soft"
> > is a very bad mount option. Use "hard".
> >
> > If you aren't using "soft", let me know and I will look harder.
>
> Errrm, I am using "soft" mounts, as I (we) want the clients to survive
> server restarts.

What do you mean by "survive"? What you probably want is
hard,intr
so that clients will wait for the server to come back, but you can
interrupt processes successfully.

> But shouldn't those timeouts become errors over at the clients?

Yes... but "write" won't see an error. Only 'fsync' or maybe 'close',
and many applications ignore errors from these operations.

NeilBrown
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:22    [W:0.096 / U:0.944 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site