Discussion:
sftp and scp file size limit
Richard Labutis
2004-06-17 12:30:38 UTC
Permalink
why do I get the following message when trying to send
a file that is 3gb in size?

bigfile: Value too large to be stored in data type.

I am going from AIX to Linux

scp a file to itself works with no problems, but when
done over the network it fails.




__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail
Darren Tucker
2004-06-23 00:32:54 UTC
Permalink
Post by Richard Labutis
why do I get the following message when trying to send
a file that is 3gb in size?
bigfile: Value too large to be stored in data type.
I am going from AIX to Linux
scp a file to itself works with no problems, but when
done over the network it fails.
If you're using IBM's AIX OpenSSH packages then some versions of those
were compiled without large file support. I think the current ones are OK.

(It probably works locally because "scp file1 file2" becomes "cp file1
file2", if you want to really test it try "scp file1 localhost:file2" on
your AIX box).
--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.
Alex 'CAVE' Cernat
2004-06-21 07:14:21 UTC
Permalink
Post by Richard Labutis
why do I get the following message when trying to send
a file that is 3gb in size?
bigfile: Value too large to be stored in data type.
I am going from AIX to Linux
scp a file to itself works with no problems, but when
done over the network it fails.
when you copy locally cp is automatically invoked

maybe ssh/scp is not compiled with 64 bit file support, so the maximum
size of the file you can copy is about 2.4 G

check also if for both system you have support for large files
(sizeof(file_length) is 64 bits); i'm not sure about AIX, but any recent
version of linux allready has large files support enabled with default
kernel)

Alex

Loading...