[prev in list] [next in list] [prev in thread] [next in thread]
List: lustre-discuss
Subject: [lustre-discuss] space usage is not limited when using project quota
From: zhang di <dorothy00dd () gmail ! com>
Date: 2018-12-25 8:26:21
Message-ID: CAEj5_5Zw41LLqkJCs-7gJCRjTN7Z9Fqx5HF49FBc4-_cNyg3bQ () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Hi,
I'm trying to use lustre's project quota feature, my quota configuration is:
[root@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@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@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@client2 test]# lsattr -p
123 -----------------P ./hello
[root@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.
[Attachment #5 (text/html)]
<div dir="ltr"><span \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">Hi,</span><br \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><span \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">I'm trying to use \
lustre's project quota feature, my quota configuration is:</span><br \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><br \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><span \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">[root@mds1 dc2-user]# \
lctl get_param osd-*.*.<a href="http://quota_slave.info/" \
target="_blank">quota_slave.info</a></span><br \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><span \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><a \
href="http://osd-ldiskfs.lustrefs-mdt0000.quota_slave.info/" \
target="_blank">osd-ldiskfs.lustrefs-MDT0000.quota_slave.info</a>=</span><br \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><span \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">target name: \
lustrefs-MDT0000</span><br \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><span \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">pool ID: \
0</span><br style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><span \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">type: \
md</span><br style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><span \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">quota enabled: \
ugp</span><br style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><span \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">conn to master: \
setup</span><br style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><span \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">space acct: \
ugp</span><br style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><span \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">user uptodate: \
glb[1],slv[1],reint[0]</span><br \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><span \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">group uptodate: \
glb[1],slv[1],reint[0]</span><br \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><span \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">project uptodate: \
glb[1],slv[1],reint[0]</span><br \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><br \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><span \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">And have enable \
filesystem project feature:</span><br \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><br \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><span \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">[root@mds1 dc2-user]# \
dumpe2fs -h /dev/vdc | grep 'Filesystem features'</span><br \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><span \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">dumpe2fs 1.42.13.wc6 \
(05-Feb-2017)</span><br \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><span \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">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</span><br \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><br \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><span \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">Then I set quota on \
client:</span><br style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><span \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">[root@client2 test]# \
lfs quota -p 123 /mnt/test</span><br \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><span \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">Disk quotas for prj 123 \
(pid 123):</span><br \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><span \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"> Filesystem \
kbytes quota limit grace files quota limit \
grace</span><br style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><span \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"> /mnt/test \
4 10240 10240 - 1 10000 10000 \
-</span><br style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><br \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><span \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">Although the hard limit \
is 10M, the lustre quota don't limit file size I write:</span><br \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><br \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><span \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">dd if=/dev/zero \
of=hello bs=30M count=1</span><div><br></div><div><div><font color="#000000" \
face="Helvetica"><span style="font-size:12px">[root@client2 test]# lsattr \
-p</span></font></div><div><font color="#000000" face="Helvetica"><span \
style="font-size:12px"> 123 -----------------P ./hello</span></font></div><br \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><span \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">[root@client2 test]# \
lfs quota -p 123 /mnt/test</span><br \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><span \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">Disk quotas for prj 123 \
(pid 123):</span><br \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><span \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"> Filesystem \
kbytes quota limit grace files quota limit \
grace</span><br style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><span \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"> /mnt/test \
28676* 10240 10240 - 2 10000 10000 \
-</span><br style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><br \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><span \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">My lustre version is \
2.10.3, so, Does it a lustre quota's bug ?</span></div><div><span \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">Thank you very \
much.</span></div></div>
_______________________________________________
lustre-discuss mailing list
lustre-discuss@lists.lustre.org
http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic