file size changed after SCP


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers file size changed after SCP
# 8  
Old 02-08-2008
So you're trying to transfer a file about 156 MB but only 11MB or so made it over. I have not seen a bdf command on Linux, I hope you are showing the disk space on the destination file system. I suspect that bdf was run on HP-UX. Could you just do a simple cp and let NFS transfer the file?

But as to what could cause your problem... maybe someone killed your process on one of the systems. Maybe a network problem happened. It's pretty much got to be one of those.

If NFS is not an option, maybe you could split the file in chunks and reassemble the chunks after the transfer. "split" can split and "cat" can reassemble.
# 9  
Old 02-08-2008
Thanks perebrabo...

So can i take like this ,In SCP we cannot transfer a large files ?.. If not, is there is any command that can do a transfer of large files ?...
# 10  
Old 02-08-2008
ftp will transfer files up to the limit imposed by the filesystems on both ends of the transaction. Normally you can expect up to 4GB will be okay.

EXACTLY how are you getting file sizes? Run q uuick test. Use ls -l on the source file before you copy. use ls -l on the destination file. bdf is NOT the same as ls -l.
You can also use a cksum.

Did you check to be sure the filesystem you were copying to had enough space for the new file?
# 11  
Old 02-08-2008
Thank you ..
Yes i am using ls -l to find the size of the file . The checksum is also different . Ya i do check the space in the system . It has enough spaces .
# 12  
Old 02-11-2008
156 MB is not an issue for scp, I've been dealing with 150-200 GB recently. So, since the checksum is different, it means that during the transmission, file gets filled with something, i.e. file size grows, is that right ? I'd think of network issue, or SSH protocol mismatch. Try sftp client and see if that solves the issue. Does the underlying network implements / uses MPLS ? I've seen malformed packets of such setup resulting in wrong checksums.
If possible, post the results of commands before and after file transfer, e.g. - "ls -la file-name, md5sum file-name"
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Ls directory size reporting byte size instead of file count

I have been searching both on Unix.com and Google and have not been able to find the answer to my question. I think it is partly because I can't come up with the right search terms. Recently, my virtual server switched storage devices and I think the problem may be related to that change.... (2 Replies)
Discussion started by: jmgibby
2 Replies

2. Shell Programming and Scripting

Script to echo "File permissions or ownership changed from required " when accidentally changed.

Hi All, I have to work in the late nights some times for server maintenance and in a hurry to complete I am accidentally changing ownership or permission of directories :( which have similar names ( /var in root and var of some other directory ).:confused: Can some one suggest me with the... (1 Reply)
Discussion started by: shiek.kaleem
1 Replies

3. Shell Programming and Scripting

Check file size before and after scp

Dears does anybody know how to check the file size on server A and server B before and after scp using KSH. Script should be on server A. I will be using it for the below mentioned scenario: I have written a code to fetch files from server A, move it onto server B compress it and save it on... (2 Replies)
Discussion started by: BrownBob
2 Replies

4. UNIX for Dummies Questions & Answers

scp shows size variation

Hi i have folder of 26 GB on server A and want to copy to server B .i used the below commands to check file size and scp copy du -h /folder : its shows 26G on server A from server B: scp -r user@serverA:/folder/* ./copying got initiated and i am checking the file size on server B... (7 Replies)
Discussion started by: rakeshkumar
7 Replies

5. Shell Programming and Scripting

Script to read file size and send email only if size > 0.

Hi Experts, I have a script like $ORACLE_HOME/bin/sqlplus username/password # << ENDSQL set pagesize 0 trim on feedback off verify off echo off newp none timing off set serveroutput on set heading off spool Schemaerrtmp.txt select ' TIMESTAMP COMPUTER NAME ... (5 Replies)
Discussion started by: welldone
5 Replies

6. Shell Programming and Scripting

The scripts not able to make the file to size 0, every times it go back to its original size

#!/bin/sh ########################################################################################################## #This script is being used for AOK application for cleaning up the .out files and zip it under logs directory. # IBM # Created #For pdocap201/pdoca202 .out files for AOK #1.... (0 Replies)
Discussion started by: mridul10_crj
0 Replies

7. Shell Programming and Scripting

File size changed

Hi I have many file initial size zero(empty) after some munipulation , one or more file will be greater than zero. I need to send those file names if they return to zero again. Ex. Initially the files are zero size Size filename 0 AAA 0 BBB 0 CCC 0 DDD... (1 Reply)
Discussion started by: Bluetoot
1 Replies

8. Solaris

command to find out total size of a specific file size (spread over the server)

hi all, in my server there are some specific application files which are spread through out the server... these are spread in folders..sub-folders..chid folders... please help me, how can i find the total size of these specific files in the server... (3 Replies)
Discussion started by: abhinov
3 Replies

9. UNIX for Dummies Questions & Answers

Who changed a file?

How can I tell what user last updated a file? (1 Reply)
Discussion started by: kirkm76
1 Replies

10. UNIX for Dummies Questions & Answers

Changed File Names From CD

Hi All: I'm having a problem with transferring files from a CD to my AIX machine. I don't know if I am using the mount command properly. My problem is that when I take a CD that I have burned on my PC over to my AIX machine, whent the CD is mounted the file names have been changed (a more thorough... (3 Replies)
Discussion started by: GoEagles
3 Replies
Login or Register to Ask a Question