Re: Enable sharding on active volume

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

 





On Thu, Apr 5, 2018 at 7:33 AM, Ian Halliday <ihalliday@xxxxxxxxxx> wrote:

Hello,

I wanted to post this as a question to the group before we go launch it in a test environment. Will Gluster handle enabling sharding on an existing distributed-replicated environment, and is it safe to do?

Yes it's safe but it would mean that only the files that are created since shard was enabled would be sharded, not the existing files.
If you want to shard the existing files, there are a couple of things you can do:

1. move the existing file to a local fs from your glusterfs volume and then move it back into the volume.
2. copy the existing file into a temporary file on the same volume and rename the file back to its original name.

You could try both on two test vms and go with the faster of the two approaches. And either way, you could do this one vm at a time.

-Krutika

The environment in question is a VM image storage cluster with some disk files starting to grow beyond the size of some of the smaller bricks.

-- Ian


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

_______________________________________________
Gluster-users mailing list
Gluster-users@xxxxxxxxxxx
http://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