We have adjusted the /etc/security/limits file to allow unlimited filesizes.
This is confirmed when using the 'ulimit -a' command, that is no limit on
file size.
[root@intpsrv tmp]# ulimit -a
core file size (blocks) 1048575
data seg size (kbytes) 131072
file size (blocks) unlimited
max memory size (kbytes) 32768
open files 2000
pipe size (512 bytes) 64
stack size (kbytes) 32768
cpu time (seconds) unlimited
max user processes 262144
virtual memory (kbytes) unlimited
Secondly, we are writing this file to a JFS file system was created with
'Large File Enabled' according to smit/smitty.
To test the file system, I used 'lmktemp' to create a 1 GB file and then
'cat' the file 3 times to create a 3 gig file.
[root@intpsrv tmp]# cat 1gig 1gig 1gig > 3gig
cat: 0652-054 Cannot write to output.
Error 0
cat: 0652-054 Cannot write to output.
A file cannot be larger than the value set by ulimit.
[root@intpsrv tmp]#
I did a Google search; but only found the two items listed above
(/etc/security/limits and 'Large File Enabled'). Is there something I
missed?
PS I'm an AIX newbie.
Thanks in advance.
>We are running a file server with AIX 4.3, however, we can't create a file
>that is > 2 GB in size.
>
>We have adjusted the /etc/security/limits file to allow unlimited filesizes.
>This is confirmed when using the 'ulimit -a' command, that is no limit to the file size
What program is creating the file? Check the version and date of that
program because that might be what is limiting the file size.
After changing the the /etc/security/limits you should reboot the machine
because any runing process does not know about the change.
HTH
Hajo
CATE/AIX
Originally, we were using wget (which has a 2 GB limit, I know)... we have
since switched over to ncftp. We tested it, and ncftp seems to work fine
downloading 2GB+ files to a Linux machine.
But, that aside, we were just testing the 2GB file limit with a simple 'cat'
of two 1GB files on the AIX machine and even that didn't work.
Something like:
cat 1gig 1gig 1gig > 3gig
cat: 0652-054 Cannot write to output.
Thanks,
Kane
Actually, our /etc/security/limits file was already preconfigured with
unlimited filesizes when it was first setup, and our filserver has been
rebooted several times since then. So I would assume that the running
processes already know about the updated values in the /etc/security/limits.
Is there any other place I might look?
Thanks,
Kane
Regards,
Sanjay Verma
Regards
Sanjay verma
Please log in as root or do a "su - root" and do the following
# Which level of aix are you runing
oslevel
# Which shell are you using
echo $SHELL
# What are your limits
ulimit -a
# What are your root user settings
lsuser root
# Is your filesystem really big file enabled
lsfs -q /dev/MyBigFilesystem
# You should see " ... bf: true"
# Does your fs has enough space free
df /dev/MyBigFilesystem
# Use cat for a test like in the following example
# Change into a directory onto your BigFS enabled FS
cat 500MBFILE > 3GBFILE
cat 500MBFILE >> 3GBFILE
cat 500MBFILE >> 3GBFILE
cat 500MBFILE >> 3GBFILE
cat 500MBFILE >> 3GBFILE
Please let us know about the output
HTH
Hajo
CATE/AIX
Thanks to everyone for your help. A couple of the reply-posts have
suggested that my shell might be at fault; so I tried to create 1 gig files
using the standard ksh. That seems to have been the cause of my problem; so
it is now solved.
To summ up: Bash on AIX = does not allow 'cat 1gig 1gig 1gig > 3gig', but
ksh is okay. Curiously, bash on Linux doesn't have such a problem.
Thanks again,
Kane