cbones
asked on
Change ulimit to allow file transfer
Hello,
I'm trying to transfer a 23GB file back to my AIX box. AIX Version 5.3. I receive an error message which terminates the transfer. "A file cannot be larger than the value set by ulimit".
I am logged in as root. Can I change the value to allow the transfer?
Thank you.
I'm trying to transfer a 23GB file back to my AIX box. AIX Version 5.3. I receive an error message which terminates the transfer. "A file cannot be larger than the value set by ulimit".
I am logged in as root. Can I change the value to allow the transfer?
Thank you.
Hi,
first, run
lssec -f /etc/security/limits -s root -a fsize_hard
If you see "root fsize_hard=-1" then you can set your file size limit to "unlimited" by just issuing
ulimit -f unlimited
If the above "lssec" command returns no value or a value other than -1 issue
chsec -f /etc/security/limits -s root -a fsize_hard=-1
then use "ulimit -f unlimited" to set the limit to "unlimited".
Please be aware that if the target filesystem is "jfs" (as opposed to "jfs2") it must be enabled for large files, otherwise there is a hard 2 GB limit.
Check with
lsfs -q /mount/point
if "VFS" is "jfs" then "bf: true" must be displayed.
Please note that "bf" is a creation time option which cannot be set afterwards.
first, run
lssec -f /etc/security/limits -s root -a fsize_hard
If you see "root fsize_hard=-1" then you can set your file size limit to "unlimited" by just issuing
ulimit -f unlimited
If the above "lssec" command returns no value or a value other than -1 issue
chsec -f /etc/security/limits -s root -a fsize_hard=-1
then use "ulimit -f unlimited" to set the limit to "unlimited".
Please be aware that if the target filesystem is "jfs" (as opposed to "jfs2") it must be enabled for large files, otherwise there is a hard 2 GB limit.
Check with
lsfs -q /mount/point
if "VFS" is "jfs" then "bf: true" must be displayed.
Please note that "bf" is a creation time option which cannot be set afterwards.
ASKER
# ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 131072
stack(kbytes) 32768
memory(kbytes) unlimited
coredump(blocks) 2097151
nofiles(descriptors) 2000
#
file errors out around 1GB with the error.
What can I check?
Thank you.
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 131072
stack(kbytes) 32768
memory(kbytes) unlimited
coredump(blocks) 2097151
nofiles(descriptors) 2000
#
file errors out around 1GB with the error.
What can I check?
Thank you.
Did you check the jfs type and "bf" (see my comment)?
What do you see with
quota
?
What do you see with
quota
?
ASKER
VFS Size Options
jfs2 348127232 rw
(lv size: 348127232, fs size: 348127232, block size: 4096, sparse files: yes, inline log: no, inli
ne log size: 0, EAformat: v1, Quota: no, DMAPI: no, VIX: no)
#
jfs2 348127232 rw
(lv size: 348127232, fs size: 348127232, block size: 4096, sparse files: yes, inline log: no, inli
ne log size: 0, EAformat: v1, Quota: no, DMAPI: no, VIX: no)
#
Are you sure that it's "root" who performs the transfer?
Which transfer tool are you using? Which is the exact command?
Which transfer tool are you using? Which is the exact command?
ASKER
I am using ftp to do the transfer.
When I type whoami it returns root.
When I type whoami it returns root.
So you're doing this on AIX as root:
cd target_dir
ftp sourcehost
cd source_dir
get filename
right? If so, and if ulimit -f returns "unlimited" as you wrote, I can only assume a filesystem issue (corruption?), because everything should work just fine.
Is there something suspicious in
errpt | more
?
cd target_dir
ftp sourcehost
cd source_dir
get filename
right? If so, and if ulimit -f returns "unlimited" as you wrote, I can only assume a filesystem issue (corruption?), because everything should work just fine.
Is there something suspicious in
errpt | more
?
ASKER
I am trying to ftp a file to the server. I am doing an ftp to the aix box. Changing to the directory I want to place the file. Then doing a put to transfer the file to the box.
Nothing in the errpt that's unusual.
Nothing in the errpt that's unusual.
So you're doing this on the source machine
cd source_dir
ftp aix_server
(log in as root) <-- This is important!
cd target_dir
put filename
Right?
cd source_dir
ftp aix_server
(log in as root) <-- This is important!
cd target_dir
put filename
Right?
ASKER
That's correct.
Please make sure that the ulimit on AIX is indeed permanently set to unlimited by issuing
lssec -f /etc/security/limits -s root -a fsize
right after login and before issuing any ulimit command.
If it's still "-1" I must admit that I'm out of ideas.
lssec -f /etc/security/limits -s root -a fsize
right after login and before issuing any ulimit command.
If it's still "-1" I must admit that I'm out of ideas.
ASKER
Here is the output
# lssec -f /etc/security/limits -s root -a fsize
root fsize=
#
# lssec -f /etc/security/limits -s root -a fsize
root fsize=
#
Then:
lssec -f /etc/security/limits -s default -a fsize
If this gives an empty (or low) value too - are you setting root's fsize limit in the .profile?
Please remember that profiles are not executed under FTP!
lssec -f /etc/security/limits -s default -a fsize
If this gives an empty (or low) value too - are you setting root's fsize limit in the .profile?
Please remember that profiles are not executed under FTP!
ASKER
It did return an empty value. I am setting this from the command line. What do you mean in the profile?
# lssec -f /etc/security/limits -s default -a fsize
default fsize=
#
# lssec -f /etc/security/limits -s default -a fsize
default fsize=
#
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window