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

Re: [linux-lvm] xfs quota on lvm



On Wed, Jan 16, 2002 at 11:06:23AM +0100, Christophe Zwecker wrote:
> On Wed, 2002-01-16 at 08:15, Nathan Scott wrote:
> > On Tue, Jan 15, 2002 at 05:12:28PM +0100, Christophe Zwecker wrote:
> > > Hi,
> > > 
> > > Ive got alle volumes on linux RH with xfs and all except /  "lvmed".
> > > 
> > > I got quota enabled in kernel, xfs quota support too. Quota is enabled
> > > at mount. However when I do eduota -u user, I get only to change numbers
> > > on the nonlvm partition.
> > > 
> > > Is quota nonfunctional on lvm partitions ?
> > > 
> > 
> > Should work fine.  What does "repquota -vug /dev/XXX" give you
> > on the LVM devices when the filesystems are mounted?  (this'll
> > tell you whether quota is enabled at all on these devices).
> > If they are indeed enabled ("Accounting: ON; Enforcement: ON"
> > will be in the output) then try "strace setquota ..." to try
> > to diagnose further (look for quotactl syscalls).  setquota is
> > better than edquota for diagnosis because its not interactive,
> > but it interacts with the kernel in much the same way.
> 
> 
> I get this: 
> 
> [root bender /root]# repquota -vug /dev/bender/home 
> Not all specified mountpoints are using quota.
> 
> I got it like this in fstab:
> /dev/bender/home        /home                   xfs    
> defaults,usrquota,grpquota	  1 2
> 
> 
> /dev/sda2 works tho, its not lvm and as this in fstab:
> /dev/sda2               /                       xfs    
> defaults,usrquota,grpquota        1 1
> 
> while booting I can see this:
> XFS mounting filesystem sd(8,2)
> XFS: WARNING: quotacheck required on readonly filesystem.
> XFS: write access will be enabled during mount.
> XFS quotacheck sd(8,2): Please wait.
> XFS quotacheck sd(8,2): Done.
> VFS: Mounted root (xfs filesystem) readonly.
> Freeing unused kernel memory: 316k freed
> XFS mounting filesystem lvm(58,1)
> XFS quotacheck lvm(58,1): Please wait.
> XFS quotacheck lvm(58,1): Done.
> XFS mounting filesystem lvm(58,2)
> XFS quotacheck lvm(58,2): Please wait.
> XFS quotacheck lvm(58,2): Done.
> XFS mounting filesystem lvm(58,3)
> XFS quotacheck lvm(58,3): Please wait.
> XFS quotacheck lvm(58,3): Done.
> 
> any ideas ?

Hmm... from your boot info we can tell that quota is being
activated on all filesystems, but for some reason it looks
like the quotactl syscall is failing for these LVM devices
(but not the non-LVM device, which is wierd).

The strace output might be useful - could you send me that?

Another thing to try - if you create an ext2 filesystem on 
one of the LVM devices (might not be an option for you, I
know), and enable quota, does repquota work for that fs?
This data point would help to narrow down the number of
places where things might be going wrong.

cheers.

-- 
Nathan



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