<div dir="ltr"><div><div><div><div><div>Hi,<br></div>Thnaks for the help. I was able to retrieve number of objects for entire volume. But I didn&#39;t figure out how to set quota for particular brick. I have replicated volume with 2 bricks on 2 nodes:<br>Bricks:<br>Brick1: host1:/dataDir<br>Brick2: host2:/dataDir<br></div>Both bricks are up and files are replicated. But when I try to set quota on a particular brick:<br><br>gluster volume quota TestVolume limit-objects /dataDir/  9223372036854775807<br>quota command failed : Failed to get trusted.gfid attribute on path /dataDir/. Reason : No such file or directory<br>please enter the path relative to the volume<br><br></div>What should be the path to brick directories relative to the volume?<br><br></div>Regards,<br></div>Asen Asenov<br><div><div><div><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 29, 2015 at 12:35 PM, Sachin Pandit <span dir="ltr">&lt;<a href="mailto:spandit@redhat.com" target="_blank">spandit@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">----- Original Message -----<br>
&gt; From: &quot;aasenov1989&quot; &lt;<a href="mailto:aasenov1989@gmail.com">aasenov1989@gmail.com</a>&gt;<br>
&gt; To: &quot;Humble Devassy Chirammal&quot; &lt;<a href="mailto:humble.devassy@gmail.com">humble.devassy@gmail.com</a>&gt;<br>
&gt; Cc: &quot;<a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a> List&quot; &lt;<a href="mailto:gluster-users@gluster.org">gluster-users@gluster.org</a>&gt;<br>
&gt; Sent: Friday, May 29, 2015 12:22:43 AM<br>
&gt; Subject: Re: [Gluster-users] Features - Object Count<br>
&gt;<br>
&gt; Thanks Humble,<br>
&gt; But as far as I understand the object count is connected with the quotas set<br>
&gt; per folders. What I want is to get number of files I have in entire volume -<br>
&gt; even when volume is distributed across multiple computers. I think the<br>
&gt; purpose of this feature:<br>
&gt; <a href="http://gluster.readthedocs.org/en/latest/Feature%20Planning/GlusterFS%203.7/Object%20Count/" target="_blank">http://gluster.readthedocs.org/en/latest/Feature%20Planning/GlusterFS%203.7/Object%20Count/</a><br>
<br>
</span>Hi,<br>
<br>
You are absolutely correct. You can retrieve number of files in the entire<br>
volume if you have the &quot;limit-objects&quot; set on the root. If &quot;limit-objects&quot;<br>
is set on the directory present in a mount point then it will only show<br>
the number of files and directories of that particular directory.<br>
<br>
In your case, if you want to retrieve number of files and directories<br>
present in the entire volume then you might have to set the object limit<br>
on the root.<br>
<br>
<br>
Thanks,<br>
Sachin Pandit.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
&gt; is to provide such functionality. Am I right or there is no way to retrieve<br>
&gt; number of files for entire volume?<br>
&gt;<br>
&gt; Regards,<br>
&gt; Asen Asenov<br>
&gt;<br>
&gt; On Thu, May 28, 2015 at 8:09 PM, Humble Devassy Chirammal &lt;<br>
&gt; <a href="mailto:humble.devassy@gmail.com">humble.devassy@gmail.com</a> &gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Hi Asen,<br>
&gt;<br>
&gt; <a href="https://gluster.readthedocs.org/en/latest/Features/quota-object-count/" target="_blank">https://gluster.readthedocs.org/en/latest/Features/quota-object-count/</a> , hope<br>
&gt; this helps.<br>
&gt;<br>
&gt; --Humble<br>
&gt;<br>
&gt;<br>
&gt; On Thu, May 28, 2015 at 8:38 PM, aasenov1989 &lt; <a href="mailto:aasenov1989@gmail.com">aasenov1989@gmail.com</a> &gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Hi,<br>
&gt; I wanted to ask how to use this feature in gluster 3.7.0, as I was unable to<br>
&gt; find anything. How can I retrieve number of objects in volume and number of<br>
&gt; objects in particular brick?<br>
&gt;<br>
&gt; Thanks in advance.<br>
&gt;<br>
&gt; Regards,<br>
&gt; Asen Asenov<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Gluster-users mailing list<br>
&gt; <a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
&gt; <a href="http://www.gluster.org/mailman/listinfo/gluster-users" target="_blank">http://www.gluster.org/mailman/listinfo/gluster-users</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Gluster-users mailing list<br>
&gt; <a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
&gt; <a href="http://www.gluster.org/mailman/listinfo/gluster-users" target="_blank">http://www.gluster.org/mailman/listinfo/gluster-users</a><br>
</div></div></blockquote></div><br></div>