<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <div class="moz-cite-prefix">On 02/27/2015 07:10 AM, Cary Tsai
      wrote:<br>
    </div>
    <blockquote
cite="mid:CALUyQtgcJh6aBOm13=Mpdt8L7QrgfgTa3K6P7bs+ak3KNO9wSA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <p class="">Assume I have 4 bricks in a replica (count=2)
          volume:</p>
        <p class="">Volume Name: data-vol</p>
        <p class="">Number of Bricks: 2 x 2 = 4</p>
        <p class="">Brick1: <a moz-do-not-send="true"
            href="http://192.168.1.101/brick">192.168.1.101/brick</a></p>
        <p class="">Brick2: <a moz-do-not-send="true"
            href="http://192.168.1.102/brick">192.168.1.102/brick</a></p>
        <p class="">Brick3: <a moz-do-not-send="true"
            href="http://192.168.1.103/brick">192.168.1.103/brick</a></p>
        <p class="">Brick4: <a moz-do-not-send="true"
            href="http://192.168.1.104/brick">192.168.1.104/brick</a></p>
        <p class="">Something happens to Brick3 and I want to replace it
          by <a moz-do-not-send="true"
            href="http://192.168.1.105/brick">192.168.1.105/brick</a></p>
        <p class="">What command should I use to replace <a
            moz-do-not-send="true" href="http://192.168.1.103/brick">192.168.1.103/brick</a>
          by <a moz-do-not-send="true"
            href="http://192.168.1.105/brick">192.168.1.105/brick</a>?</p>
        <p class="">Can I use:</p>
        <p class="">gluster volume replace-brick data-vol <a
            moz-do-not-send="true" href="http://192.168.1.103/brick">192.168.1.103/brick</a>
          <a moz-do-not-send="true" href="http://192.168.1.105/brick">192.168.1.105/brick</a>
          commit force? <br>
        </p>
      </div>
    </blockquote>
    <br>
    This is the correct choice. Since you have replaced a replica brick,
    you will have to follow up with 'gluster vol heal data-vol full` to
    restore data from 104/brick to 105/brick.<br>
    <br>
    <blockquote
cite="mid:CALUyQtgcJh6aBOm13=Mpdt8L7QrgfgTa3K6P7bs+ak3KNO9wSA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <p class="">Or I have to start _replace-brick_ first then commit
          it?</p>
        <p class="">Thanks,<br>
        </p>
      </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://www.gluster.org/mailman/listinfo/gluster-users">http://www.gluster.org/mailman/listinfo/gluster-users</a></pre>
    </blockquote>
    <br>
  </body>
</html>