<div dir="ltr"><div><div>I can reproduce this 100% reliably, just by coping files onto a gluster volume. Reported File size  is always larger, sometimes radically so. If I copy the file again, the reported file is different each time.<br><br></div>using cmp I found that the file contents match, up to the size of the original file.<br><br></div>MD5SUMS probably differ because of the different file sizes.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 2 November 2015 at 18:49, Krutika Dhananjay <span dir="ltr">&lt;<a href="mailto:kdhananj@redhat.com" target="_blank">kdhananj@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><div style="font-family:garamond,new york,times,serif;font-size:12pt;color:#000000"><div>Could you share</div><div>(1) the output of &#39;getfattr -d -m . -e hex &lt;path&gt;&#39; where &lt;path&gt; represents the path to the original file from the brick where it resides<br></div><div>(2)  the size of the file as seen from the mount point around the time when (1) is taken<br></div><div>(3) output of &#39;gluster volume info&#39;<br></div><div><br></div><div>-Krutika<br></div><div><br></div><hr><blockquote style="border-left:2px solid #1010ff;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt"><b>From: </b>&quot;Lindsay Mathieson&quot; &lt;<a href="mailto:lindsay.mathieson@gmail.com" target="_blank">lindsay.mathieson@gmail.com</a>&gt;<br><b>To: </b>&quot;gluster-users&quot; &lt;<a href="mailto:gluster-users@gluster.org" target="_blank">gluster-users@gluster.org</a>&gt;<br><b>Sent: </b>Sunday, November 1, 2015 6:29:44 AM<br><b>Subject: </b>[Gluster-users] Shard file size (gluster 3.7.5)<div><div class="h5"><br><div><br></div><div><p class="MsoNormal">Have upgraded my cluster to debian jessie, so able to natively test 3.7.5</p><p class="MsoNormal"> </p><p class="MsoNormal">I’ve noticed some peculiarities with reported file sizes on the gluster mount but I seem to recall this is a known issue with shards?</p><p class="MsoNormal"> </p><p class="MsoNormal">Source file is sparse, nominal size 64GB, real size 25GB. However underlying storage is ZFS with lz4 compression which reduces it to 16GB</p><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;"> </span></p><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">No Shard:</span></p><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">ls –lh     : 64 GB</span></p><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">du –h      : 25 GB</span></p><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;"> </span></p><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">4MB Shard:</span></p><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">ls –lh     : 144 GB</span></p><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">du –h      : 21 MB</span></p><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;"> </span></p><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">512MB Shard:</span></p><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">ls –lh     : 72 GB</span></p><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">du –h      : 765 MB</span></p><p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;"> </span></p><p class="MsoNormal"> </p><p class="MsoNormal">a du –sh of the .shard directory show 16GB for all datastores</p><p class="MsoNormal"> </p><p class="MsoNormal">Is this a known bug for sharding? Will it be repaired eventually?</p><p class="MsoNormal"> </p><p class="MsoNormal">Sent from <a href="http://go.microsoft.com/fwlink/?LinkId=550986" target="_blank">Mail</a> for Windows 10</p></div><br></div></div>_______________________________________________<br>Gluster-users mailing list<br><a href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a><br><a href="http://www.gluster.org/mailman/listinfo/gluster-users" target="_blank">http://www.gluster.org/mailman/listinfo/gluster-users</a></blockquote><div><br></div></div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">Lindsay</div>
</div>