[Gluster-users] glusterfs repication write complete?
可樂我
colacolameme at gmail.com
Wed Apr 30 02:10:10 UTC 2014
Thanks Kaushal M.
When I write file into glusterfs replication volume,
if one replica write failure(brink server offline or brick mount point has
deleted),
it will tell me write failure, this is write operation failure
Cloud glusterfs do this?
Or I have only way to find it in log file??
Thank you very much!!! ^^
2014-04-30 0:35 GMT+08:00 Kaushal M <kshlmster at gmail.com>:
> A write will return after it completes on all of the replicas that are
> up. In your example, you have replica 2, but only one of the bricks is
> up. So write will return after it finishes on the up brick. The data
> that was written to just one replica will be copied over, or healed to
> the other replica when it comes back online. This healing is done via
> the self-heal mechanism.
>
> On Tue, Apr 29, 2014 at 8:25 PM, 可樂我 <colacolameme at gmail.com> wrote:
> > Thank your help, Kaushal M
> >
> > but I have some question about it
> >
> > I create glusterfs replica volume in different brick in different node
> > like this
> > #gluster vol create test-vol node-A:/brick1 node-B:/brick2
> >
> > I mount this volume on /mnt
> > #mount.glusterfs node-A:/test-vol /mnt
> >
> > I write file by using dd cmd
> > #dd if=/dev/zero of=/mnt/test-file bs=1M count=2048
> >
> > i shudown node-B when the dd cmd is executing
> >
> > wirte test-file is still finish without any error or report any error msg
> >
> > if it return only after it is completed on all the replicas.
> > I think it would occur some error
> >
> > I don't understand why it can still finish without error
> >
> > Thanks!!
> >
> >
> > 2014-04-29 22:38 GMT+08:00 Kaushal M <kshlmster at gmail.com>:
> >
> >> For a replica volume a write will return only after it is completed on
> >> all the replicas.
> >>
> >> On Tue, Apr 29, 2014 at 8:06 PM, 可樂我 <colacolameme at gmail.com> wrote:
> >> > Hi everyone,
> >> > I have some questions about replication
> >> >
> >> > when i write file into glusterfs volume, it is 2 replica volume.
> >> > does it return ok when one of the replica write operation complete or
> >> > both
> >> > replica write operation complete?
> >> >
> >> > Can I require it return ok when all replica write complete?
> >> >
> >> > sorry~ my English is poor
> >> > I wish you can understand my qeustions
> >> > Thank you very much!
> >> > Thanks!
> >> >
> >> >
> >> >
> >> > _______________________________________________
> >> > Gluster-users mailing list
> >> > Gluster-users at gluster.org
> >> > http://supercolony.gluster.org/mailman/listinfo/gluster-users
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20140430/e23f2bd1/attachment.html>
More information about the Gluster-users
mailing list