[Gluster-users] Convert existing volume to shard volume

Krutika Dhananjay kdhananj at redhat.com
Thu Mar 17 17:21:20 UTC 2016


If you want the existing files in your volume to get sharded, you would
need to
a. enable sharding on the volume and configure block size, both of which
you have already done,
b. cp the file(s) into the same volume with temporary names
c. once done, you can rename the temporary paths back to their old names.

HTH,
Krutika

On Thu, Mar 17, 2016 at 9:51 PM, André Bauer <abauer at magix.net> wrote:

> Hi List,
>
> i just upgraded from 3.5.8 to 3.7.8 and want to convert my existing VM
> Images volume to a shard volume now:
>
> gluster volume set dis-rep features.shard on
> gluster volume set dis-rep features.shard-block-size 16MB
>
> How are the existing image files handled?
> Do i need to start rebalance to convert existing files?
>
> Or is it better to start with an empty volume?
> If so, why?
>
>
> --
> Regards
> André
>
> _______________________________________________
> Gluster-users mailing list
> Gluster-users at gluster.org
> http://www.gluster.org/mailman/listinfo/gluster-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gluster.org/pipermail/gluster-users/attachments/20160317/534c2420/attachment.html>


More information about the Gluster-users mailing list