Re: Glusterfs the same file but data size is different between server and client

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi  Joe Julian
     thank  you very much, according to you advice,  I use command du --apparent-size -sh get result as  follow:
      
As follows:

check  server  result:
        [root@test-gluster004 vol-replica]# du  --apparent-size  -sh  linux-kernel

           2.9G              linux-kernel


check  client  result:

        [root@test-gluster003 share]# du --apparent-size  -sh  linux-kernel

           2.9G              linux-kernel



thank  you  very  much



justglusterfs@xxxxxxxxx
 
From: Joe Julian
Date: 2014-09-04 10:12
To: gluster-devel
Subject: Re: Glusterfs the same file but data size is different between server and client
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@xxxxxxxxx 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@test-gluster004 vol-replica]# du  -sh  linux-kernel

           4.3G              linux-kernel/


check  client  result:

        [root@test-gluster003 share]# du  -sh  linux-kernel

           2.9G              linux-kernel



 it is observed that same file but data size is different between server and client,  why??  

                                                                                                                                            thanks !


   




_______________________________________________
Gluster-devel mailing list
Gluster-devel@xxxxxxxxxxx
http://supercolony.gluster.org/mailman/listinfo/gluster-devel

_______________________________________________
Gluster-devel mailing list
Gluster-devel@xxxxxxxxxxx
http://supercolony.gluster.org/mailman/listinfo/gluster-devel

[Index of Archives]     [Gluster Users]     [Ceph Users]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux