<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'>
Junaid,<br><br>What do you mean by " the volume configuration on other two servers" ? Configuration is the same on all the server..<br>I'm creating data with "dd" cmd, and yes, data was already present before activation of quota.<br><br><br><br><div><hr id="stopSpelling">From: junaid@gluster.com<br>Date: Fri, 2 Sep 2011 22:55:02 +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>Thanks for providing the input. What is the volume configuration on other two servers (yval1000 and yval1010)? My question is same, what data where you creating on these two machines? Was the data already present before quota was enabled?<br>

<br><div class="ecxgmail_quote">On Fri, Sep 2, 2011 at 1:49 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="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">





<div><div dir="ltr">
<br>

<div>



<div dir="ltr">
I've done a ls -lRa throught the mount point and now i get : <br>/soft/venus # 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;&nbsp;&nbsp; 1.3GB<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;&nbsp; 8.0KB<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; 151.0MB<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; 826.3MB<br>

<br>=&gt;Seems to be consistent<br><br>and now command&nbsp; getfattr on yval1000 and yval1010 show : <br><br>yval1000 : <br>getfattr -n trusted.glusterfs.quota.size -e hex /soft/venus/&nbsp;&nbsp; <br>trusted.glusterfs.quota.size=0x0000000028f9ca00<div class="ecxim">

<br><br>getfattr -n trusted.glusterfs.quota.size -e hex /soft/venus/soft<br></div>trusted.glusterfs.quota.size=0x000000001421d400<div class="ecxim"><br><br>getfattr -n trusted.glusterfs.quota.size -e hex /soft/venus/psa<br>
</div>
trusted.glusterfs.quota.size=0x00000000053d6000<br><br> <br>yval1010 : <br>getfattr -n trusted.glusterfs.quota.size -e hex /soft/venus/&nbsp;&nbsp; <br>trusted.glusterfs.quota.size=0x000000002904ea00<div class="ecxim"><br><br>getfattr -n trusted.glusterfs.quota.size -e hex /soft/venus/soft<br>

</div>trusted.glusterfs.quota.size=0x000000002292ba00<div class="ecxim"><br><br>getfattr -n trusted.glusterfs.quota.size -e hex /soft/venus/psa<br></div>trusted.glusterfs.quota.size=0x00000000053d6000<br><br>Regards,<br><br>

Anthony</div></div><br><br><div><div class="ecxim"><hr>From: <a href="mailto:sokar6012@hotmail.com">sokar6012@hotmail.com</a><br>To: <a href="mailto:junaid@gluster.com">junaid@gluster.com</a><br>

CC: <a href="mailto:gluster-users@gluster.org">gluster-users@gluster.org</a><br>Subject: RE: [Gluster-users] quota calculation gluster 3.2.3<br></div>Date: Fri, 2 Sep 2011 07:57:19 +0000<div><div></div><div class="h5">

<br><br>





<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>From: <a href="mailto:sokar6012@hotmail.com">sokar6012@hotmail.com</a><br>To: <a href="mailto:junaid@gluster.com">junaid@gluster.com</a><br>

CC: <a href="mailto:gluster-users@gluster.org">gluster-users@gluster.org</a><br>Subject: RE: [Gluster-users] quota calculation gluster 3.2.3<br>Date: Fri, 2 Sep 2011 07:51:52 +0000<br><br>





<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>From: <a href="mailto:junaid@gluster.com">junaid@gluster.com</a><br>Date: Fri, 2 Sep 2011 06:18:30 +0530<br>Subject: Re: [Gluster-users] quota calculation gluster 3.2.3<br>

To: <a href="mailto:sokar6012@hotmail.com">sokar6012@hotmail.com</a><br>CC: <a href="mailto:gluster-users@gluster.org">gluster-users@gluster.org</a><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 style="border-collapse: collapse; font-family: arial,sans-serif; font-size: 13px;">Replicate list</span></div>



<div><font face="arial, sans-serif"><span style="border-collapse: collapse;"><br></span></font></div><div><font face="arial, sans-serif"><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 face="arial, sans-serif"><span style="border-collapse: collapse;"><br></span></font></div><div><font face="arial, sans-serif"><span style="border-collapse: collapse;">Junaid<br>

</span></font><div>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 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&n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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></div></div></div>                                               </div></div>
</blockquote></div><br></div></div>                                               </div></body>
</html>