<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 10.00.9200.16618"></HEAD>
<BODY style="FONT: 10pt Segoe UI; MARGIN: 4px 4px 1px">
<DIV>Hi,</DIV>
<DIV>I try to replicate some data that resides on two CentOS servers. The replicated data should be shared using Samba to the users. It should be avoided that two users </DIV>
<DIV>try to work on the same file using MS Office. If the users access the same file on one server, one of them is not able to modify the file. This is possible (and the normal operation)</DIV>
<DIV>if one uses one server with Samba. I assumed that this kind of lock would be replicated too.</DIV>
<DIV> </DIV>
<DIV>I did not knew about libgfapi and have not used it yesterday. I used the fuse mounted directory as data source for Samba.</DIV>
<DIV> </DIV>
<DIV>Yesterday night I updated both CentOS servers. They are CentOS 6.5 now. Now locking does not happen at all any more. After you mentioned libgfapi I found this:</DIV>
<DIV><A href="https://www.mail-archive.com/gluster-users@gluster.org/msg13033.html">https://www.mail-archive.com/gluster-users@gluster.org/msg13033.html</A></DIV>
<DIV> </DIV>
<DIV>I managed to compile the module and switched to samba-glusterfs-vfs. But I still have no locking</DIV>
<DIV>My Samba configuration looks like this:</DIV>
<DIV>[glusterdata-vfs]<BR> vfs object = glusterfs<BR> glusterfs:volume = gv0<BR> path = /<BR> glusterfs:loglevel = 2<BR> glusterfs:logfile = /var/log/samba/glusterdata-vfs.log</DIV>
<DIV> </DIV>
<DIV> read only = no<BR> browseable = yes<BR> guest ok = no<BR> printable = no<BR> nt acl support = yes<BR> acl map full control = yes<BR></DIV>
<DIV> </DIV>
<DIV>Thank you for your attention.<BR><BR><BR>>>> Lalatendu Mohanty <lmohanty@redhat.com> 22.01.2014 16:10 >>><BR><SPAN style="BACKGROUND-COLOR: #ffffff" text="#000000" bgcolor="#FFFFFF">> </DIV>
<DIV class=moz-cite-prefix>On 01/22/2014 08:30 PM, Adrian Valeanu wrote:<BR></DIV>
<BLOCKQUOTE cite=mid:52DFEB1A0200001C0001B8A4@mail.idiada.com type="cite">
<META name=GENERATOR content="MSHTML 10.00.9200.16618">
<DIV>Hi,<BR>I have set up glusterfs 3.4.2 over an 10Gig xfs filesystem on two CentOS 6 servers. The gluster filesystem is shared through Samba on both servers.<BR>Replication is working like a charm but file locking is not. Is it possible to have file locking working in this configuration in an way that Microsoft Office 2010</DIV>
<DIV>behaves like as if the files were on the same server? Does somebody have such an configuration?</DIV>
<DIV>I tried a lot of the Samba configurations found on the mailing list but none showed the expected results.</DIV></BLOCKQUOTE><BR>Are you using Samba with libgfapi? I am not sure if I understand your expectation on locking through Samba. Some more context would be nice.<BR><BR>-Lala<BR>
<BLOCKQUOTE cite=mid:52DFEB1A0200001C0001B8A4@mail.idiada.com type="cite">
<DIV>Thank you </DIV><BR>
<FIELDSET class=mimeAttachmentHeader></FIELDSET> <BR><PRE wrap="">_______________________________________________
Gluster-users mailing list
<A class=moz-txt-link-abbreviated href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</A>
<A class=moz-txt-link-freetext href="http://supercolony.gluster.org/mailman/listinfo/gluster-users">http://supercolony.gluster.org/mailman/listinfo/gluster-users</A></PRE></BLOCKQUOTE><BR></SPAN></BODY></HTML>