I would like to change a striped-replicate volume to striped-distributed volume, is this possible without rebuilding everything/data loss?
Asked
Active
Viewed 3,656 times
1
-
As far as I'm aware you might be able to change from a replicated to distributed set up by adding more bricks, but my knowledge on this is limited so I'm not posting this as an answer. See this discussion: http://comments.gmane.org/gmane.comp.file-systems.gluster.user/5185 – Gene Sep 01 '15 at 17:37
1 Answers
2
This should be possible, but the path is not a cheap one.
- Create a new set of nodes, equal to the one you already have, and large enough to accept all of the data.
- Add the new volumes in. As this raises the node-count to 2x, Gluster is smart enough to notice you want a 'distributed-replicated-striped' setup.
- Trigger self-heal to get things distributed around.
- Fail half of your nodes, and reduce the 'replica' count to 0.
It can't be done directly.

sysadmin1138
- 133,124
- 18
- 176
- 300