Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
Lustre 2.16.0
-
None
-
3
-
9223372036854775807
Description
$ git log --oneline -n3
d43e8b471f (HEAD -> df_noenf, tag: v2_15_60, tag: 2.15.60, origin/master, origin/HEAD) New tag 2.15.60
54d8859bef LU-17215 tests: sanity/398q to use $tfile
7a56a689d4 LU-17374 gss: get rid of rsi cache entries after req handle
$ MDSCOUNT=2 FSTYPE=ldiskfs bash lustre/tests/llmount.sh
$ lfs project -sp 1212 /mnt/lustre
$ lfs setquota -p 1212 -b 10M -B 10M -i 10K -I 10K /mnt/lustre
$ df -h /mnt/lustre
Filesystem Size Used Avail Use% Mounted on
10.0.2.15@tcp:/lustre 10M 4.0K 10M 1% /mnt/lustre
$ lfs project -d /mnt/lustre
1212 P /mnt/lustre
$ lfs project -sp 0 /mnt/lustre
$ df -h /mnt/lustre
Filesystem Size Used Avail Use% Mounted on
10.0.2.15@tcp:/lustre 612M 3.0M 556M 1% /mnt/lustre
$ lctl get_param osd-ldiskfs.*.quota_slave.info | grep enabled
quota enabled: none
quota enabled: none
quota enabled: none
quota enabled: none
Attachments
Issue Links
- is related to
-
LU-16660 don't show grace time if this quota type is disabled
-
- Open
-
-
LU-15721 projid quota limit statfs() on directories only with PROJINHERIT
-
- Resolved
-
-
LU-16771 add client statfs() cache for project quotas
-
- Resolved
-
-
LU-9555 "df /path/to/project" should return projid-specific values
-
- Resolved
-
Looking again at this issue I found a good solution. As indicator of enabled or disabled quota qtype we could return from MDT:
Another words, at least one connected slave means that appropriate quota type is enabled.
I believe there is a lot of ways how to return this flag in obd_quotactl. We could even consider to print this flag in general "lfs quota" output.
This approach gives us ability to avoid walking through the slaves to check whether they enforced or not. This also would help with LU-16660.
There are 2 problems Im seeing here.