linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Bug: File-corruption when reading from network-filesystem
@ 2004-10-20 13:11 Thomas Lenherr
  0 siblings, 0 replies; only message in thread
From: Thomas Lenherr @ 2004-10-20 13:11 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 2671 bytes --]

Hi,

I've got some files (9 x ~200mB) on a server with nfs and smb installed 
and built the md5sums of these files on the server itself. Then I 
mounted the nfs on my workstation and let it check the md5sums of these 
files: something about 7/9 did not match. Then i just started md5sum 
again and let it check again the same files, the result: all md5sums 
matched! (And I saw on my network monitor there was almost load on the 
network as the files were still cached locally so it had only to check 
if they changed) (fyi: I got 2gB ram).
Then I made the same again with smbfs: i mounted the shares on my 
workstation, ran md5sum and got something like 3/9 unmatched files, ran 
it again and everything matched (again: the second time i got almost no 
transfer).
Then I tested the local filesystem (so i copied files from local to 
local and so on) and everything was fine.
In my next test i copied 4 files from the nfs on my local drive and let 
them check (3/4 did not match) and repeating this check had always the 
same result: always the same 3 files did not match and always the same 
file did match, so it seems, they really were saved that way. Then I 
deleted these local files, started cp again (this time it did not 
transfer much => cache) and made the check again: all files were ok! 
(same with smb)

BTW: I checked the server with an other workstation and everything went 
fine, so the server seems to be ok.

BTW2: When I do not mount the smbfs, but rather use smbclient to get the 
files they were always ok.

So it seems the files are transferred and cached correct on the client, 
but it's somehow badly read if it's not already cached...

Here some infos about my systems:
workstation:
- kernel vanilla 2.6.9 (on a gentoo-system) (not tainted)
- motherboard: asus pc-dl deluxe (bios version 1007)
- dual xeon 3.06ghz
- 2gb non-ecc ram (made a memtest)
- nfsv3 (tried as modul and built-in)

server:
- kernel vanilla 2.6.8.1 (on a gentoo-system) (did not update because it 
seems, the error is on the workstation)
- pII 400mhz
- 320mB non-ecc ram
- nfsv3 (built-in)
- smb 3.0.2a


I hope this is enough information... else just tell me what you need to 
know....

One last thing: I tried the whole thing from a knoppix 3.4 (kernel 
2.6.?) once from my workstation and once again from a third pc (beneath 
the server and my workstation):
same result: everything went fine from the third pc, but with the same 
knoppix on my workstation i got the results with the caching: when i 
accessed the files the second time everything was fine...
So I _think_ it must be some kind of a hardware-dependent kernel-bug of 
the 2.6 :(

anyway, TIA

Thomas Lenherr

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 256 bytes --]

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

only message in thread, other threads:[~2004-10-20 13:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-20 13:11 Bug: File-corruption when reading from network-filesystem Thomas Lenherr

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).