<div dir="ltr">copy a file to glusterfs , and you&#39;ll find the file size much bigger!<br><div><br></div><div><div># gluster --version</div><div>glusterfs 3.4.0 built on Aug  6 2013 11:17:07</div></div><div><br></div><div>
<div>1. Create a file `dd if=/dev/zero of=/data/20Gfile bs=1G count=20`</div><div>2. Copy the file to mount point of glusterfs `cp /data/20Gfile /mnt/stripe/`</div><div>3. The use ls/du/md5sum to see the file size and file hash,you will see many diff.</div>
</div><div><br></div><div><div>----------</div><div>    # du -sh /data/20Gfile /data/glusterfs/stripe/20Gfile /mnt/stripe/20Gfile</div><div>    20G     /data/20Gfile    (Source file)</div><div>    20G     /data/glusterfs/stripe/20Gfile   (Real Storage Dir)</div>
<div>    160G    /mnt/stripe/20Gfile    (Mount Gluster Dir)</div><div>----------</div><div>    # ls -l /data/20Gfile /data/glusterfs/stripe/20Gfile /mnt/stripe/20Gfile </div><div>    -rw-r--r-- 1 root root 21474836480 Aug 14 16:25 /data/20Gfile</div>
<div>    -rw-r--r-- 2 root root 21473918976 Aug 14 16:32 /data/glusterfs/stripe/20Gfile</div><div>    -rw-r--r-- 1 root root 21474836480 Aug 14 16:32 /mnt/stripe/20Gfile</div><div>----------</div><div>    # md5sum /data/20Gfile /data/glusterfs/stripe/20Gfile /mnt/stripe/20Gfile</div>
<div>    24eeb2845cbfda238b78fa165c21607d  /data/20Gfile</div><div>    f958a2de2f03f07a374300ae565f6d29  /data/glusterfs/stripe/20Gfile</div><div>    24eeb2845cbfda238b78fa165c21607d  /mnt/stripe/20Gfile</div><div>----------</div>
<div>    The file hash of /data/glusterfs/stripe/20Gfile on each node are not same too.</div><div>----------</div></div><div><br></div><div><div>Are they should same as each other?</div><div>Why not the file split into 8 node?</div>
</div><div><br></div><div>Info:</div><div><div>Linux <a href="http://agent25.higkoo.org">agent25.higkoo.org</a> 2.6.32-358.2.1.el6.x86_64</div><div>gluster volume create stripe stripe 8 agent{25,26,27,28,29,30,31,32}.higkoo.org:/data/glusterfs/stripe</div>
</div><div><br></div><div><br></div></div>