Skip to contentSkip to conversation

help with quota and LVM

linux-lvm Ben Snyder 2 participants 2 messages Aug 8, 2002

lore
Share & tools
lore

Ben Snyder

author
#0 lore raw

I'm running RedHat6.2 with kernel 2.2.19 and LVM 1.0.4 on ext2 file systems

I'm having problems with quota and LVM.

I can mount 2 different filesystems:
one is a plane-jane ext2 run-o-da-mill old-fashioned /dev/sda5 mount
to /data FS
the other is a logical volume /dev/vg/lv /data2

The data on them is identical, thanks to my friend rsync.

The problem is that I cannot get quotas to work on the logical volume (it *is* mounted with usrquota - I'm not that dumb). I run 'edquota ben', make my changes and save it and all is happy. Then I run 'edquota ben' again and the data is still there. However, whenever I run 'quota ben' I only get info for the non-lvm filesystem. If the non-lvm FS is not mounted, then I get 'none'.

I know quotas work on my system, they work on all of the other filesystems. Is there something I'm missing about quota and LVM? I *NEED* this to work, and help you can provide will be greatly appreciated.

Thanks in advance for feedback/replies/remarks/insults.

#1 lore raw
Quoted 3 lines · Ben Snyder

I'm running RedHat6.2 with kernel 2.2.19 and LVM 1.0.4 on ext2 file systems I'm having problems with quota and LVM.

As far as I know filesystem quotas have only something to do with
filesystem: it is independent of the underlaying block device (hard disk partition, or a LVM LV in your setup).

I remember having set up a LV (LVM version 1.0.4 if I recall correctly), built an ext3 filesystem on it, configured quotas as usual and it worked. Kernel version is 2.4.19-pre7aa2, with no other patches applied.

I have just tried to setup ext2 quotas over a LVM version 1.0.3 Logical Volume, and is working as expected. Kernel version here is 2.4.19-pre6aa1, and quota package is version 3.04-1. The procedure to set quotas is exactly as done with filesystems on normal disk partitions. In fact, the greatest problem for me has been a quota format mismatch between "quotacheck", "quotaon" and compiled kernel.

Hope it helps.

Signature · 2 lines
Jose Luis Domingo Lopez
Linux Registered User #189436     Debian Linux Woody (Linux 2.4.19-pre6aa1)