LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 04-03-2007, 04:06 PM   #1
sidra
Member
 
Registered: Oct 2004
Location: USA
Distribution: Fedora Core 3, Red Hat 9, CentOS 4.2, Mandriva, Ret Hat Enterprise Linux 4.0
Posts: 116

Rep: Reputation: 15
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!
 
Old 04-03-2007, 05:01 PM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
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
 
Old 04-03-2007, 05:12 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,125

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Local mount or samba ???. If the latter maybe have a look at this.
 
Old 04-04-2007, 11:46 AM   #4
sidra
Member
 
Registered: Oct 2004
Location: USA
Distribution: Fedora Core 3, Red Hat 9, CentOS 4.2, Mandriva, Ret Hat Enterprise Linux 4.0
Posts: 116

Original Poster
Rep: Reputation: 15
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?
 
Old 04-04-2007, 12:29 PM   #5
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
You should not have this problem.......... but then again this just might be a quota or LVM problem???
 
Old 04-04-2007, 12:32 PM   #6
sidra
Member
 
Registered: Oct 2004
Location: USA
Distribution: Fedora Core 3, Red Hat 9, CentOS 4.2, Mandriva, Ret Hat Enterprise Linux 4.0
Posts: 116

Original Poster
Rep: Reputation: 15
How can i fix it? I really need to know...
 
Old 04-04-2007, 07:52 PM   #7
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
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
 
Old 04-05-2007, 10:55 AM   #8
sidra
Member
 
Registered: Oct 2004
Location: USA
Distribution: Fedora Core 3, Red Hat 9, CentOS 4.2, Mandriva, Ret Hat Enterprise Linux 4.0
Posts: 116

Original Poster
Rep: Reputation: 15
quota -v gives me nothing. Do i need to enable anything, if so what?

Thanks.
 
Old 04-09-2007, 11:01 AM   #9
freeindia
LQ Newbie
 
Registered: Mar 2007
Posts: 12

Rep: Reputation: 0
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
 
Old 04-09-2007, 12:16 PM   #10
sidra
Member
 
Registered: Oct 2004
Location: USA
Distribution: Fedora Core 3, Red Hat 9, CentOS 4.2, Mandriva, Ret Hat Enterprise Linux 4.0
Posts: 116

Original Poster
Rep: Reputation: 15
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...
 
Old 04-09-2007, 12:31 PM   #11
freeindia
LQ Newbie
 
Registered: Mar 2007
Posts: 12

Rep: Reputation: 0
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.
 
Old 04-09-2007, 12:42 PM   #12
sidra
Member
 
Registered: Oct 2004
Location: USA
Distribution: Fedora Core 3, Red Hat 9, CentOS 4.2, Mandriva, Ret Hat Enterprise Linux 4.0
Posts: 116

Original Poster
Rep: Reputation: 15
It doesn't work, i typed it exactly as you wrote it

dev - fsize unlimited

logged out and logged back in, no luck...
 
Old 04-09-2007, 12:48 PM   #13
freeindia
LQ Newbie
 
Registered: Mar 2007
Posts: 12

Rep: Reputation: 0
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
 
Old 04-09-2007, 12:53 PM   #14
sidra
Member
 
Registered: Oct 2004
Location: USA
Distribution: Fedora Core 3, Red Hat 9, CentOS 4.2, Mandriva, Ret Hat Enterprise Linux 4.0
Posts: 116

Original Poster
Rep: Reputation: 15
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?
 
Old 04-09-2007, 01:02 PM   #15
freeindia
LQ Newbie
 
Registered: Mar 2007
Posts: 12

Rep: Reputation: 0
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
File size limit exceeded debeus Slackware 4 11-07-2006 10:36 AM
File size limit exceeded wfernley Linux - Software 5 07-21-2006 03:31 PM
File size limit exceeded XaViaR Linux - General 4 09-21-2005 10:02 PM
file size limit exceeded mchitrakar Linux - General 2 10-12-2004 12:47 PM
File size limit exceeded... Faeroon Linux - General 20 01-02-2003 06:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 03:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration