[LU-10247] Quota is not updated once quota limit has been reached Created: 16/Nov/17  Updated: 29/Dec/17

Status: Open
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.8.0
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Tatsushi Takamura Assignee: Hongchao Zhang
Resolution: Unresolved Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

Steps to reproduce are as follows:

1) create files until quota limit has been reached(ex. 3000 files)

# lfs setquota -u test -I 3000 /lustre/
# for i in `seq 1 3000`; do sudo -u test touch /lustre/test/$i; done
# lfs quota -v -u test /lustre
Disk quotas for user test (uid 1001):
     Filesystem  kbytes   quota   limit   grace   files   quota   limit   grace
        /lustre       0       0       0       -    3000*      0    3000       -
lustre-MDT0000_UUID
                      0       -       0       -    3000*      -    3000       -
lustre-MDT0001_UUID
                      0       -       0       -       0       -       0       -
lustre-OST0000_UUID
                      0       -       0       -       -       -       -       -
lustre-OST0001_UUID
                      0       -       0       -       -       -       -       -


2) update quota limit(ex. 4000 files)

 # lfs setquota -u test -I 4000 /lustre/

3) create files (over 3000 files)

 # for i in `seq 1 3010`; do sudo -u test touch /lustre/test/$i; done
 touch: cannot touch ‘/lustre/test/3001’: Disk quota exceeded
 touch: cannot touch ‘/lustre/test/3002’: Disk quota exceeded
 touch: cannot touch ‘/lustre/test/3003’: Disk quota exceeded
 touch: cannot touch ‘/lustre/test/3004’: Disk quota exceeded
 touch: cannot touch ‘/lustre/test/3005’: Disk quota exceeded
 touch: cannot touch ‘/lustre/test/3006’: Disk quota exceeded
 touch: cannot touch ‘/lustre/test/3007’: Disk quota exceeded
 touch: cannot touch ‘/lustre/test/3008’: Disk quota exceeded
 touch: cannot touch ‘/lustre/test/3009’: Disk quota exceeded
 touch: cannot touch ‘/lustre/test/3010’: Disk quota exceeded

 # lfs quota -v -u test /lustre
 Disk quotas for user test (uid 1001):
 Filesystem kbytes quota limit grace files quota limit grace
 /lustre 0 0 0 - 3000 0 4000 -
 lustre-MDT0000_UUID
 0 - 0 - 3000* - 3000 -
 lustre-MDT0001_UUID
 0 - 0 - 0 - 0 -
 lustre-OST0000_UUID
 0 - 0 - - - - -
 lustre-OST0001_UUID
 0 - 0 - - - - -
 Total allocated inode limit: 3000, total allocated block limit: 0

But, I cannot create more files than the limit set previously.
If I clear and reset quota, quota works correctly.

 # lfs setquota -u test -I 0 /lustre/
 # lfs setquota -u test -I 4000 /lustre/
 # for i in `seq 1 3010`; do sudo -u test touch /lustre/test/$i; done
 # echo $?
 0

Is this a bug or specification?
I cannnot find the description concerned from the lustre manual.



 Comments   
Comment by John Hammond [ 20/Dec/17 ]

Hongchao, could you see if this issue is still present in master?

Comment by Hongchao Zhang [ 29/Dec/17 ]

I can't reproduce the issue in master.

Generated at Sat Feb 10 02:33:21 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.