LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-16-2006, 04:52 AM   #1
PhillipHuang
Member
 
Registered: Aug 2006
Location: Shen Zhen
Distribution: Ubuntu 22.04
Posts: 199

Rep: Reputation: 33
Huge file issue of NFS


Two servers,
One is installed CentOS4.3(2.6.9-34), named "A";
The other is install RedHat7.3(2.4.19) named "B"

In "A", I used 'dd' command to create two huge files(38GB and 19GB) in '/test' directory:
# dd if=/dev/urandom of=/test/hugefile bs=10M count=3800
# dd if=/dev/urandom of=/test/hugefile2 bs=10M count=1900

"B" has a shared directory "shares",then I mount this "shares" to A's "NFS_Test":
# mount xxx.xxx.xxx.xxx:/shares /NFS_test

I wrote the following script to cp and compare files:

#!/bin/bash
# NFStest

#THIS WILL COPY $1 TO $2
#THEN COMPARE WITH DIFF, AND PUT THE RESULTS IN $3

#1ST COPY 1 TO 2
cp -v $1 $2 >> $3
sleep 100

#then compare them using diff
diff -s $1 $2 >> $3

while :
do
#then copy $2 to $1.tmp
cp -v $2 $1.tmp >>$3
sleep 100

#then compare $1 with $1.tmp
diff -s $1 $1.tmp >> $3

#then copy $1.tmp to $2
cp -v $1.tmp $2 >>$3
sleep 100

#then compare using diff
diff -s $1.tmp $2 >>$3

#then compare $1 and $2
diff -s $1 $2 >> $3
done

Here,
$1 is the source. (A: /test/hugefile, hugefile1)
$2 is the destination.(A: /NFS_test)
$3 is the log where everything is pumped into.

At this time. I run the script in two console simultaneously:

# ./NFStest /test/hugefile /NFS_test/hugefile.copy /nfstest.log

# ./NFStest /test/hugefile1 /NFS_test/hugefile1.copy /nfstest1.log

After more than two hours, I read the "nfstest1.log", it showed that hugefile1 and hugefile1.copy are different!

In the early test, I created a 160G file, and run the script in only one console, the result of 'diff' said them are same even this testing was running about a week!

How could this "diff" happen? Please help me.

Thanks and regards,
Phillip
 
Old 08-16-2006, 03:36 PM   #2
pk21
Member
 
Registered: Jun 2002
Location: Netherlands - Amsterdam
Distribution: RedHat 9
Posts: 549

Rep: Reputation: 30
Have no idea wat that nfs script is for, but RedHat7.3 is pretty old. It uses a 2.4 kernel and if this kernel doesn't support large files, then there probably is a limit of 2.1Gb. Maybe the 2.1Gb limit is the problem, you will have to check the file sizes on the redhat machine.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS file/dir disappear issue motor98 Linux - Networking 5 07-14-2005 04:50 PM
NFS file/dir disappear issue motor98 Solaris / OpenSolaris 2 05-17-2005 12:37 PM
NFS file/dir disappear issue motor98 Red Hat 1 05-17-2005 12:37 PM
NFS file/dir disappear issue motor98 Linux - Enterprise 2 05-16-2005 11:07 PM
Large tar file taking huge disk space in ext3 file system pcwulf Linux - General 2 10-20-2003 07:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration