[LU-16340] Pool quotas: cannot hit EDQUOT due to the problem with indexes version Created: 24/Nov/22  Updated: 12/Oct/23  Resolved: 06/Jul/23

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.16.0

Type: Bug Priority: Minor
Reporter: Sergey Cheremencev Assignee: Sergey Cheremencev
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
Epic/Theme: Quota
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

Each PQ has it’s own index file and it's version could be different from “global pool”. When pool settings are changed, MDT sends new limits and limit’s file version to OST. OST discards new settings if the version is less than it’s own version.
I.e. if you make 100 limit changes for a user from FOO pool, OSTs file version becomes 100+initial_version. Since this moment OSTs from the FOO pool ignore new “global” limits.
And if the latest limits for a pool FOO were zeroes, these OSTs think the quota is disabled for a user.

Below is a message can be seen if you hit described problem:

qsd_upd_schedule()) lustre-OST0000: discarding glb update from glimpse ver:7 local ver:203 


 Comments   
Comment by Gerrit Updater [ 24/Nov/22 ]

"Sergey Cheremencev <sergey.cheremencev@hpe.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/49238
Subject: LU-16340 tests: check PQ quota indexes versions
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 8eb7627f6cbe37994d55c578cb393f9068d755b3

Comment by Gerrit Updater [ 24/Nov/22 ]

"Sergey Cheremencev <sergey.cheremencev@hpe.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/49239
Subject: LU-16340 quota: notify only global lqe
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: f1d587ffc0375bfc79df13a1c701dd1921787eb4

Comment by Gerrit Updater [ 19/May/23 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/49239/
Subject: LU-16340 quota: notify only global lqe
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 513b1cdbca58913249eb524a37374c418fdec44f

Comment by Peter Jones [ 06/Jul/23 ]

Seems to have merged for 2.16

Generated at Sat Feb 10 03:26:10 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.