<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 08/15/2013 10:05 PM, David Gibbons
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAJ9CW+6+DMcW0Bb89yDGhR7YetxocP6G8DqgH0The1XuaxGXew@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi There,
        <div><br>
        </div>
        <div>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.</div>
        <div><br>
        </div>
        <div>Here's the question (more details below): let's say that
          one of my bricks "fails" -- <i>not</i>&nbsp;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?</div>
        <div><br>
        </div>
        <div>I have two nodes with 5 bricks each:</div>
        <div>
          <div>gluster&gt; volume info test-a</div>
          <div><br>
          </div>
          <div>Volume Name: test-a</div>
          <div>Type: Distributed-Replicate</div>
          <div>Volume ID: e8957773-dd36-44ae-b80a-01e22c78a8b4</div>
          <div>Status: Started</div>
          <div>Number of Bricks: 5 x 2 = 10</div>
          <div>Transport-type: tcp</div>
          <div>Bricks:</div>
          <div>Brick1: 10.250.4.63:/localmnt/g1lv2</div>
          <div>Brick2: 10.250.4.65:/localmnt/g2lv2</div>
          <div>Brick3: 10.250.4.63:/localmnt/g1lv3</div>
          <div>Brick4: 10.250.4.65:/localmnt/g2lv3</div>
          <div>Brick5: 10.250.4.63:/localmnt/g1lv4</div>
          <div>Brick6: 10.250.4.65:/localmnt/g2lv4</div>
          <div>Brick7: 10.250.4.63:/localmnt/g1lv5</div>
          <div>Brick8: 10.250.4.65:/localmnt/g2lv5</div>
          <div>Brick9: 10.250.4.63:/localmnt/g1lv1</div>
          <div>Brick10: 10.250.4.65:/localmnt/g2lv1</div>
        </div>
        <div><br>
        </div>
        <div>I formatted 10.250.4.65:/localmnt/g2lv5 (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.</div>
      </div>
    </blockquote>
    You must first check if the 'formatted' brick
    10.250.4.65:/localmnt/g2lv5 is online using the `gluster volume
    status` command. If not start the volume using `gluster volume start
    &lt;VOLNAME&gt;force`. You can then use the gluster volume heal
    command which would copy the data from the other replica brick into
    your formatted brick.<br>
    Hope this helps.<br>
    -Ravi<br>
    <br>
    <blockquote
cite="mid:CAJ9CW+6+DMcW0Bb89yDGhR7YetxocP6G8DqgH0The1XuaxGXew@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div><br>
        </div>
        <div>Cheers,</div>
        <div>Dave</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Gluster-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a>
<a class="moz-txt-link-freetext" href="http://supercolony.gluster.org/mailman/listinfo/gluster-users">http://supercolony.gluster.org/mailman/listinfo/gluster-users</a></pre>
    </blockquote>
    <br>
  </body>
</html>