[LU-7816] Add default quota setting support for Lustre Created: 25/Feb/16 Updated: 30/Aug/18 Resolved: 03/Jul/18 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.12.0 |
| Type: | New Feature | Priority: | Minor |
| Reporter: | Wang Shilong (Inactive) | Assignee: | Wang Shilong (Inactive) |
| Resolution: | Fixed | Votes: | 2 |
| Labels: | patch | ||
| Issue Links: |
|
||||||||||||||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||||||||||||||
| Description |
|
GPFS support default quota setting, but Lustre still dosen't. |
| Comments |
| Comment by Gerrit Updater [ 25/Feb/16 ] |
|
Wang Shilong (wshilong@ddn.com) uploaded a new patch: http://review.whamcloud.com/18664 |
| Comment by Joseph Gmitter (Inactive) [ 25/Feb/16 ] |
|
Hi Niu, Thanks. |
| Comment by Niu Yawei (Inactive) [ 26/Feb/16 ] |
Ah, my mistake. The default value is per system not per user. |
| Comment by Niu Yawei (Inactive) [ 26/Feb/16 ] |
|
I have few questions: 1. When default quota is set on system, how can we specify a user/group with no quota limit? No users/groups can have 0 quota limit if there is a non-zero default setting? 2. How to set default quota? Set quota to a special UID/GID or introduce a new quota command? (like Q_SET/GET_DEF_USR/GRP) The latter way needs client to support the new qc_cmd, but doesn't need to reserve special UID/GIDs for the default setting. Consequently, the default quota can be stored in the global index (former way) or a separate plain file (latter way). 3. How a user/group inherit the default quota setting? For instance, If a user/group has only soft limit, should he inherit the hard limit from default setting? Should the default limit be copied to the entry of other user/group in global index? What if the default value is changed? 4. How to notify quota slave when default quota is set/changed/cleared? Probably we'd compose a brief design to address these concerns? Thank you. |
| Comment by Niu Yawei (Inactive) [ 17/Jul/17 ] |
|
Silong, are you still working on this? Can we close it? Thanks. |
| Comment by Peter Jones [ 21/Jul/17 ] |
|
Ihara Is this work expected to be a candidate for inclusion in 2.11? Thanks Peter |
| Comment by Shuichi Ihara (Inactive) [ 30/Apr/18 ] |
|
Shilong revised patch and rebased against latest master. We are waiting for review of patches. |
| Comment by Gerrit Updater [ 07/May/18 ] |
|
Hongchao Zhang (hongchao.zhang@intel.com) uploaded a new patch: https://review.whamcloud.com/32306 |
| Comment by Hongchao Zhang [ 07/May/18 ] |
|
Thanks for the patch created by Shilong, and I have some more ideas to implement the default quota based on Shilong's patch. 1. the default quota setting is more like a normal setting (it's not related to specific user/group/project account, and it is more like a global setting), 2. To support the default quota based on the existing quota mechanism, we can create a special quota record for the non-enforced quota account, Thanks! |
| Comment by Gerrit Updater [ 03/Jul/18 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/32306/ |
| Comment by Peter Jones [ 03/Jul/18 ] |
|
Landed for 2.12 |