[lustre-discuss] question regarding lustre project quotas vs user and/or group quota
Andreas Dilger
adilger at ddn.com
Thu Mar 27 11:44:47 PDT 2025
This is my recommendation as well. If you want the user and project quotas to be disjoint, then use projid = UID for the home directories, and e.g. projid = UID + 1M for the "project" directories. Then they can be assigned different quotas for the different parts of the filesystem.
Otherwise, if there are user, group, and project quotas all enabled at the same time, then the inode/space usage limit will be applied by the lowest limit that is hit. In some cases this is desirable (e.g. a project quota of 1TB shared among a group of 10 users each with 20TB limit). In other cases this can be confusing and it is better to just use the projid quotas for different parts of the filesystem.
There is patch https://review.whamcloud.com/46144 ("LU-13335 utils: allow projid lookup by name") that will simplify using projids by allowing lookup by name instead of only by number. There is also a feature to allow specifying "-p u:username" to lookup up the numeric UID for use as the PROJID to simplify using the common "PROJID == UID" workflow. This patch isn't landed yet, but will become available in a release once the development is finished.
Cheers, Andreas
On Mar 26, 2025, at 09:18, Einar Næss Jensen via lustre-discuss <lustre-discuss at lists.lustre.org> wrote:
Hello Åke.
Thank you for confirming our suspicion.
We have come to the same conclusion on our larger systems (DDN & Clusterstor) but we were hoping perhaps in newer lustre versions this was different.
Best Regards
Einar Næss Jensen
________________________________________
From: Åke Sandgren <ake.sandgren at umu.se>
Sent: Wednesday, March 26, 2025 14:57
To: lustre-discuss at lists.lustre.org; Einar Næss Jensen
Subject: Re: question regarding lustre project quotas vs user and/or group quota
User quota, if enabled, will be affected regardless of where in the file system the file is.
We decided to use only project quota, even for users home directory, i.e. $HOME get projectquota for projid = userid and project storage has projid = the project storage gid.
Made our life easier
________________________________________
From: lustre-discuss <lustre-discuss-bounces at lists.lustre.org> on behalf of Einar Næss Jensen via lustre-discuss <lustre-discuss at lists.lustre.org>
Sent: Wednesday, March 26, 2025 13:50
To: lustre-discuss at lists.lustre.org
Subject: [lustre-discuss] question regarding lustre project quotas vs user and/or group quota
Hello all
I have a question regarding project quotas
If we have activated user and project quotas on a file system:
Will user quota be affected by what is inside a project/directory quota?
How can we prevent user quota being affected by what a user put into a directory/project quota
This is on lustre 2.15.x
Best Regards
Eianr Næss Jensen
_______________________________________________
lustre-discuss mailing list
lustre-discuss at lists.lustre.org
http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org
_______________________________________________
lustre-discuss mailing list
lustre-discuss at lists.lustre.org
http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org
Cheers, Andreas
—
Andreas Dilger
Lustre Principal Architect
Whamcloud/DDN
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lustre.org/pipermail/lustre-discuss-lustre.org/attachments/20250327/3b3c7fea/attachment.htm>
More information about the lustre-discuss
mailing list