Details
-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
None
-
3
-
9223372036854775807
Description
Quota project enforcement doesn't work for root.
# mkdir /mnt/lustre/testdir # chmod 777 /mnt/lustre/testdir# lfs project -p 10 -s /mnt/lustre/testdir # lfs setquota -B 200M -p 10 /mnt/lustre/ # lfs quota -p 10 /mnt/lustre/ Disk quotas for prj 10 (pid 10): Filesystem kbytes quota limit grace files quota limit grace /mnt/lustre 4 0 204800 - 1 0 0 - # id uid=0(root) gid=0(root) groups=0(root)# dd if=/dev/zero of=/mnt/lustre/testdir/file bs=1M count=300 300+0 records in 300+0 records out 314572800 bytes (315 MB, 300 MiB) copied, 0.21125 s, 1.5 GB/s # lfs quota -p 10 /mnt/lustre Disk quotas for prj 10 (pid 10): Filesystem kbytes quota limit grace files quota limit grace /mnt/lustre 307112* 0 204800 - 2 0 0 - pid 10 is using default file quota setting$ id uid=8888(serega) gid=100(users) groups=100(users) $ dd if=/dev/zero of=/mnt/lustretestdir/file bs=1M count=300 dd: error writing '/mnt/lustre/testdir/file': Disk quota exceeded 229+0 records in 228+0 records out 239075328 bytes (239 MB, 228 MiB) copied, 0.182616 s, 1.3 GB/s[root@ec01 ~]# lfs quota -p 10 /mnt/lustre Disk quotas for prj 10 (pid 10): Filesystem kbytes quota limit grace files quota limit grace /mnt/lustre 233480* 0 204800 - 2 0 0 - pid 10 is using default file quota setting
Attachments
Issue Links
- is related to
-
LU-13135 quick checks in OSDs to ignore quota for root-owned files
- Resolved