<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>Hi,</div><div>Thank you for answering my question. And I have another question to ask.</div><div>If there has been some file(c, d, e) in the B node brick before step 6 as below.And the file c is diffetent with file c created in A mount poin. </div><div><br></div><div><blockquote cite="mid:17286fdf.2048.15310f458cb.Coremail.songxin_1980@126.com" type="cite" style="line-height: 23.8px;"><div style="line-height: 1.7;"><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;"> </span><span style="color: rgb(51, 51, 51); font-family: Arial, sans-serif; line-height: 20px;">gluster volume heal gv0 info split-brain</span><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;">8.</span><span style="color: rgb(51, 51, 51); font-family: Arial, sans-serif; line-height: 20px;">gluster volume heal gv0 info fulll </span><span style="line-height: 23.8px;"> </span><span style="line-height: 23.8px;">//run on A node</span></div></div></blockquote></div><div><span style="line-height: 23.8px;">After step 7, should some</span><span style="color: rgb(51, 51, 51); font-family: Arial, sans-serif; line-height: 20px;"> split-brain</span><span style="color: rgb(51, 51, 51); font-family: Arial, sans-serif; line-height: 20px;"> entries be present?</span></div><div><span style="line-height: 23.8px;">After step 8, should all files (a,b,c,d,e) will be replicate in volume gv0</span><span style="color: rgb(51, 51, 51); font-family: Arial, sans-serif; line-height: 20px;">?</span></div><div><span style="color: rgb(51, 51, 51); font-family: Arial, sans-serif; line-height: 20px;">If so, how the file c be replicated when the file c is different between A brick and B brick?</span></div><br><br><br><br><div style="position:relative;zoom:1"></div><div id="divNeteaseMailCard"></div><br>ÔÚ 2016-02-24 12:11:09£¬"Ravishankar N" <ravishankar@redhat.com> дµÀ£º<br> <blockquote id="isReplyContent" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<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>
</blockquote></div><br><br><span title="neteasefooter"><p> </p></span>