Linux LVM users
 help / color / mirror / Atom feed
* [linux-lvm] quota command does not work
@ 2004-04-13 15:17 Matthew Daubenspeck
  2004-04-14  8:39 ` Heinz Mauelshagen
  0 siblings, 1 reply; 4+ messages in thread
From: Matthew Daubenspeck @ 2004-04-13 15:17 UTC (permalink / raw)
  To: linux-lvm

I am using lvm2 with the following logical volume:

  --- Logical volume ---
  LV Name                /dev/nwlsd_vg/nwlsd_lv
  VG Name                nwlsd_vg
  LV UUID                jKXS7Q-2Bda-JpVG-Ba4I-Ocfr-6UyO-182Mek
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                55.91 GB
  Current LE             14312
  Segments               2
  Allocation             next free (default)
  Read ahead sectors     0
  Block device           254:0

I am trying to get quota's working on the system. The quotas themselves
are working, however, standard users cannot issue the quota command to
inspect their own specific information:

$ quota
quota: Can't stat() mounted device /dev/nwlsd_vg/nwlsd_lv: Permission
denied
Disk quotas for user mellofone (uid 1000): none

However, it does work for root:

$ quota mellofone
Disk quotas for user mellofone (uid 1000): 
     Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
/dev/nwlsd_vg/nwlsd_lv
                19364268*      0  100000            2019       0       0    0

This setup works on other volumes that do not use lvm. Any ideas what I
screwed up? Just as an FYI:

$ lvm version
  LVM version:     2.00.09 (2004-03-31)
  Library version: 1.00.08-ioctl (2004-02-27)
  Driver version:  4.1.0

Thanks.
-- 
  Matthew Daubenspeck
  http://www.oddprocess.org

11:09:30 up 23 days, 1:21, 1 user, load average: 0.02, 0.03, 0.00

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-lvm] quota command does not work
  2004-04-13 15:17 [linux-lvm] quota command does not work Matthew Daubenspeck
@ 2004-04-14  8:39 ` Heinz Mauelshagen
  2004-04-14 11:52   ` Christophe Saout
  0 siblings, 1 reply; 4+ messages in thread
From: Heinz Mauelshagen @ 2004-04-14  8:39 UTC (permalink / raw)
  To: Matthew Daubenspeck; +Cc: linux-lvm

On Tue, Apr 13, 2004 at 11:17:23AM -0400, Matthew Daubenspeck wrote:
> I am using lvm2 with the following logical volume:
> 
>   --- Logical volume ---
>   LV Name                /dev/nwlsd_vg/nwlsd_lv
>   VG Name                nwlsd_vg
>   LV UUID                jKXS7Q-2Bda-JpVG-Ba4I-Ocfr-6UyO-182Mek
>   LV Write Access        read/write
>   LV Status              available
>   # open                 1
>   LV Size                55.91 GB
>   Current LE             14312
>   Segments               2
>   Allocation             next free (default)
>   Read ahead sectors     0
>   Block device           254:0
> 
> I am trying to get quota's working on the system. The quotas themselves
> are working, however, standard users cannot issue the quota command to
> inspect their own specific information:
> 
> $ quota
> quota: Can't stat() mounted device /dev/nwlsd_vg/nwlsd_lv: Permission
> denied
> Disk quotas for user mellofone (uid 1000): none
> 
> However, it does work for root:
> 
> $ quota mellofone
> Disk quotas for user mellofone (uid 1000): 
>      Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
> /dev/nwlsd_vg/nwlsd_lv
>                 19364268*      0  100000            2019       0       0    0
> 
> This setup works on other volumes that do not use lvm. Any ideas what I
> screwed up? Just as an FYI:

chgrp disk /dev/mapper/*
chmod g=rw /dev/mapper/*

We need to fix that in dmlib (if not already done ;)

> 
> $ lvm version
>   LVM version:     2.00.09 (2004-03-31)
>   Library version: 1.00.08-ioctl (2004-02-27)
>   Driver version:  4.1.0
> 
> Thanks.
> -- 
>   Matthew Daubenspeck
>   http://www.oddprocess.org
> 
> 11:09:30 up 23 days, 1:21, 1 user, load average: 0.02, 0.03, 0.00
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

-- 

Regards,
Heinz    -- The LVM Guy --

*** Software bugs are stupid.
    Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen                                 Red Hat GmbH
Consulting Development Engineer                   Am Sonnenhang 11
                                                  56242 Marienrachdorf
                                                  Germany
Mauelshagen@RedHat.com                            +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-lvm] quota command does not work
  2004-04-14  8:39 ` Heinz Mauelshagen
@ 2004-04-14 11:52   ` Christophe Saout
  2004-04-14 12:05     ` Matthew Daubenspeck
  0 siblings, 1 reply; 4+ messages in thread
From: Christophe Saout @ 2004-04-14 11:52 UTC (permalink / raw)
  To: mauelshagen, LVM general discussion and development

Am Mi, den 14.04.2004 schrieb Heinz Mauelshagen um 10:39 Uhr +0200:

> > I am trying to get quota's working on the system. The quotas themselves
> > are working, however, standard users cannot issue the quota command to
> > inspect their own specific information:
> > 
> > $ quota
> > quota: Can't stat() mounted device /dev/nwlsd_vg/nwlsd_lv: Permission
> > denied
> > Disk quotas for user mellofone (uid 1000): none
>
> chgrp disk /dev/mapper/*
> chmod g=rw /dev/mapper/*
> 
> We need to fix that in dmlib (if not already done ;)

The problem seems to be the volume group directory which is set 700
here. Changing it to 755 fixes the problem for me, even if the device
nodes in /dev/mapper themselves are still 600.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-lvm] quota command does not work
  2004-04-14 11:52   ` Christophe Saout
@ 2004-04-14 12:05     ` Matthew Daubenspeck
  0 siblings, 0 replies; 4+ messages in thread
From: Matthew Daubenspeck @ 2004-04-14 12:05 UTC (permalink / raw)
  To: LVM general discussion and development

On Wed, Apr 14, 2004 at 01:52:52PM +0200, Christophe Saout wrote:
> > chgrp disk /dev/mapper/*
> > chmod g=rw /dev/mapper/*
> > 
> > We need to fix that in dmlib (if not already done ;)
> 
> The problem seems to be the volume group directory which is set 700
> here. Changing it to 755 fixes the problem for me, even if the device
> nodes in /dev/mapper themselves are still 600.

Ah ha! Confirmed. It works here now as well, without touching
/dev/mapper. I should have checked that.

Thanks for the quick responses!

-- 
  Matthew Daubenspeck
  http://www.oddprocess.org

08:03:13 up 23 days, 22:14, 1 user, load average: 0.00, 0.00, 0.00

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-04-14 12:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-13 15:17 [linux-lvm] quota command does not work Matthew Daubenspeck
2004-04-14  8:39 ` Heinz Mauelshagen
2004-04-14 11:52   ` Christophe Saout
2004-04-14 12:05     ` Matthew Daubenspeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox