Alexandr Porunov
2016-Nov-27 09:28 UTC
[Gluster-users] How to shrink replicated volume from 3 to 2 nodes?
Hello, I am trying to remove a failed node and reduce replication count. Here is my nodes: 192.168.0.123 192.168.0.124 192.168.0.125 Node 192.168.0.124 crashed. Now I need to completely remove it from the cluster. What I have tried: # gluster peer detach 192.168.0.124 peer detach: failed: Brick(s) with the peer 192.168.0.124 exist in cluster # gluster volume remove-brick gv0 replica 2 192.168.0.124:/data/brick1/gv0 force Removing brick(s) can result in data loss. Do you want to Continue? (y/n) y volume remove-brick commit force: success # Above command showed success but in reality brick is still in the cluster. # gluster volume remove-brick gv0 replica 2 192.168.0.124:/data/brick1/gv0 start volume remove-brick start: failed: number of bricks provided (1) is not valid. need at least 2 (or 2xN) How to properly shrink volumes? Sincerely, Alexandr -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.gluster.org/pipermail/gluster-users/attachments/20161127/774ef716/attachment.html>
Lindsay Mathieson
2016-Nov-27 10:29 UTC
[Gluster-users] How to shrink replicated volume from 3 to 2 nodes?
On 27/11/2016 7:28 PM, Alexandr Porunov wrote:> # Above command showed success but in reality brick is still in the > cluster.What makes you think this? what does a "gluster v gv0" show? -- Lindsay Mathieson