• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3380
  • Last Modified:

AIX ftp of files larger than 2Gb

Hi,

I am attempting to ftp (or copy) files (tar files but shouldnt matter) that are larger than 2Gb.
I can do this via ftp or via a "remote mount" from machine A to machine B.  

I made some attempts by adjusting the values in /etc/security/limits

However, these attempts and the adjustments have not been successful

Any thoughts, suggestions, etc would be appreciated.

Thanks
knel
0
knel1234
Asked:
knel1234
3 Solutions
 
woolmilkporcCommented:
Hi,
as a first step, looking at /etc/security limits is OK.
You must adjust the limits at the 'target' machine (the one you want to copy the files to).
Take care to modify both 'fsize' and 'fsize_hard' (value is in 512-byte blocks) and to logout/login for this to take effect.
If you made the changes for 'root', all involved processes must be recycled, e.g. sshd, or perhaps ftpd if not run via inetd.
wmp
0
 
gheistCommented:
I have had success with proftpd from http://www-03.ibm.com/systems/power/software/aix/linux/toolbox/alpha.html
You can try sftp or scp - kind of world moves encryption way.
0
 
gheistCommented:
This problem is present with most GNU tools using ./configure since until now they are unable to get using 64bit file functions in AIX
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
dfkeCommented:
You can remove the max file size limit of 2GB completely by editing /etc/security/limits. In the 'default' stanza change the value of fsize to -1. This sets the max file size to unlimited. You could also change this to some other value, less than 2GB, if you want.

default:
fsize = 2097151

Changing this to

default:
fsize = -1

This is fine however large-file enabled filesystems have poorer performance if they contain lots of small files so don't create them unless you need them.
0
 
woolmilkporcCommented:
Need to change fsize_hard, too!
0
 
gheistCommented:
fsize_hard -1 ...
0
 
knel1234Author Commented:
Thanks for all the input...
 
the actual isse was jfs vs jfs2.
I was filling in for someone and for whatever reason they had the target file system set to jsf(cant hold larger than 2Gb).  I changed the place that I copied to which was on a jfs2 (can hold greater than 2Gb)
 
knel
0
 
gheistCommented:
jfs1 has attribute that allows holding files >2GB
0
 
woolmilkporcCommented:
Yes, that's the bf=true attribute
It's been a long time since I saw the last jfs1, and even a much longer time since I saw the last jfs1 without bf=true (must have been some AIX 4.x filesystem in rootvg)

Glad you found the solution!

Cheers

wmp


0
 
gheistCommented:
This is a problem and solution - it forces you to create separate filesystem for /var/ftp with large files support.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now