xfs
[Top] [All Lists]

Re: (Un)known issue with XFS group quotas on LVM?

To: John Desantis <desantis@xxxxxxxxxxxx>
Subject: Re: (Un)known issue with XFS group quotas on LVM?
From: Dave Chinner <david@xxxxxxxxxxxxx>
Date: Fri, 13 Jun 2014 10:01:37 +1000
Cc: xfs@xxxxxxxxxxx
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <CA+Bg6wdvZTYufmfK-U_6zwjKVDPVuQP_-Jwsqnh=1ayyB_EmEA@xxxxxxxxxxxxxx>
References: <CA+Bg6wd9CFKdHaAM-XyJx3royVb2-QdKqhmaamA-KMQk1TdieQ@xxxxxxxxxxxxxx> <20140611230706.GL9508@dastard> <CA+Bg6wdvZTYufmfK-U_6zwjKVDPVuQP_-Jwsqnh=1ayyB_EmEA@xxxxxxxxxxxxxx>
User-agent: Mutt/1.5.21 (2010-09-15)
On Thu, Jun 12, 2014 at 10:04:29AM -0400, John Desantis wrote:
> Dave,
> 
> Thanks for your reply.  Let me address your questions and replies.
> 
> > That doesn't sound like a filesystem problem. Sounds more like the
> > remote user/group configuration is getting squashed. Do the systems
> > have the same user/group configurations, or are the clients sending
> > group IDs the server doesn't recognise?
> 
> Stracing shows that the group and user ID's are not being squashed and
> they are resolving each time to their respective UID/GID's.
> 
> > As it is, describing the problem in text doesn't tell me anything
> > about the problem. You need to cut-n-paste the CLI and the output
> > showing the incorrect behaviour so we can attempt to reproduce the
> > same behaviour you are seeing.
> 
> Busted.  I figured before sending the usual gamut of console "action",
> I'd "save" time by simply presenting the symptoms.
> 
> > I can't see how that is related to the filesystem - the filesystem
> > will either account for group quota usage or it won't. It doesn't
> > care what primary gid the process uses, it will simply account usage
> > to that...
> 
> You're correct (but you already knew this!).  I can tell you that
> running the quota report does show the group block count changing.
> 
> It looks like this "issue" is  my misunderstanding of how XFS is
> checking the quota.  Perhaps you could shed some light?
> 
> When you're using active user and group quotas on the same file system
> and the user quota is lower than the group quota, does XFS first check
> against the user quota and then the group quota?  Is the order of
> operations user, group, and then project or does it depend on the
> mounting order of quotas?

Order doesn't matter because the filesystem is supposed to check
against all enforced quotas, not just the first one.

> In the case I presented yesterday, the user in question had a quota of
> 25 GB, but the group had an unlimited quota.  Each time that I used
> sudo -u user -g group or logged into the user's account, the quota was
> always exceeded.  Now that I have removed the user's quota, the group
> quota is now being respected properly.

Again, you need to post the commands and output that demonstrate the
problem you are describing. I'm having trouble understanding what
your problem is because I can't see the raw output that you are
seeing...

Cheers,

Dave.
-- 
Dave Chinner
david@xxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>