<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
I forgot to check on the 2 other server.<br>So ylal3020 and ylal3030 show similar output send previously.<br><br>But yval1000 and yval1010 show with all command :<br>&nbsp;trusted.glusterfs.quota.size=0x0000000000000000<br><br>Is it normal ?<br><br>Regards,<br><br>Anthony<br><div><hr id="stopSpelling">From: sokar6012@hotmail.com<br>To: junaid@gluster.com<br>CC: gluster-users@gluster.org<br>Subject: RE: [Gluster-users] quota calculation gluster 3.2.3<br>Date: Fri, 2 Sep 2011 07:51:52 +0000<br><br>

<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}

</style>

<div dir="ltr">
Hi Junaid,<br><br>Here is the output of the diffrent command executed on both server.<br>Command show identical output on both server<br><br># getfattr -n trusted.glusterfs.quota.size -e hex /soft/venus<br>getfattr: Removing leading '/' from absolute path names<br># file: soft/venus<br>trusted.glusterfs.quota.size=0x0000000022ccac00<br><br>&nbsp;# getfattr -n trusted.glusterfs.quota.size -e hex /soft/venus/test<br>getfattr: Removing leading '/' from absolute path names<br># file: soft/venus/test<br>trusted.glusterfs.quota.size=0x0000000000000000<br><br>&nbsp;# getfattr -n trusted.glusterfs.quota.size -e hex /soft/venus/psa&nbsp;&nbsp;&nbsp;&nbsp; <br>getfattr: Removing leading '/' from absolute path names<br># file: soft/venus/psa<br>trusted.glusterfs.quota.size=0x000000000013d000<br><br>&nbsp;# getfattr -n trusted.glusterfs.quota.size -e hex /soft/venus/soft<br>getfattr: Removing leading '/' from absolute path names<br># file: soft/venus/soft<br>trusted.glusterfs.quota.size=0x000000000d15ce00<br><br><br># gluster volume quota venus list<br>&nbsp;&nbsp;&nbsp; path&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; limit_set&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; size<br>----------------------------------------------------------------------------------<br>/&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2GB&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 556.8MB<br>/test&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 100MB&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0Bytes<br>/psa&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 200MB&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1.2MB<br>/soft&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1500MB&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 209.4MB<br><br><br>Indeed there is 90% of small file (~60000 files).<br><br>Thx<br><br>Anthony<br><br><br><div><hr id="ecxstopSpelling">From: junaid@gluster.com<br>Date: Fri, 2 Sep 2011 06:18:30 +0530<br>Subject: Re: [Gluster-users] quota calculation gluster 3.2.3<br>To: sokar6012@hotmail.com<br>CC: gluster-users@gluster.org<br><br>Hi Anthony,<div><br></div><div>To debug this further, can you send the output of&nbsp;</div><div><br></div><div>getfattr -n trusted.glusterfs.quota.size -e hex /soft/venus</div><div>getfattr -n trusted.glusterfs.quota.size -e hex /soft/venus/test</div>

<div>getfattr -n trusted.glusterfs.quota.size -e hex /soft/venus/psa</div><div>getfattr -n trusted.glusterfs.quota.size -e hex /soft/venus/soft</div>

<div><br></div><div>from both the machine. Also check the output of</div><div><br></div><div>gluster volume quota&nbsp;<span class="ecxApple-style-span" style="border-collapse: collapse; font-family: arial,sans-serif; font-size: 13px;">Replicate list</span></div>

<div><font class="ecxApple-style-span" face="arial, sans-serif"><span class="ecxApple-style-span" style="border-collapse: collapse;"><br></span></font></div><div><font class="ecxApple-style-span" face="arial, sans-serif"><span class="ecxApple-style-span" style="border-collapse: collapse;">Sometimes it takes a small amount of time to bring up the sizes. Also, what kind of data where you creating (I mean large amount of small files or large files because in case of small files, the directory sizes are not accounted by quota to calculate the size unlike the du -h command which uses the directory size as well).<br>

</span></font></div><div><font class="ecxApple-style-span" face="arial, sans-serif"><span class="ecxApple-style-span" style="border-collapse: collapse;"><br></span></font></div><div><font class="ecxApple-style-span" face="arial, sans-serif"><span class="ecxApple-style-span" style="border-collapse: collapse;">Junaid<br>

</span></font><div class="ecxgmail_quote">On Thu, Sep 1, 2011 at 1:37 PM, anthony garnier <span dir="ltr">&lt;<a href="mailto:sokar6012@hotmail.com">sokar6012@hotmail.com</a>&gt;</span> wrote:<br><blockquote class="ecxgmail_quote" style="padding-left: 1ex;">





<div><div dir="ltr">
Hi all,<br><br>I've enable quota but I'm a bit confused by values displayed by GlusterFS<br><br>Here is my volume : <br><br>Volume Name: venus<br>Type: Replicate<br>Status: Started<br>Number of Bricks: 2<br>Transport-type: tcp<br>

Bricks:<br>Brick1: ylal3020:/soft/venus<br>Brick2: ylal3030:/soft/venus<br>Options Reconfigured:<br>features.limit-usage: /test:100MB,/psa:200MB,/soft:1500MB,/:2GB<br>features.quota: on<br>diagnostics.client-log-level: ERROR<br>

diagnostics.brick-log-level: ERROR<br>network.ping-timeout: 10<br>performance.cache-size: 2GB<br>nfs.port: 2049<br><br>I've got 3 folders in the backend (/soft/venus) : <br>psa&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 160MB&nbsp; (with du -sh)<br>soft&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1.2GB<br>

test&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 12KB<br>Total&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1.4GB<br><br>But when I list the quota with gluster I got : <br># gluster volume quota venus list<br>&nbsp;&nbsp;&nbsp; path&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; limit_set&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; size<br>----------------------------------------------------------------------------------<br>

/test&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 100MB&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 12.0KB&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;= This one is OK<br>/psa&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 200MB&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 64.4MB&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;= not OK<br>/soft&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1500MB&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 281.8MB&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &lt;= not OK<br>

/&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2GB&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 346.2MB&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &lt;= not OK<br><br>Any idea ?<br><br>Regards,<br><font color="#888888"><br>Anthony Garnier<br><br><br><br>                                               </font></div></div>
<br>_______________________________________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
<a href="http://gluster.org/cgi-bin/mailman/listinfo/gluster-users" target="_blank">http://gluster.org/cgi-bin/mailman/listinfo/gluster-users</a><br>
<br></blockquote></div><br></div></div>                                               </div></div>                                               </div></body>
</html>