File size limit exceeded
I'm using RHEL 4.0 on ext3 fs. I'm trying to create a large file for some testing but at 2.0Gb it says, "File size limit exceeded."
ulimit -a gives: core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited file size (blocks, -f) unlimited pending signals (-i) 1024 max locked memory (kbytes, -l) 32 max memory size (kbytes, -m) unlimited open files (-n) 1024 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 stack size (kbytes, -s) 10240 cpu time (seconds, -t) unlimited max user processes (-u) 8188 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited Is it possible to create files larger than 2.0GB? Thanks in advance! |
Check your /etc/security/limits.conf file for a fsize (file size limit) line, if present then remove the line or comment(#) the line out.
Yes it is possible to create files larger then 2GB with ext3, it is a bit old but see; http://www.suse.de/~aj/linux_lfs.html Scrolldown to: Maximum On-Disk Sizes of the Filesystems |
Local mount or samba ???. If the latter maybe have a look at this.
|
fsize is already commented out, everything in that file is commented out. And i'm not using samba. How do i go about getting past this limit?
|
You should not have this problem.......... but then again this just might be a quota or LVM problem???
|
How can i fix it? I really need to know...
|
This was a problem for the older distros but shouldn't be with RHEL 4 as that's pretty new. Type in 'quota -v' to see if you are having quotas enabled.
-twantrd |
quota -v gives me nothing. Do i need to enable anything, if so what?
Thanks. |
Its possible to create files larger then 2GB in ext3 filesystem. Can you send following output ?
mount ulimit -Ha ulimit -Sa Directory path name where you are creating the file ? uname -a |
Output of the commands you requested is below:
[dev@localhost sidra-sbss]$ pwd /home/dev/sidra-sbss [dev@localhost sidra-sbss]$ mount /dev/sda3 on / type ext3 (rw) none on /proc type proc (rw) none on /sys type sysfs (rw) none on /dev/pts type devpts (rw,gid=5,mode=620) usbfs on /proc/bus/usb type usbfs (rw) /dev/sda1 on /boot type ext3 (rw) none on /dev/shm type tmpfs (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) [dev@localhost sidra-sbss]$ ulimit -Ha core file size (blocks, -c) unlimited data seg size (kbytes, -d) unlimited file size (blocks, -f) unlimited pending signals (-i) 1024 max locked memory (kbytes, -l) 32 max memory size (kbytes, -m) unlimited open files (-n) 1024 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 stack size (kbytes, -s) unlimited cpu time (seconds, -t) unlimited max user processes (-u) 8188 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited [dev@localhost sidra-sbss]$ ulimit -Sa core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited file size (blocks, -f) unlimited pending signals (-i) 1024 max locked memory (kbytes, -l) 32 max memory size (kbytes, -m) unlimited open files (-n) 1024 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 stack size (kbytes, -s) 10240 cpu time (seconds, -t) unlimited max user processes (-u) 8188 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited [dev@localhost sidra-sbss]$ uname -a Linux localhost.localdomain 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:27:17 EDT 2006 i686 i686 i386 GNU/Linux What should be done? Thanks in advance... |
Try do this add following line to /etc/security/limits.conf
dev - fsize unlimited Since dev is the user from where you are creating the file right ? Logout from the system Login back on the system Try creating file using root and then using dev .. check if it works. |
It doesn't work, i typed it exactly as you wrote it
dev - fsize unlimited logged out and logged back in, no luck... |
Did you tried creating the file using root ?
and please type the exact error you are getting and how you are creating the file ? Thanks |
I tried creating the file as root as well. I get an error saying: "File size limit exceeded"
I have a c program that writes to a file in an infinite loop. It gets terminated when the file reaches 2.0GB. What to do? |
I am not sure how the program creates the file. But error looks like related to ulimit for the user who is owning that process while its running on system.
Please try create file like this , let us see if it creates or not.This will run as user running the current shell. Please try using root as well as dev. dd if=/dev/zero of=/testfile bs=1024 count=2752512 |
All times are GMT -5. The time now is 04:27 PM. |