data corruption with ftp transfer


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users data corruption with ftp transfer
# 8  
Old 07-24-2003
I don't know it that's already solved, but if not, I wold see if your NICs have "ierrs". Sometimes data corruptions ocurrs in package transmitions. We had some problems here. Here folows an example:
# netstat -ni
Name Mtu Net/Dest Address Ipkts Ierrs Opkts Oerrs # netstat -ni
Name Mtu Net/Dest Address Ipkts Ierrs Opkts Oerrs Collis Queue
lo0 8232 127.0.0.0 127.0.0.1 124727 0 124727 0 0 0
ge0 1500 172.19.148.0 172.19.151.85 410543681 95593 221423296 0 0 0
ge1 1500 172.19.148.0 172.19.151.84 259411750 0 161355918 0 0 0
ge2 1500 10.152.231.0 10.152.231.150 258896122 0 496691048 0 0 0
hme0 1500 20.10.1.0 20.10.1.40 781 0 3 0 0 0


In ge0 (gigabit interface) we had some "ierrs" while "ftp'ing". That corrupted data. The FTP did not return any error, and completed successfull. But we had corruption problem. As we have two Nics in the same Network (Sun's IPMP thing) I forced my FTP connection to the other NIC (ge1) and then the data corruption problem was gone. Maybe this would help.

Htsubamoto
# 9  
Old 07-28-2003
A few trouble shooting points:

1) have you tried to Gzip or tar the file before transfer?

2) have you tried to copy it to another host to check if it is a platform issue?

3) Can you establish an rlogini/rcp relationship and do a direct copy from one to the other?

4) If possible can you perform a reset on the NIC card to see if that may clear any errors? Of course this may interrupt normal dataflow while it is resetting.
# 10  
Old 07-29-2003
First informations

Hi,

so first the problem is still alive Smilie But we have the right direction I think.

We were able to identify the problem, it looks like a linux - ia64 - NFS problem. We tried other platforms, and didn't get this error.

Only with our linux, ia64, fileserver is it possible to reporduce this problem.

At this moment our development is investigating the NFS code.

If someone is interested, I can public our solution for the problem, when our develoment send me the solution.

Regards
Alex
# 11  
Old 07-29-2003
MySQL Thanks

Hi again,

thank you to all of you very very much, with your hints, I was able to go in the right direction.

Next time, we will drink a beer together !!

Alex
# 12  
Old 07-29-2003
Yes please post your answer.

I am sure that someone else may have this problem and need a starting point...
# 13  
Old 08-04-2003
data corruption - THE ANSWER / SOLUTION

Hi all,

today I received the answer from our development related to the data corruption problem.
The solution is XFS, our used XFS has a bug, but see below the detailed answer :

--- snip ---

We have now found the cause of the data corruption.
This is original bug from XFS.

The special timing of the delete operation of a block and
flush operation from the memory leads to the data corruption.

To be prepared for next I/O operation, XFS pre-allocates the data
on the memory larger than what is actually needed.
Sometimes also unnecessary block are removed from pre-allocated data
on the memory to efficiently use the memory resources.
This happens when memory resource are fully utilized.

When this "pre-allocation" and "removal of unnecessary data"
occurs with certain timing, next data to be processed is written
in the area where just removed from the pre-allocation which shouldn't
happen. Since the data is written into the wrong place, the block
in the memory which should contain the data does not contain the
actual data which causes the data corruption when it is flushed to

Following conditions are needed to have the bug to aprear:

- Memory is fully loaded
- I/O is done via NFS
- Large file is being written continuously and concurrently
(magnitude of GB)

--- snap ---

may be someone has a similar problem, so thanks a lot to all and have a nice day.

Regards
Alex
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How to see the status of all the ftp put & get files logs and curent ftp transfer status ?

How to see the status of all the ftp put & get files logs and curent ftp transfer status if any active ftp running in the background ? (2 Replies)
Discussion started by: i4ismail
2 Replies

2. Shell Programming and Scripting

Using SFTP and FTP to transfer data from One Remote Server To Another

HI I need to write a script in 415univ server which should go to 534unix server and move the files from there to windows server. I am not able to get it bcoz sftp prompt is not allowing ftp command. Can some one plz help me Thanks in advance (3 Replies)
Discussion started by: himakiran9
3 Replies

3. Shell Programming and Scripting

Script for verification of Data corruption

Hi, I am from File system back ground and doing File system testing on Linux, I need script that scirpt that create the different multiple types of .txt, device file and then copy to mount point /mnt/ dir and then verify the created files and copied files, if created files and copied files are... (4 Replies)
Discussion started by: manish_tcs_hp
4 Replies

4. UNIX for Advanced & Expert Users

File system testing for Data corruption

Hi, could any one tell is there any test-suite or any idea How to do data corruption validation testing, means there is no any data corruption ? Regards Manish (1 Reply)
Discussion started by: manish_tcs_hp
1 Replies

5. Solaris

Data corruption

I have a solaris 5.6 on which oracle is installed. we have an alert file alert_net1.log now whenever any datacorruption happens we get the file id and block id in the above file. through this file and block id , we try to find out which table is corrupted and then try to... (1 Reply)
Discussion started by: asalman.qazi
1 Replies

6. UNIX for Advanced & Expert Users

rsync data corruption

Dear Peoples I am using the following command to transfer the files inbetween two servers, i am using this command in a crontab for doing it in every 1 hour on all days. rsync --stats --archive --verbose --compress --force --rsh=ssh --exclude-from=/root/cfg/mkt_scn.exclude... (1 Reply)
Discussion started by: thameema
1 Replies

7. UNIX for Dummies Questions & Answers

Keep alive packet for control session in ftp data transfer

I'm new to UNIX. We are using SunOS5.9. In order to maintain the control session active during large file tranfers in ftp, i like to send keep alive packets for every 10 seconds.I like to know the steps to be done to achieve this. Please help me guys.Thanks in advance. (0 Replies)
Discussion started by: rpr
0 Replies

8. Shell Programming and Scripting

ftp zip files corruption

Hi I have a zip file that I am ftping to another server. After I have ztped the file it is corrupt and cannot be opened by winzip. Can anyone throw any light on to why this would happen. I have no problems with sending the individual files, but when zipped into one file it becomes... (3 Replies)
Discussion started by: colesga
3 Replies

9. Solaris

ftp transfer

Hi ....I'm trying to ftp 2 pkgs SUNWqlc & SUNWqlcx since they were accidentally deleted from my servers. For one reaseon or the other my server is not loading the cdrom, so I mounted the cdrom on a differernt server & ftp's to it. I tried to get this pkg using the bin & I get an error message... (3 Replies)
Discussion started by: Remi
3 Replies

10. AIX

FTP - Data Transfer Limitations.

Hi, I have to transfer data from our production site to DR site(another city). I am using FTP for transfering data. But I am unable to get the same data transfer rate on AIX machines, one I am geting on windows machines. I want to know, is there any constraint on data transfer using FTP on AIX... (2 Replies)
Discussion started by: system-admin
2 Replies
Login or Register to Ask a Question