Page 1 of 1

FTP-2GB file

Posted: Tue Jun 08, 2010 1:30 am
by jyothisdasms
I want to FTP a 2GB file from 7.5 to 8.1 server.When i used ftp command only 1 GB is getting transfered.Can any one help me in this?

Posted: Tue Jun 08, 2010 1:33 am
by ArndW
What is your OS and what is your system or file system's limit for file size? If you manually start a FTP command to get the file, does it come over correctly? Are there any FTP warning or error messages generated?

Posted: Tue Jun 08, 2010 1:59 am
by jyothisdasms
OS is Unix.The file size is not exceeding the file system's limit.When i used FTP command in putty ,the following error messages are coming.



"Error Writing File : Error 0"

"Abor Command Successfull"

Posted: Tue Jun 08, 2010 2:09 am
by ArndW
Do you have enough space in your destination directory? Try adding "TRACE ON" in your FTP command to see if you get more debugging information from the program.

Posted: Tue Jun 08, 2010 3:43 am
by jyothisdasms
I gave the Trace On command as mentioned below

ftp>Put file name Trace On

Result is
PORT Command SuccessfulOpening Data connection for Trace
Error Writing file : Error 0
ABOR command Successful

Then i am geting 1gb of the file instead of 2gb
Is this what you explained? or anything else i have to do?

Thanks in Advance

Posted: Tue Jun 08, 2010 3:47 am
by ArndW
on a PUT command my guess remains that you don't have enough room in the target directory. What type of UNIX do you have and are both systems running the same OS main version?

Posted: Tue Jun 08, 2010 5:49 am
by munch9
The size may not be exceeding the file system limit but it may be exceeding the users limit.

Log on to the destination machine using the same id as you do when running the FTP and enter the command. ulimit -a

This will show if the user is limited to the size of file they can create. Post the o/p here if you are unsure.

Posted: Wed Jun 09, 2010 2:06 am
by jyothisdasms
I used the command ulimit -a and i am getting the o/p as

Time- Unlimited
file(Blocks)-2097151
data(Kbytes)-131072
Stack(Kbytes)-32768
memory(Kbytes)-32768
Coredump(blocks)-2097151
nofiles(descriptors)-10240

What does it mean?Cant i transfer a file of size > 131072KB?
Please help me to figure it out

Thanks in Advance!

Posted: Wed Jun 09, 2010 3:46 am
by ArndW
I think that Munch9 has found the cause of your problem. If you are getting 1Gb and divide that by 2097151 that works out to a block size of 512 (a common block size for many UNIX and file system variants). Get your administrator to change that user's maximum file size.

Posted: Wed Jun 09, 2010 6:13 am
by munch9
jyothisdasms, I can't see all of ArndW's response so he may have already covered it but yes, this is the issue.

You need your unix admin to increase the file size limit.
As you have already created the file on the 7.5 server just check the ulimit of that user and make the user on the 8.1 machine the same.

Posted: Wed Jun 09, 2010 9:16 am
by jyothisdasms
Thank you guys

You are right..In 7.5 server file size limit is 'Unlimited'.That is why i am able to transfer files in that one .In 8.1 i have only limited file size as you said.

Posted: Wed Jun 09, 2010 4:16 pm
by ray.wurlod
The limit is not in DataStage - it's in UNIX, which is why you can address the problem with the UNIX ulimit command.