LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 11-05-2005, 09:58 AM   #1
mijohnst
Member
 
Registered: Nov 2003
Location: Huntsville, AL
Distribution: RHEL, Solaris, OSX, SuSE
Posts: 419

Rep: Reputation: 31
File corruptions using NFS


This is a long shot, but I'm not sure where else to look. I'm hoping that someone here might have noticed this before.

I've been doing system backups of one of my servers weekly for about a year now using tar and gunzip. The file is then saved off onto an NFS share which is on a SAN. The problem that I just noticed is that about 40% of backup jobs are corrupt. When I try to un-gzip them it says that they are not recognized as gzip files.

I'm sure that it's something to do with NFS because I never once get this problem if I FTP the file to the NAS or if I save the file to a partition on a physical drive. Something in the NFS transfer changes the file because if I make a copy of the good gzip file then copy it to the SAN on the NFS mount I can do a 'diff' and it says that the file is different.

What could this be? Thanks!
 
Old 11-05-2005, 11:22 AM   #2
Moloko
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian
Posts: 729

Rep: Reputation: 30
What options do you use for the mount? In automounter I use: -rw,hard,intr,rsize=8192,wsize=8192,noatime. Besides this, do you use a hub or a switch?
 
Old 11-05-2005, 01:21 PM   #3
mijohnst
Member
 
Registered: Nov 2003
Location: Huntsville, AL
Distribution: RHEL, Solaris, OSX, SuSE
Posts: 419

Original Poster
Rep: Reputation: 31
Moloko, thanks for your response. What I have in my fstab file for that mount is


"192.168.1.2:/backup /mnt/backup nfs rw 0 0"


I'm not near that machine today, but I'm excited to use your options. Do you think that the
reason that I'm having the trouble is because of the way I had it set up?

I'm using a switch to connect the computers to the SAN. They are SMC 1000g switches.

Thanks again.

Last edited by mijohnst; 11-05-2005 at 01:33 PM.
 
Old 11-06-2005, 05:18 AM   #4
Moloko
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian
Posts: 729

Rep: Reputation: 30
The rsize, wsize might help, but I'm not sure. I haven't experienced any problems with NFS, but it's the only option I can think of right now.
 
Old 11-06-2005, 01:46 PM   #5
mijohnst
Member
 
Registered: Nov 2003
Location: Huntsville, AL
Distribution: RHEL, Solaris, OSX, SuSE
Posts: 419

Original Poster
Rep: Reputation: 31
Thanks for the try... That didn't fix my problem. About 40% of the time I move any tar file over to my SAN and bring it back I get this error:


gunzip: testfile.tgz: Invalid data -- format violated


Hum... Not sure what to do at this point...
 
Old 11-09-2005, 08:41 AM   #6
Moloko
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian
Posts: 729

Rep: Reputation: 30
Are you sure it isn't due to memory corruption (faulty memory banks)?
 
Old 11-09-2005, 10:34 AM   #7
mijohnst
Member
 
Registered: Nov 2003
Location: Huntsville, AL
Distribution: RHEL, Solaris, OSX, SuSE
Posts: 419

Original Poster
Rep: Reputation: 31
Moloko,

I don't think it is because the data that is being moved is coming from about 44 other nodes of which all have the same problem. As far as the SAN that is exporting the NFS we don't see this problem on anything else. We're starting to think it might be an issue with the SAN client software, but not sure yet. Thanks for the continuted input!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 and exports file DanielTan Linux - Networking 12 07-31-2005 11:32 AM
nfs a file shares ok via file mngr but not command line. Suse 9.1 acummings Linux - Networking 2 10-09-2004 02:23 PM
file owner on an NFS shishir Linux - Networking 4 11-30-2003 11:09 PM
Anyone else facing file corruptions on network? (samba + win) J_Szucs Linux - Networking 1 02-28-2003 12:42 AM
File Sharing with NFS graystarr Linux - Networking 1 01-14-2002 02:28 PM

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

All times are GMT -5. The time now is 05:08 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