[linux-lvm] Again (still?): File size limit exceeded

lvm at xbits.de lvm at xbits.de
Wed Jan 16 18:22:01 UTC 2002


On Wed, 16 Jan 2002, Andreas Dilger wrote:

> On Jan 16, 2002  14:36 +0100, Axel Hinrichs wrote:
> > I'm using Kernel 2.4.17, LVM 1.0.1 and everything was fine. The biggest
> > used LV is 1.5GB and I used to have an 8GB standby LV (I was able to
> > create and format without problems). Now I just deleted and recreated this
> > 8GB LV and when I now try to format - reiserfs or ext2 - it I get the
> > error "File size limit exceeded". I read the thread about this last month
> > and checked my ulimits (even if they said this issue is fixed since
> > 2.4.17-pre-something):
> > 
> > # ulimit -H -a
> > core file size (blocks)     unlimited
> > data seg size (kbytes)      unlimited
> > file size (blocks)          unlimited
> > max locked memory (kbytes)  unlimited
> > max memory size (kbytes)    unlimited
> > open files                  1024
> > pipe size (512 bytes)       8
> > stack size (kbytes)         unlimited
> > cpu time (seconds)          unlimited
> > max user processes          unlimited
> > virtual memory (kbytes)     unlimited
> > 
> > Further tests leaded to the following: I'm able to format an 2GB
> > LV, but 2GB+1PE gives the above error.
> > 
> > Does anyone know why and how to correct?
> 
> Kernel + libc bug.  You need to log in directly as root (no "su",
> no "sudo") and you must not have any ulimits set.  Even if you try
> to set your ulimit to "unlimited" (and even if it shows "unlimited")
> it is really 2GB.
> 
> You can also upgrade to 2.4.18-pre2+ or glibc-2.2 to fix this.

Thanks for your helpful reply. Just one last short question: Until I can
upgrade my libc or my kernel, if I created this 2GB+ LV's on the console,
can I use them or should they generally be at most 2GB?

Many thanks in advance,
Axel





More information about the linux-lvm mailing list