<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Aug 26, 2013 at 9:40 AM, Vijay Bellur <span dir="ltr">&lt;<a href="mailto:vbellur@redhat.com" target="_blank">vbellur@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"><div class="im">On 08/26/2013 10:04 PM, Anand Avati wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
On Sun, Aug 25, 2013 at 11:23 PM, Vijay Bellur &lt;<a href="mailto:vbellur@redhat.com" target="_blank">vbellur@redhat.com</a><br></div><div class="im">
&lt;mailto:<a href="mailto:vbellur@redhat.com" target="_blank">vbellur@redhat.com</a>&gt;&gt; wrote:<br>
<br>
    File size as reported on the mount point and the bricks can vary<br>
    because of this code snippet in iatt_from_stat():<br>
<br>
             {<br>
                     uint64_t maxblocks;<br>
<br>
                     maxblocks = (iatt-&gt;ia_size + 511) / 512;<br>
<br>
                     if (iatt-&gt;ia_blocks &gt; maxblocks)<br>
                             iatt-&gt;ia_blocks = maxblocks;<br>
             }<br>
<br>
<br>
    This snippet was brought in to improve accounting behaviour for<br>
    quota that would fail with disk file systems that perform<br>
    speculative pre-allocation.<br>
<br>
    If this aides only specific use cases, I think we should make the<br>
    behaviour configurable.<br>
<br>
    Thoughts?<br>
<br>
    -Vijay<br>
<br>
<br>
<br>
This is very unlikely the problem. st_blocks field values do not<br>
influence md5sum behavior in any way. The file size (st_size) would, but<br>
both du -k and the above code snipped only deal with st_blocks.<br>
</div></blockquote>
<br>
I was referring to du -k as seen on the bricks and the mount point. I was certainly not referring to the md5sum difference.<br>
<br>
-Vijay<br></blockquote><div><br></div><div>I thought he was comparing du -k between the two bricks (the sentence felt that way). In any case the above code snippet should do something meaningful only when the file is still held open. XFS should discard the extra allocations after close() anyways.</div>
<div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
<br>
Bobby, it would help if you can identify the mismatching file and<br>
inspect and see what is the difference between the two files?<br>
<br>
Avati<br>
<br>
<br>
<br>
<br>
<br>
    -------- Original Message --------<br>
    Subject:        [Gluster-users] FileSize changing in GlusterNodes<br>
    Date:   Wed, 21 Aug 2013 05:35:40 +0000<br>
    From:   Bobby Jacob &lt;<a href="mailto:bobby.jacob@alshaya.com" target="_blank">bobby.jacob@alshaya.com</a><br></div><div class="im">
    &lt;mailto:<a href="mailto:bobby.jacob@alshaya.com" target="_blank">bobby.jacob@alshaya.<u></u>com</a>&gt;&gt;<br>
    To: <a href="mailto:gluster-users@gluster.org" target="_blank">gluster-users@gluster.org</a> &lt;mailto:<a href="mailto:gluster-users@gluster.org" target="_blank">gluster-users@gluster.<u></u>org</a>&gt;<br>
    &lt;<a href="mailto:gluster-users@gluster.org" target="_blank">gluster-users@gluster.org</a> &lt;mailto:<a href="mailto:gluster-users@gluster.org" target="_blank">gluster-users@gluster.<u></u>org</a>&gt;&gt;<br>
<br>
<br>
<br>
    Hi,<br>
<br>
    When I upload files into the gluster volume, it replicates all the files<br>
    to both gluster nodes. But the file size slightly varies by (4-10KB),<br>
    which changes the md5sum of the file.<br>
<br>
    Command to check file size : du –k *. I’m using glusterFS 3.3.1 with<br>
    Centos 6.4<br>
<br>
    This is creating inconsistency between the files on both the bricks. ?<br>
    What is the reason for this changed file size and how can it be<br>
    avoided. ?<br>
<br>
    Thanks &amp; Regards,<br>
<br>
    *Bobby Jacob*<br>
<br>
<br>
<br>
<br>
    ______________________________<u></u>_________________<br>
    Gluster-users mailing list<br></div>
    <a href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a> &lt;mailto:<a href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.<u></u>org</a>&gt;<br>
    <a href="http://supercolony.gluster.org/mailman/listinfo/gluster-users" target="_blank">http://supercolony.gluster.<u></u>org/mailman/listinfo/gluster-<u></u>users</a><br>
<br>
<br>
</blockquote>
<br>
</blockquote></div><br></div></div>