[lustre-discuss] space usage is not limited when using project quota
zhang di
dorothy00dd at gmail.com
Tue Dec 25 00:26:21 PST 2018
Hi,
I’m trying to use lustre’s project quota feature, my quota configuration is:
[root at mds1 dc2-user]# lctl get_param osd-*.*.quota_slave.info
osd-ldiskfs.lustrefs-MDT0000.quota_slave.info
<http://osd-ldiskfs.lustrefs-mdt0000.quota_slave.info/>=
target name: lustrefs-MDT0000
pool ID: 0
type: md
quota enabled: ugp
conn to master: setup
space acct: ugp
user uptodate: glb[1],slv[1],reint[0]
group uptodate: glb[1],slv[1],reint[0]
project uptodate: glb[1],slv[1],reint[0]
And have enable filesystem project feature:
[root at mds1 dc2-user]# dumpe2fs -h /dev/vdc | grep 'Filesystem features'
dumpe2fs 1.42.13.wc6 (05-Feb-2017)
Filesystem features: has_journal ext_attr resize_inode dir_index
filetype mmp flex_bg dirdata sparse_super large_file huge_file uninit_bg
dir_nlink quota project
Then I set quota on client:
[root at client2 test]# lfs quota -p 123 /mnt/test
Disk quotas for prj 123 (pid 123):
Filesystem kbytes quota limit grace files quota limit
grace
/mnt/test 4 10240 10240 - 1 10000 10000
-
Although the hard limit is 10M, the lustre quota don’t limit file size I
write:
dd if=/dev/zero of=hello bs=30M count=1
[root at client2 test]# lsattr -p
123 -----------------P ./hello
[root at client2 test]# lfs quota -p 123 /mnt/test
Disk quotas for prj 123 (pid 123):
Filesystem kbytes quota limit grace files quota limit
grace
/mnt/test 28676* 10240 10240 - 2 10000 10000
-
My lustre version is 2.10.3, so, Does it a lustre quota's bug ?
Thank you very much.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lustre.org/pipermail/lustre-discuss-lustre.org/attachments/20181225/b4d22fe2/attachment.html>
More information about the lustre-discuss
mailing list