LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   File size limit exceeded (https://www.linuxquestions.org/questions/red-hat-31/file-size-limit-exceeded-543083/)

sidra 04-03-2007 04:06 PM

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!

Lenard 04-03-2007 05:01 PM

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

syg00 04-03-2007 05:12 PM

Local mount or samba ???. If the latter maybe have a look at this.

sidra 04-04-2007 11:46 AM

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?

Lenard 04-04-2007 12:29 PM

You should not have this problem.......... but then again this just might be a quota or LVM problem???

sidra 04-04-2007 12:32 PM

How can i fix it? I really need to know...

twantrd 04-04-2007 07:52 PM

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

sidra 04-05-2007 10:55 AM

quota -v gives me nothing. Do i need to enable anything, if so what?

Thanks.

freeindia 04-09-2007 11:01 AM

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

sidra 04-09-2007 12:16 PM

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...

freeindia 04-09-2007 12:31 PM

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.

sidra 04-09-2007 12:42 PM

It doesn't work, i typed it exactly as you wrote it

dev - fsize unlimited

logged out and logged back in, no luck...

freeindia 04-09-2007 12:48 PM

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

sidra 04-09-2007 12:53 PM

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?

freeindia 04-09-2007 01:02 PM

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.