Re: [linux-lvm] Can't mke2fs lv

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Feb 11, 2002  10:30 -0800, Marc MERLIN wrote:
> On Mon, Feb 11, 2002 at 07:09:28PM +0100, Heinz J . Mauelshagen wrote:
> > No, there's  an OS bug related  to the 2  GB file size limit  which causes
> > both your  problems. You must be  directly logged  in as 'root',  *no* 'su
> > root' in order to run the commands fine.
> 
> Mmmh, interesting.
> 
> Unfortunately, that's  not it,  the machine  doens't have  any users,  and I
> ssh'ed in as root

It could still be that the ssh process inherits the ulimit from its parent.
The real problem with this bug is that "ulimit -f" returns "unlimited", but
in fact it is really 2GB.  The user tools think 2GB is unlimited, but the
kernel thinks 4GB is unlimited.  This assumes you don't have a ulimit set
at some value less than 2GB.

> I've never had this problem before, it's on a 2.4.14 kernel with lvm

The problem existed between 2.4.10 and 2.4.18-pre somthing I think.  It
was a result of 2.4.10 moving block devices into the page cache, which
treated them like regular files, and ulimit applies to regular files.

> mke2fs 1.25 (20-Sep-2001)

If you have e2fsprogs 1.26, it should have a fix for this problem (it
tries to set the ulimit to 4GB instead of 2GB for you).  Please let me
know if this fixes your problem.  Note that this workaround will only
fix programs in e2fsprogs not any other tool which tries to read from
a raw device (dump or dd or pvmove perhaps).

I _thought_ that glibc-2.2 was not affected by this problem, but it
could be that if you have an old shell which uses the old getrlimit
syscall it will still break your system.

Cheers, Andreas
--
Andreas Dilger
http://sourceforge.net/projects/ext2resize/
http://www-mddsp.enel.ucalgary.ca/People/adilger/


_______________________________________________
linux-lvm mailing list
linux-lvm@sistina.com
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux