2002-05-24 16:44:29

by Dan Yocum

[permalink] [raw]
Subject: Re: Null characters in files on NFS mounted volume....

Just an update - the null characters problem hasn't cropped up again, and I
haven't done anything to "fix" the problem, either - the mounts are still
'soft', etc.

I'm about ready to declare it a non-reproducable network error and nothing
to do with NFS, but if it turns up again, I'll let you know.

Thanks,
Dan

Ion Badulescu wrote:
>
> On Tue, 14 May 2002 09:41:39 -0500, Dan Yocum <[email protected]> wrote:
> >> > This is an intermitent problem: When attempting to read a file (any file)
> >> > on an NFS mounted volume, there appear to be "holes" in the file filled with
> >> > ASCII NULL characters. Reading the file on the local machines shows no such
> >> > holes, and other NFS clients don't see the holes, either. A simple
> >> > umount/remount solves the problem.
> >>
> > Neil Brown wrote:
> >> You wouldn't be using 'soft' mounts would you?
> >
> > yup, automounted with these options:
> >
> > -rw,grpid,soft,intr,quota,nodev,nosuid,timeo=10,retrans=3
>
> In that case let me ask you this: is your application checking the return
> code of the read()? or are you using mmap() instead of read()?
>
> If read() returns zero-filled buffers without signalling an errors, it's
> a problem in the NFS client. That is, assumming it's not some bad interaction
> between XFS and the NFS server -- so try to clear up that possibility
> by mounting with the hard option.
>
> If you're using mmap(), then I don't even know how the system should tell
> you about the problem... I suppose it would be sending a SIGSEGV or SIGBUS
> signal, since it's ultimately a failing page fault, but I haven't tested it.
>
> > I suppose they could be hard.... I'll think about that.
>
> Yes, they _should_ be hard if you care about your data integrity.
>
> But that shouldn't stop us from fixing bugs in the 'soft' model, if they
> exist... which is why I'm asking you all these details. :-)
>
> Ion
>
> --
> It is better to keep your mouth shut and be thought a fool,
> than to open it and remove all doubt.





--
Dan Yocum
Sloan Digital Sky Survey, Fermilab 630.840.6509
[email protected], http://www.sdss.org
SDSS. Mapping the Universe.

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs


2002-05-24 21:34:56

by Ion Badulescu

[permalink] [raw]
Subject: Re: Null characters in files on NFS mounted volume....

On Fri, 24 May 2002 11:44:27 -0500, Dan Yocum <[email protected]> wrote:
> Just an update - the null characters problem hasn't cropped up again, and I
> haven't done anything to "fix" the problem, either - the mounts are still
> 'soft', etc.
>
> I'm about ready to declare it a non-reproducable network error and nothing
> to do with NFS, but if it turns up again, I'll let you know.

With 'soft' mounts, it's not 'if', but 'when'...

Ion

--
It is better to keep your mouth shut and be thought a fool,
than to open it and remove all doubt.

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs