Re: Convert to Sharding

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

 



On March 21, 2020 9:35:41 PM GMT+02:00, Christian Reiss <email@xxxxxxxxxxxxxxxxxx> wrote:
>Hey folks,
>
>Running CentOS7 with Gluster 7.0 in a single node instance with oVirt
>on 
>top (Home Virt Stuff). Everything is working flawlessly, but I just 
>noticed that I did not turn on sharding on the beginning. So I set
>
>gluster volume set ssd_storage features.shard on
>gluster volume set ssd_storage features.shard-block-size 64MB
>
>As per RedHat recommendations 
>(https://access.redhat.com/documentation/en-us/red_hat_gluster_storage/3.5/html/configuring_red_hat_virtualization_with_red_hat_gluster_storage/app-virt_profile)
>
>and on new files I do see the shard files appearing. Any smart way to 
>move the current data to sharding?
>
>Stay safe and healthy folks.
>-Chris.

Hey Christian,

Sharding is usefull if you have a VM disk larger than the brick, or for faster healing  (where  only the shard is being healed),  so you  won't benefit much unless  you have  multiple  bricks  there.

In your case , you can:
1. Stop the VM
2.  Copy the VM disk in the same directory
For example:
cp -a <uuid> <uuid>-new
sha512sum <uuid> | grep $(sha512sum  <uuid>-new |  awk '{print $1}')
3. Swap the old one with the new one:
mv  <uuid>-new  <uuid>
4. Power  up the VM and repeat for all vms

WARNING: DO NOT DISABLE  SHARDING!!!
EVER!

Best Regards,
Strahil Nikolov
________



Community Meeting Calendar:

Schedule -
Every 2nd and 4th Tuesday at 14:30 IST / 09:00 UTC
Bridge: https://bluejeans.com/441850968

Gluster-users mailing list
Gluster-users@xxxxxxxxxxx
https://lists.gluster.org/mailman/listinfo/gluster-users



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

  Powered by Linux