How to change zones safe on a big cluster

asked 2015-11-22 03:55:40 -0500

Dmitry Komkov gravatar image

updated 2015-11-26 10:10:39 -0500

Hello!

I have a big cluster with the next zones on disks (10 disks for each node):

Current configuration:

1 node: 1 1 2 2 1 1 2 2 3 3
2 node: 3 3 4 4 4 4 5 5 6 6
3 node: 11 11 12 12 13 13 14 14 15 15
4 node: 16 16 17 17 18 18 19 19 20 20

I wish to have the next configuration:

Acceptable configuration:

1 node: 1 1 1 1 1 1 1 1 1 1
2 node: 2 2 2 2 2 2 2 2 2 2
3 node: 3 3 3 3 3 3 3 3 3 3
4 node: 4 4 4 4 4 4 4 4 4 4

Initial configuration quite wired because of experimental scripts and lack of experience. Now I have more than 100 TB on a cluster and I need the easiest way to rebalance that.

I know that I should reset disks weight and remove-add entry in the ring to change the zones. But what is the most acceptable algorithm to make process as smoothly as possible?

Thanks in advance!

P.S. region = 1 for all disks

edit retag flag offensive close merge delete