[Gluster-users] Sharding on 7.4 - filesizes may be wrong
cjeppesen at datto.com
Wed Apr 1 15:20:12 UTC 2020
We're using GlusterFS in a replicated brick setup with 2 bricks with
sharding turned on (shardsize 128MB).
There is something funny going on as we can see that if we copy large VM
files to the volume we can end up with files that are a bit larger than the
source files DEPENDING on the speed with which we copied the files - e.g.:
dd if=SOURCE bs=1M | pv -L NNm | ssh gluster_server "dd
It seems that if NN is <= 25 (i.e. 25 MB/s) the size of SOURCE and TARGET
will be the same.
If we crank NN to, say, 50 we sometimes risk that a 25G file ends up having
a slightly larger size, e.g. 26844413952 or 26844233728 - larger than the
Unfortunately this is not an illusion ! If we dd the files out of Gluster
we will receive the amount of data that 'ls' showed us.
In the brick directory (incl .shard directory) we have the expected amount
of shards for a 25G files (200) with size precisely equal to 128MB - but
there is an additional 0 size shard file created.
Has anyone else seen a phenomenon like this ?
Manager, Network Services
p +45 6170 5901 | Copenhagen Office
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Gluster-users