1827809 Members
1961 Online
109969 Solutions
New Discussion

ftp show : short write

 
SOLVED
Go to solution
Edwin Ruiz_2
Super Advisor

ftp show : short write

Hi:

I am trasfering one archive from ORACLE(exports ORACLE) size 9 GB, but when i have 2 GB ftp cancel sending this error:

ftp> mget full*.dmp
mget fullOPERACTueJan20.dmp? y
227 Entering Passive Mode (172,21,0,96,205,104)
150 Opening BINARY mode data connection for fullOPERACTueJan20.dmp (2547218432 bytes).
fullOPERACTueJan20.dmp: short write
421 Service not available, remote server has closed connection
2147482736 bytes received in 246 secs (8.5e+03 Kbytes/sec)

do u have some idea.. pls help me
11 REPLIES 11
Martin P.J. Zinser
Honored Contributor
Solution

Re: ftp show : short write

Hello,

two things to check:

a.) Does the disk you want to transfer to have enought space?
b.) Does the target filesystem support "large" files (i.e. >2 GB)?

Greetings, Martin
Edwin Ruiz_2
Super Advisor

Re: ftp show : short write

how can i check file system support large files?
Vitaly Karasik_1
Honored Contributor

Re: ftp show : short write

are we speaking about linux?

if so, all moder fs (ext3, reiserfs, ...) support >2GB files

AFAIK, even ext2 with 2.4 kernel supports big files.

But I suggest you to split you archive anyway - probably some applications don't support big files


Rgds,
Vitaly
Edwin Ruiz_2
Super Advisor

Re: ftp show : short write

I have both, ext3 and ext2 with kernel 2.4 but ftp cant send archives more than 2 GB.
Martin P.J. Zinser
Honored Contributor

Re: ftp show : short write

Hello Edwin,

one way to make sure your file system supports that large files and has enough space is to create a file larger 2GB. One easy way to do so is

dd if=/dev/zero of=test.dat count=450000

Don't forget to remove test.dat after the test ;-)

Greetings, Martin

P.S. Creating the 2GB file takes a moment...
Michael Schulte zur Sur
Honored Contributor

Re: ftp show : short write

Hi,

this certainly looks like the 2^31-1 = 2147483647 bytes limit.

Michael
Stuart Browne
Honored Contributor

Re: ftp show : short write

I know the Filesystem can support it, as well as the OS, so this leaves the FTP server and client.

Try using something else, i.e. ncftp to rule out the client, or using a different protocol all together (you have ssh? use 'scp').
One long-haired git at your service...

Re: ftp show : short write

or 'split' and 'join' the file in 2Gb chunks.
Edwin Ruiz_2
Super Advisor

Re: ftp show : short write

I get this information when i run

dd if=/dev/zero of=test.dat count=450000


[root@salato-apl11 TIS]# dd if=/dev/zero of=test.dat count=450000
450000+0 records in
450000+0 records out


Is it that ok?

Martin P.J. Zinser
Honored Contributor

Re: ftp show : short write

Hello Edwin,

definitly, this proofs you do have enough space on the disk and the filesystem supports files >2GB conclusively. So now the next think to check/exchange is the ftp client/server as already suggested by others. Make sure you remove the test.dat or you will waste 2GB of disk space ;-)

All the best,

Martin
Edwin Ruiz_2
Super Advisor

Re: ftp show : short write

Perfect!

thanks