<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"><<a href="mailto:kshlmster@gmail.com" target="_blank">kshlmster@gmail.com</a>></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, 可樂我 <<a href="mailto:colacolameme@gmail.com">colacolameme@gmail.com</a>> wrote:<br>
> Thank your help, Kaushal M<br>
><br>
> but I have some question about it<br>
><br>
> I create glusterfs replica volume in different brick in different node<br>
> like this<br>
> #gluster vol create test-vol node-A:/brick1 node-B:/brick2<br>
><br>
> I mount this volume on /mnt<br>
> #mount.glusterfs node-A:/test-vol /mnt<br>
><br>
> I write file by using dd cmd<br>
> #dd if=/dev/zero of=/mnt/test-file bs=1M count=2048<br>
><br>
> i shudown node-B when the dd cmd is executing<br>
><br>
> wirte test-file is still finish without any error or report any error msg<br>
><br>
> if it return only after it is completed on all the replicas.<br>
> I think it would occur some error<br>
><br>
> I don't understand why it can still finish without error<br>
><br>
> Thanks!!<br>
><br>
><br>
> 2014-04-29 22:38 GMT+08:00 Kaushal M <<a href="mailto:kshlmster@gmail.com">kshlmster@gmail.com</a>>:<br>
><br>
>> For a replica volume a write will return only after it is completed on<br>
>> all the replicas.<br>
>><br>
>> On Tue, Apr 29, 2014 at 8:06 PM, 可樂我 <<a href="mailto:colacolameme@gmail.com">colacolameme@gmail.com</a>> wrote:<br>
>> > Hi everyone,<br>
>> > I have some questions about replication<br>
>> ><br>
>> > when i write file into glusterfs volume, it is 2 replica volume.<br>
>> > does it return ok when one of the replica write operation complete or<br>
>> > both<br>
>> > replica write operation complete?<br>
>> ><br>
>> > Can I require it return ok when all replica write complete?<br>
>> ><br>
>> > sorry~ my English is poor<br>
>> > I wish you can understand my qeustions<br>
>> > Thank you very much!<br>
>> > Thanks!<br>
>> ><br>
>> ><br>
>> ><br>
>> > _______________________________________________<br>
>> > Gluster-users mailing list<br>
>> > <a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
>> > <a href="http://supercolony.gluster.org/mailman/listinfo/gluster-users" target="_blank">http://supercolony.gluster.org/mailman/listinfo/gluster-users</a><br>
><br>
><br>
</div></div></blockquote></div><br></div>