[Gluster-devel] Glusterfs the same file but data size is different between server and client
Joe Julian
joe at julianfamily.org
Thu Sep 4 02:12:04 UTC 2014
I'm going to reiterate to make sure I understand correctly.
You created a replica 2 volume. Mounted the new volume on a client.
Copied a directory to the client mountpoint using cp -a (I assume).
Then, on the two bricks, you checked a du -sh for that directory.
If all that is correct, then I'm not really sure. Try a du
--apparent-size -sh. Perhaps your two filesystems have different block
sizes causing files that are smaller than a block to use more disk space
on one than the other?
Perhaps compare sha1sum between the two and see if there are
differences. There shouldn't be.
On 09/03/2014 07:01 PM, justglusterfs at gmail.com wrote:
> Hi,I create a glusterfs replica volume (replica count is 2 ), and
> mount the volume in client, then I copy a dir <linux-kernel>,
> when finish copy,
> I use du command check the dir <linux-kernel> size, I find the
> linux-kernel size is different between server and client,
>
> As follows:
>
> check server result:
> [root at test-gluster004 vol-replica]# du-shlinux-kernel
>
> 4.3G linux-kernel/
>
>
> check client result:
>
> [root at test-gluster003 share]# du-shlinux-kernel
>
> 2.9G linux-kernel
>
>
>
> it is observed that same file but data size is different between
> server and client, why??
>
> thanks !
>
>
>
> ------------------------------------------------------------------------
> justglusterfs at gmail.com
>
>
> _______________________________________________
> Gluster-devel mailing list
> Gluster-devel at gluster.org
> http://supercolony.gluster.org/mailman/listinfo/gluster-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://supercolony.gluster.org/pipermail/gluster-devel/attachments/20140903/6b62ac48/attachment-0001.html>
More information about the Gluster-devel
mailing list