<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><br><blockquote cite="mid:e75da11.5414.153118dee1f.Coremail.songxin_1980@126.com" type="cite" style="font-family: Helvetica, 'Microsoft Yahei', verdana; line-height: 23.324px;"><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></div><div><span style="color: rgb(51, 51, 51); font-family: Arial, sans-serif; line-height: 20px;"><br></span></div><div><span style="color: rgb(51, 51, 51); font-family: Arial, sans-serif; line-height: 20px;">At step 7, should some split-brain entries be presented?</span></div></div></blockquote></blockquote><br><br><div style="position:relative;zoom:1"></div><div id="divNeteaseMailCard"></div><br>ÔÚ 2016-02-24 12:55:40£¬"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 10:21 AM, songxin wrote:<br>
</div>
<blockquote cite="mid:193bb1a1.5684.153119e4c02.Coremail.songxin_1980@126.com" type="cite">
<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial">
<div><br>
</div>
<div><br>
</div>
<div>Before step 6, there are some files(a,b,c), that are
created at step 5 , in the A brick when volume type is
distribute.</div>
<div>Should the files(a,b,c) in A brick be move to another
directory before step 6?</div>
<div>And move back, after step 6, when the volume type is
changed to replicate?</div>
<div><br>
</div>
</div>
</blockquote>
Not required. Only the newly added brick must be empty. <br>
<br>
<blockquote cite="mid:193bb1a1.5684.153119e4c02.Coremail.songxin_1980@126.com" type="cite">
<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial">
<div>Thanks,</div>
<div>Xin</div>
<br>
<br>
<br>
<br>
<br>
ÔÚ 2016-02-24 12:42:39£¬"Ravishankar N"
<a class="moz-txt-link-rfc2396E" href="mailto:ravishankar@redhat.com"><ravishankar@redhat.com></a> дµÀ£º<br>
<blockquote id="isReplyContent" style="PADDING-LEFT: 1ex;
MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="moz-cite-prefix">Hello,<br>
<br>
On 02/24/2016 10:03 AM, songxin wrote:<br>
</div>
<blockquote cite="mid:e75da11.5414.153118dee1f.Coremail.songxin_1980@126.com" type="cite">
<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. <br>
</div>
</blockquote>
<br>
Any new brick that you add to a volume has to be empty. It
must not contain data or be a brick that was a part of
another volume etc.<br>
Hope that helps,<br>
Ravi<br>
<blockquote cite="mid:e75da11.5414.153118dee1f.Coremail.songxin_1980@126.com" type="cite">
<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>
</blockquote>
<br>
<br>
</blockquote>
</div>
<br>
<br>
<span title="neteasefooter">
<p> </p>
</span>
</blockquote>
<br>
<br>
</blockquote></div><br><br><span title="neteasefooter"><p> </p></span>