Re: Data corruption over NFS in -current

From: Martin Cracauer <cracauer_at_cons.org>
Date: Wed, 11 Jan 2012 13:21:10 -0500
Stefan Bethke wrote on Wed, Jan 11, 2012 at 07:14:44PM +0100: 
> Am 11.01.2012 um 17:57 schrieb Martin Cracauer:
> 
> > I'm sorry for the unspecific bug report but I thought a heads-up is
> > better than none.
> > 
> > $ uname -a
> > FreeBSD wings.cons.org 10.0-CURRENT FreeBSD 10.0-CURRENT #2: Wed Dec
> > 28 12:19:21 EST 2011
> > cracauer_at_wings.cons.org:/usr/src/sys/amd64/compile/WINGS  amd64
> 
> I'm sure Rick will want to know which NFS version, which client code (default new code I'm assuming) and which mount options...

It's all default both in fstab and as reported by mount(8).

This is a diskless PXE boot but the mount affected (usr) is not the
root filesystem, so this should come in via fstab.

BTW, my /usr/ports is another mount so the corruption is cross-mount
(garbage from /usr/ports entering /usr).

Appending nfsstat output.

I am re-running things contiguously to see how reproducible this is.
This machine was recently updated from a -current almost a year old,
so it's its first time with the new NFS client code.

Martin

> > I see filesystem corruption on NFS filesystems here.  I am running a
> > heavy shellscript that is noodling around with ascii files assembling
> > them with awk and whatnot.  Some actions are concurrent with up to 21
> > forks doing full-CPU load scripting.  This machine is a K8 with a
> > total of 8 cores, diskless NFS and memory filesystem for /tmp.
> > 
> > I observe two problems:
> > - for no reason whatsoever, some files change from my 
> >  (user/group) cracauer/wheel to root/cracauer
> > - the same files will later be corrupted.  The beginning of the file
> >  is normal but then it has what looks like parts of /usr/ports,
> >  including our CVS files and binary junk, mostly zeros
> > 
> > I did do some ports building lately but not at the same time that this
> > problem manifested itself.  I speculate some ports blocks were still
> > resident in the filesystem buffer cache.
> > 
> > Server is Linux.
> > 
> > Martin
> > -- 
> > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> > Martin Cracauer <cracauer_at_cons.org>   http://www.cons.org/cracauer/
> > _______________________________________________
> > freebsd-current_at_freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-current
> > To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
> 
> -- 
> Stefan Bethke <stb_at_lassitu.de>   Fon +49 151 14070811
> 
> 
> 

-- 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Martin Cracauer <cracauer_at_cons.org>   http://www.cons.org/cracauer/

Received on Wed Jan 11 2012 - 17:21:12 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:23 UTC