Operating System - HP-UX
1833310 Members
2996 Online
110051 Solutions
New Discussion

Re: File copy problem FTP

 
Joe Kanakaraj
Advisor

File copy problem FTP

Hi,

I have to FTP a single database file of about 2.8 GB from a windows machine onto our d-class running HP UX 10.2.

THe problem is once the file is almost copied I get the message file size too large unable to copy. One of my collegues thinks it is due to the ulimit value in the kernel parameter. Honestly non of us know. Since it is a test run we are not critical but yet we need to get this set up one way or the other.

Can someone give the solution.

thankx
Unix is simple, but it takes a genius to understand the simplicity. - quoted Dennis Ritchie
5 REPLIES 5
Robert-Jan Goossens
Honored Contributor

Re: File copy problem FTP

Hi,

The default size of files in a 10.20 filesystem is below 2 GB.

To Change a file system to a large-files
filesystem.

# /usr/sbin/fsadm -F hfs -o largefiles /dev/vgXX/lvolX

Hope this helps,
Robert-Jan.
john korterman
Honored Contributor

Re: File copy problem FTP

Hi,
Robert-Jan is right but the filesystem may not be of type hfs. Better check first:
# fstyp
if it says "vxfs" then use this option for fsadm instead of "hfs".
You should also add the parameter "largefiles" as mount option for the file system in /etc/fstab, or you will get a mount error the next time you try to mount the filesystem.
You can also try first if it is possible to create a file bigger than 2GB in the filesystem in question: cd to the directory and:
# prealloc mybigfile 2200000000

regards,
John K.
it would be nice if you always got a second chance
Michael Schulte zur Sur
Honored Contributor

Re: File copy problem FTP

Hi Joseph,

is your problem solved?

greetings,

Michael
Joe Kanakaraj
Advisor

Re: File copy problem FTP

Sorry for the delay in replying guys. Got a little carried away with the solution. It worked fine. Thanks.

Unix is simple, but it takes a genius to understand the simplicity. - quoted Dennis Ritchie
Michael Schulte zur Sur
Honored Contributor

Re: File copy problem FTP

Hi Joseph,

would you please be so kind to award points to those, who helped you?

greetings,

Michael