[Gluster-users] The file size increased much when copy into a stripe volume ?

higkoohk higkoohk at gmail.com
Wed Aug 14 08:50:42 UTC 2013

copy a file to glusterfs , and you'll find the file size much bigger!

# gluster --version
glusterfs 3.4.0 built on Aug  6 2013 11:17:07

1. Create a file `dd if=/dev/zero of=/data/20Gfile bs=1G count=20`
2. Copy the file to mount point of glusterfs `cp /data/20Gfile /mnt/stripe/`
3. The use ls/du/md5sum to see the file size and file hash,you will see
many diff.

    # du -sh /data/20Gfile /data/glusterfs/stripe/20Gfile
    20G     /data/20Gfile    (Source file)
    20G     /data/glusterfs/stripe/20Gfile   (Real Storage Dir)
    160G    /mnt/stripe/20Gfile    (Mount Gluster Dir)
    # ls -l /data/20Gfile /data/glusterfs/stripe/20Gfile
    -rw-r--r-- 1 root root 21474836480 Aug 14 16:25 /data/20Gfile
    -rw-r--r-- 2 root root 21473918976 Aug 14 16:32
    -rw-r--r-- 1 root root 21474836480 Aug 14 16:32 /mnt/stripe/20Gfile
    # md5sum /data/20Gfile /data/glusterfs/stripe/20Gfile
    24eeb2845cbfda238b78fa165c21607d  /data/20Gfile
    f958a2de2f03f07a374300ae565f6d29  /data/glusterfs/stripe/20Gfile
    24eeb2845cbfda238b78fa165c21607d  /mnt/stripe/20Gfile
    The file hash of /data/glusterfs/stripe/20Gfile on each node are not
same too.

Are they should same as each other?
Why not the file split into 8 node?

Linux agent25.higkoo.org 2.6.32-358.2.1.el6.x86_64
gluster volume create stripe stripe 8
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20130814/51d080e4/attachment.html>

More information about the Gluster-users mailing list