<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 02/24/2016 07:16 AM, songxin wrote:<br>
    </div>
    <blockquote
      cite="mid:17286fdf.2048.15310f458cb.Coremail.songxin_1980@126.com"
      type="cite">
      <div
        style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial">
        <div>Hi all,</div>
        <div>I have a question about replicate volume as below.</div>
        <div><br>
        </div>
        <div>precondition:</div>
        <div>1.A node ip: 128.224.162.163</div>
        <div>2.B node ip:128.224.162.255</div>
        <div>3.A node brick:/data/brick/gv0</div>
        <div><span style="line-height: 23.8px;">4.</span><span
            style="line-height: 23.8px;">B node brick:/data/brick/gv0</span></div>
        <div><span style="line-height: 23.8px;"><br>
          </span></div>
        <div><span style="line-height: 23.8px;">reproduce step:</span></div>
        <div><span style="line-height: 23.8px;">1.</span>gluster peer
          probe <span style="line-height: 23.8px;">128.224.162.255</span> 
                                                                       
                            <span style="line-height: 23.8px;"> //run on
            A node</span></div>
        <div>2.gluster volume create gv0 <span style="line-height:
            23.8px;">128.224.162.163</span>:<span style="line-height:
            23.8px;">/data/brick/gv0</span> force                      
                        //run on A node</div>
        <div>3.gluster volume start gv0                                
                                                                       
               <span style="line-height: 23.8px;"> //run on A node</span></div>
        <div><span style="line-height: 23.8px;">4.</span>mount -t
          glusterfs 128.224.162.163:/gv0 gluster                        
                                                 <span
            style="line-height: 23.8px;">//run on A node</span></div>
        <div>5.create some file(a,b,c) in directory gluster            
                                                                      <span
            style="line-height: 23.8px;">//run on A node</span></div>
        <div><span style="line-height: 23.8px;">6.</span>gluster volume
          add-brick gv0 replica 2 128.224.162.255:/data/brick/gv0 force
                         <span style="line-height: 23.8px;"> </span><span
            style="line-height: 23.8px;"> //run on A node</span></div>
        <div><span style="line-height: 23.8px;">7.</span><span
            style="line-height: 23.8px;">create some file(d,e,f) in
            directory gluster                                          
                                            </span><span
            style="line-height: 23.8px;">//run on A node</span></div>
        <div><span style="line-height: 23.8px;">8.</span><span
            style="line-height: 23.8px;">mount -t glusterfs
            128.224.162.163:/gv0 gluster                                
                                           </span><span
            style="line-height: 23.8px;">//run on B node</span></div>
        <div>9.ls gluster                                              
                                                                       
                        <span style="line-height: 23.8px;">  </span><span
            style="line-height: 23.8px;">//run on B node</span></div>
        <div><br>
        </div>
        <div>My question is as below.</div>
        <div><br>
        </div>
        <div>After step 6, the volume type is change from distribute to
          replicate.</div>
        <div>The file (a,b,c) is created when the volume type is
          distribute.</div>
        <div><span style="line-height: 23.8px;">The file (d,e,f) is
            created when the volume type is replicate.</span></div>
        <div><span style="line-height: 23.8px;"><br>
          </span></div>
        <div>After step 6, does the volume will replicate the file
          (a,b,c) in two brick?Or it just replicate the file(d,e,f) <span
            style="line-height: 23.8px;">in two brick?</span></div>
        <div>If I run "gluster volume heal gv0 full", <span
            style="line-height: 23.8px;">does the volume will replicate
            the file (a,b,c) in two brick?</span></div>
        <div><span style="line-height: 23.8px;"><br>
          </span></div>
      </div>
    </blockquote>
    All files before adding the new brick must be replicated into the
    new brick  after heal full. Anuradha's patches to automatically heal
    files as a part of add-brick command (without the need to manually
    run full heal) will be in 3.8. Meanwhile, these  steps should help
    in triggering heals:<br>
    <br>
    <a class="moz-txt-link-freetext" href="https://www.mail-archive.com/gluster-users@gluster.org/msg23293.html">https://www.mail-archive.com/gluster-users@gluster.org/msg23293.html</a><br>
    <br>
    <blockquote
      cite="mid:17286fdf.2048.15310f458cb.Coremail.songxin_1980@126.com"
      type="cite">
      <div
        style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial">
        <div><span style="line-height: 23.8px;">Thanks,</span></div>
        <div><span style="line-height: 23.8px;">Xin</span></div>
        <div> </div>
      </div>
      <br>
      <br>
      <span title="neteasefooter">
        <p> </p>
      </span><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>
    <br>
  </body>
</html>