<div dir="ltr"><div>Thanks Kaushal M.<br><br></div><div>When I write file into glusterfs replication volume, <br>if one replica write failure(brink server offline or brick mount point has deleted),<br></div><div>it will tell me write failure, this is write operation failure<br>
<br></div><div>Cloud glusterfs do this?<br></div><div></div><div>Or I have only way to find it in log file??<br><br></div><div>Thank you very much!!! ^^<br></div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
2014-04-30 0:35 GMT+08:00 Kaushal M <span dir="ltr">&lt;<a href="mailto:kshlmster@gmail.com" target="_blank">kshlmster@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
A write will return after it completes on all of the replicas that are<br>
up. In your example, you have replica 2, but only one of the bricks is<br>
up. So write will return after it finishes on the up brick. The data<br>
that was written to just one replica will be copied over, or healed to<br>
the other replica when it comes back online. This healing is done via<br>
the self-heal mechanism.<br>
<div class="HOEnZb"><div class="h5"><br>
On Tue, Apr 29, 2014 at 8:25 PM, 可樂我 &lt;<a href="mailto:colacolameme@gmail.com">colacolameme@gmail.com</a>&gt; wrote:<br>
&gt; Thank your help, Kaushal M<br>
&gt;<br>
&gt; but I have some question about it<br>
&gt;<br>
&gt; I create glusterfs replica volume in different brick in different node<br>
&gt; like this<br>
&gt; #gluster vol create test-vol node-A:/brick1 node-B:/brick2<br>
&gt;<br>
&gt; I mount this volume on /mnt<br>
&gt; #mount.glusterfs node-A:/test-vol /mnt<br>
&gt;<br>
&gt; I write file by using dd cmd<br>
&gt; #dd if=/dev/zero of=/mnt/test-file bs=1M count=2048<br>
&gt;<br>
&gt; i shudown node-B when the dd cmd is executing<br>
&gt;<br>
&gt; wirte test-file is still finish without any error or report any error msg<br>
&gt;<br>
&gt; if it return only after it is completed on all the replicas.<br>
&gt; I think it would occur some error<br>
&gt;<br>
&gt; I don&#39;t understand why it can still finish without error<br>
&gt;<br>
&gt; Thanks!!<br>
&gt;<br>
&gt;<br>
&gt; 2014-04-29 22:38 GMT+08:00 Kaushal M &lt;<a href="mailto:kshlmster@gmail.com">kshlmster@gmail.com</a>&gt;:<br>
&gt;<br>
&gt;&gt; For a replica volume a write will return only after it is completed on<br>
&gt;&gt; all the replicas.<br>
&gt;&gt;<br>
&gt;&gt; On Tue, Apr 29, 2014 at 8:06 PM, 可樂我 &lt;<a href="mailto:colacolameme@gmail.com">colacolameme@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt; Hi everyone,<br>
&gt;&gt; &gt; I have some questions about replication<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; when i write file into glusterfs volume, it is 2 replica volume.<br>
&gt;&gt; &gt; does it return ok when one of the replica write operation complete or<br>
&gt;&gt; &gt; both<br>
&gt;&gt; &gt; replica write operation complete?<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Can I require it return ok when all replica write complete?<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; sorry~ my English is poor<br>
&gt;&gt; &gt; I wish you can understand my qeustions<br>
&gt;&gt; &gt; Thank you very much!<br>
&gt;&gt; &gt; Thanks!<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; Gluster-users mailing list<br>
&gt;&gt; &gt; <a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
&gt;&gt; &gt; <a href="http://supercolony.gluster.org/mailman/listinfo/gluster-users" target="_blank">http://supercolony.gluster.org/mailman/listinfo/gluster-users</a><br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br></div>