[lustre-discuss] space usage is not limited when using project quota
Moreno Diego (ID SIS)
diego.moreno at id.ethz.ch
Mon Jan 7 07:00:30 PST 2019
Hi Zhang Di,
Hope it’s not too late to jump into this one 😊 You’re only providing the quota settings on MDT0 but did you also enable project quotas on the OSTs?
oss1$> lctl get_param osd-*.*.quota_slave.info | grep space
space acct: ugp
space acct: ugp
space acct: ugp
space acct: ugp
space acct: ugp
space acct: ugp
space acct: ugp
space acct: ugp
Regards,
Diego
From: lustre-discuss <lustre-discuss-bounces at lists.lustre.org> on behalf of zhang di <dorothy00dd at gmail.com>
Date: Tuesday, 25 December 2018 at 09:27
To: "lustre-discuss at lists.lustre.org" <lustre-discuss at lists.lustre.org>
Subject: [lustre-discuss] space usage is not limited when using project quota
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<http://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/20190107/972d8b0f/attachment.html>
More information about the lustre-discuss
mailing list