[LU-1842] Quota enforcement landing Created: 06/Sep/12 Updated: 20/Nov/18 Resolved: 23/Apr/14 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.4.0 |
| Fix Version/s: | Lustre 2.4.0, Lustre 2.1.4, Lustre 1.8.9 |
| Type: | New Feature | Priority: | Minor |
| Reporter: | Johann Lombardi (Inactive) | Assignee: | Johann Lombardi (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||
| Sub-Tasks: |
|
||||||||||||||||||||||||||||||||||||
| Rank (Obsolete): | 4399 | ||||||||||||||||||||||||||||||||||||
| Description |
|
Tracker bug for landing orion_quota to master. |
| Comments |
| Comment by Johann Lombardi (Inactive) [ 06/Sep/12 ] |
|
quota: define quota records for glb/slv indexes |
| Comment by Johann Lombardi (Inactive) [ 06/Sep/12 ] |
|
ldlm: support for sending GL ASTs to multiple locks |
| Comment by Johann Lombardi (Inactive) [ 06/Sep/12 ] |
|
quota: quota identifier unification |
| Comment by Niu Yawei (Inactive) [ 10/Sep/12 ] |
|
quota: ldiskfs local enforcement |
| Comment by Niu Yawei (Inactive) [ 11/Sep/12 ] |
|
quota: zfs local enforcement |
| Comment by Johann Lombardi (Inactive) [ 11/Sep/12 ] |
|
protocol: add support for OBD_IDX_READ |
| Comment by Johann Lombardi (Inactive) [ 11/Sep/12 ] |
|
quota: helper routines to manage FID_SEQ_QUOTA_GLB |
| Comment by Johann Lombardi (Inactive) [ 12/Sep/12 ] |
|
mdt: add lvbo support to MDT namespace |
| Comment by Niu Yawei (Inactive) [ 13/Sep/12 ] |
|
protocol: new quota RPC format |
| Comment by Niu Yawei (Inactive) [ 14/Sep/12 ] |
|
iam: store key & rec in LE order for quota IAM files |
| Comment by Niu Yawei (Inactive) [ 18/Sep/12 ] |
|
lfs: lfs quota commands changes |
| Comment by Niu Yawei (Inactive) [ 18/Sep/12 ] |
|
test: t-f changes for the new quota |
| Comment by Niu Yawei (Inactive) [ 19/Sep/12 ] |
|
test: new s-q |
| Comment by Johann Lombardi (Inactive) [ 19/Sep/12 ] |
|
quota: add quota disk operations |
| Comment by Niu Yawei (Inactive) [ 21/Sep/12 ] |
|
osp: osp-on-ost device |
| Comment by Niu Yawei (Inactive) [ 24/Sep/12 ] |
|
quota: migrate old quota admin files |
| Comment by Johann Lombardi (Inactive) [ 24/Sep/12 ] |
|
quota: remove quota code |
| Comment by Niu Yawei (Inactive) [ 26/Sep/12 ] |
|
quota: lquota entry |
| Comment by Johann Lombardi (Inactive) [ 26/Sep/12 ] |
|
ldlm: add support for quota LVB |
| Comment by Niu Yawei (Inactive) [ 27/Sep/12 ] |
|
quota: qsd request |
| Comment by Johann Lombardi (Inactive) [ 27/Sep/12 ] |
|
quota: remove quota code from lvfs |
| Comment by Niu Yawei (Inactive) [ 28/Sep/12 ] |
|
quota: qsd entry operations |
| Comment by Johann Lombardi (Inactive) [ 28/Sep/12 ] |
|
quota: setup/shutdown qmt device |
| Comment by Niu Yawei (Inactive) [ 29/Sep/12 ] |
|
quota: qsd lock |
| Comment by Johann Lombardi (Inactive) [ 02/Oct/12 ] |
|
quota: add per-filesystem information |
| Comment by Johann Lombardi (Inactive) [ 02/Oct/12 ] |
|
quota: add quotactl support on qmt |
| Comment by Johann Lombardi (Inactive) [ 03/Oct/12 ] |
|
quota: add quota locks support on QMT |
| Comment by Johann Lombardi (Inactive) [ 04/Oct/12 ] |
|
quota: add acq/rel logic on QMT |
| Comment by Johann Lombardi (Inactive) [ 05/Oct/12 ] |
|
quota: add core QSD code |
| Comment by Johann Lombardi (Inactive) [ 05/Oct/12 ] |
|
test: re-enable all sanity-quota tests |
| Comment by James A Simmons [ 05/Oct/12 ] |
|
Patch http://review.whamcloud.com/#change,4156 introduced a kernel oops when mounting a MGT on a stand alone MGS system. The oops is: 2012-10-05 09:52:05 [ 355.128991] Lustre: DEBUG MARKER: mkdir -p /tmp/lustre/mgs |
| Comment by Johann Lombardi (Inactive) [ 05/Oct/12 ] |
|
Hi James, Could you please give a try to this patch? http://review.whamcloud.com/4203 It should address the qsd setup issue. Thanks in advance. |
| Comment by Johann Lombardi (Inactive) [ 06/Oct/12 ] |
|
For the record, i have verified that the patch fixes the problem. |
| Comment by Niu Yawei (Inactive) [ 06/Oct/12 ] |
|
utils: tunefs.lustre --quota |
| Comment by Johann Lombardi (Inactive) [ 08/Oct/12 ] |
Patch for the oi scrub init issue (independent of quota) is available here: |
| Comment by Johann Lombardi (Inactive) [ 08/Oct/12 ] |
|
For the record, |
| Comment by James A Simmons [ 08/Oct/12 ] |
|
Appears master + http://review.whamcloud.com/#change,4218 fixed my problem. |
| Comment by chas williams - CONTRACTOR [ 18/Jan/13 ] |
|
Hello, I am seeing a problem with ldiskfs and quotas in 2.4. http://review.whamcloud.com/4098 turned on quotas by default when mounting. However, when my ldiskfs goes to mount, it will fails since quotas and usage accounting are contraindicated. from the "first class accounting" ldiskfs patch: +#ifdef CONFIG_QUOTA + } am i confused about what is going on here? |
| Comment by Johann Lombardi (Inactive) [ 18/Jan/13 ] |
|
This code snippet just enables space accounting automatically at mount time if the quota feature is enabled on the backend ldiskfs filesystem. Could you please tell us more about the problem you see with ldiskfs and quota in 2.4? |
| Comment by chas williams - CONTRACTOR [ 18/Jan/13 ] |
|
i ported the ldiskfs patches to sles11sp2's kernel (basically 3.0). so it is possible to run quota and usage accounting at the same time? i guess i need to look harder at the ldiskfs patches. |
| Comment by Johann Lombardi (Inactive) [ 18/Jan/13 ] |
|
Quota enforcement actually requires accounting to be enabled. The only possible combinations are:
|
| Comment by chas williams - CONTRACTOR [ 18/Jan/13 ] |
|
how clever. apparently i have to have the quota_v2 module loaded for this feature. however, ldiskfs doesnt depend on this module and doesnt seem to automagically load it either. this doesnt appear to be happening because QFMT_VFS_V1 isn't mapped to any particular module name in linux/quota.h: #define INIT_QUOTA_MODULE_NAMES {\ ,\ ,\ |
| Comment by Wally Wang (Inactive) [ 09/May/13 ] |
|
For the older OS(SLES11 SP1) that does not have QFMT_VFS_V1 support, is there a problem enabling it with QFMT_VFS_V0 instead of QFMT_VFS_V1? |
| Comment by James A Simmons [ 16/May/13 ] |
|
Looking at the new quota code it appears to be independent of what version of linux quota you are using. From Lustre 2.1.X I see the main dependency was from the lustre quota ioctl in the fsfilt layer which did vary between linux quota versions. Now that code is linux independent. |
| Comment by Gerrit Updater [ 20/Nov/18 ] |
|
Andreas Dilger (adilger@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/33694 |