nfs-server silent data corruption

Mike Tancsa mike at sentex.net
Wed Apr 23 01:08:29 UTC 2008


At 04:13 PM 4/22/2008, pluknet wrote:
>Hi, I have the same problem with data corruption (with nfe on nfs 
>server side),
>particularly when transferring large files.
>Maybe this is somehow associated with the topic.
>
>My simple test case:
>truncate -s 1000m bigfile
>^^ here I get zero-filed file
>cp bigfile /nfs/mounted
>^^ here I get not-at-all-zero-filed file, after uploading to nfs server
>
>nfs server on 8-CURRENT as of Apr 17
>nfs client on 7.0-STABLE as of Apr 12

Hi,

         On a RELENG_6 client and the same RELENG_7 (now ULE) server 
with nfe, all seems to work fine

[ns1]# mount /backup/
[ns1]# cp -p j2.txt /backup/
[ns1]# umount /backup/
[ns1]# mount /backup/
[ns1]# cp -p /backup/j2.txt /tmp/j2-copy.txt
[ns1]# md5 /tmp/j2-copy.txt
MD5 (/tmp/j2-copy.txt) = b0977dceb7b511bb8c542ac4f18c7128
[ns1]# md5 /tmp/j2.txt
MD5 (/tmp/j2.txt) = b0977dceb7b511bb8c542ac4f18c7128
[ns1]# cd /tmp
[ns1]# truncate -s 1000m bigfile
[ns1]# ls -lh bigfile
-rw-r--r--  1 root  wheel   1.0G Apr 22 21:03 bigfile
[ns1]# md5 bigfile
MD5 (bigfile) = e5c834fbdaa6bfd8eac5eb9404eefdd4
[ns1]# cp -p bigfile /backup/
[ns1]# umount /backup/
[ns1]# mount /backup/
[ns1]# cp -p /backup/bigfile /tmp/b2
[ns1]# md5 /tmp/b2
MD5 (/tmp/b2) = e5c834fbdaa6bfd8eac5eb9404eefdd4
[ns1]#

         ---Mike 



More information about the freebsd-stable mailing list