<p dir="ltr">You should create the files from the mount point not from the back end to get Gluster&#39;s replication and all other features.</p>
<p dir="ltr">-Atin<br>
Sent from one plus one</p>
<div class="gmail_quote">On 14-Feb-2016 1:00 pm, &quot;songxin&quot; &lt;<a href="mailto:songxin_1980@126.com">songxin_1980@126.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>Hi,</div><div>I have a question about creating a replicate volume with two bricks as below.</div><div><br></div><div>There are two node, A node and B node.A node ip is 128.124.10.1 and B<span style="line-height:23.8px"> node ip is 128.124.10.2.</span></div><div><span style="line-height:23.8px"><br></span></div><div><span style="line-height:23.8px">operation steps on A node as below</span></div><div><span style="line-height:23.8px">1.</span>gluster peer probe <span style="line-height:23.8px"> </span><span style="line-height:23.8px">128.124.10.2</span></div><div><span style="line-height:23.8px">2.</span>mkdir -p /data/brick/gv0</div><div>3.cteate two files, a and c.</div><div>4.gluster volume create gv0 replica 2 <span style="line-height:23.8px">128.124.10.1</span>:/data/brick/gv0 <span style="line-height:23.8px">128.124.10.2</span>:/data/brick/gv1 force</div><div><span style="line-height:23.8px">5.</span>gluster volume start gv0</div><div>6.mount -t glusterfs <span style="line-height:23.8px"> 128.124.10.1</span>:/gv0 gluster</div><div><a href="http://7.ls" target="_blank">7.ls</a> glusterfs</div><div><a href="http://8.cat" target="_blank">8.cat</a> glusterfs/c</div><div><span style="line-height:23.8px"><br></span></div><div><span style="line-height:23.8px">operation steps on B node as below</span></div><div><span style="line-height:23.8px">1</span><span style="line-height:23.8px">.</span><span style="line-height:23.8px">mkdir -p /data/brick/gv0</span></div><div><span style="line-height:23.8px">2.</span><span style="line-height:23.8px">cteate two files, b and c.The file c is diffetent with file c in A node.</span></div><div><span style="line-height:23.8px">3.</span><span style="line-height:23.8px">mount -t glusterfs </span><span style="line-height:23.8px"> 128.124.10.1</span><span style="line-height:23.8px">:/gv0 gluster</span></div><div><span style="line-height:23.8px"><a href="http://4.ls" target="_blank">4.ls</a> glusterfs</span></div><div><span style="line-height:23.8px">5.</span><span style="line-height:23.8px">cat glusterfs/c</span></div><div><span style="line-height:23.8px"><br></span></div><div><span style="line-height:23.8px">Node that step 4 on A node is after step step 2 on B node.</span></div><div><span style="line-height:23.8px"><br></span></div><div><span style="line-height:23.8px">I want to know if the files(a b and c) should be replicate after step 5 on A node.</span></div><div><span style="line-height:23.8px">Does it show three files(a, b, c) after command ls glusterfs on both node?</span></div><div><span style="line-height:23.8px">If the file c is diffetent on two node, I want to know how it replicate on two node.</span></div><div><span style="line-height:23.8px"><br></span></div><div><span style="line-height:23.8px">Thanks,</span></div><div><span style="line-height:23.8px">Xin </span></div><div><span style="line-height:23.8px"><br></span></div><div><span style="line-height:23.8px"><br></span></div><div><span style="line-height:23.8px"><br></span></div><div><span style="line-height:23.8px"><br></span></div><div><br></div></div><br><br><span title="neteasefooter"><p> </p></span><br>_______________________________________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
<a href="http://www.gluster.org/mailman/listinfo/gluster-users" rel="noreferrer" target="_blank">http://www.gluster.org/mailman/listinfo/gluster-users</a><br></blockquote></div>