[Gluster-users] Replacing a failed brick

Ravishankar N ravishankar at redhat.com
Fri Aug 16 04:43:01 UTC 2013

On 08/15/2013 10:05 PM, David Gibbons wrote:
> Hi There,
> I'm currently testing Gluster for possible production use. I haven't 
> been able to find the answer to this question in the forum arch or in 
> the public docs. It's possible that I don't know which keywords to 
> search for.
> Here's the question (more details below): let's say that one of my 
> bricks "fails" -- /not/ a whole node failure but a single brick 
> failure within the node. How do I replace a single brick on a node and 
> force a sync from one of the replicas?
> I have two nodes with 5 bricks each:
> gluster> volume info test-a
> Volume Name: test-a
> Type: Distributed-Replicate
> Volume ID: e8957773-dd36-44ae-b80a-01e22c78a8b4
> Status: Started
> Number of Bricks: 5 x 2 = 10
> Transport-type: tcp
> Bricks:
> Brick1:
> Brick2:
> Brick3:
> Brick4:
> Brick5:
> Brick6:
> Brick7:
> Brick8:
> Brick9:
> Brick10:
> I formatted (to simulate a "failure"). 
> What is the next step? I have tried various combinations of removing 
> and re-adding the brick, replacing the brick, etc. I read in a 
> previous message to this list that replace-brick was for planned 
> changes which makes sense, so that's probably not my next step.
You must first check if the 'formatted' brick is online using the `gluster volume status` 
command. If not start the volume using `gluster volume start 
<VOLNAME>force`. You can then use the gluster volume heal command which 
would copy the data from the other replica brick into your formatted brick.
Hope this helps.

> Cheers,
> Dave
> _______________________________________________
> Gluster-users mailing list
> Gluster-users at gluster.org
> http://supercolony.gluster.org/mailman/listinfo/gluster-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20130816/3d8b8b5e/attachment.html>

More information about the Gluster-users mailing list