<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.&nbsp;If the users access the same file on one server, one of them is not&nbsp;able to modify the file. This is possible (and the normal operation)</DIV>
<DIV>if one uses one server with Samba. I&nbsp;assumed that this kind of lock would be replicated too.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I did not knew about&nbsp;&nbsp;libgfapi and have not used it yesterday. I used the fuse mounted directory as data source for Samba.</DIV>
<DIV>&nbsp;</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>&nbsp;</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>&nbsp;&nbsp; vfs object = glusterfs<BR>&nbsp;&nbsp; glusterfs:volume = gv0<BR>&nbsp;&nbsp; path = /<BR>&nbsp;&nbsp; glusterfs:loglevel = 2<BR>&nbsp;&nbsp; glusterfs:logfile = /var/log/samba/glusterdata-vfs.log</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp; read only = no<BR>&nbsp;&nbsp; browseable = yes<BR>&nbsp;&nbsp; guest ok = no<BR>&nbsp;&nbsp; printable = no<BR>&nbsp;&nbsp; nt acl support = yes<BR>&nbsp;&nbsp; acl map full control = yes<BR></DIV>
<DIV>&nbsp;</DIV>
<DIV>Thank you for your attention.<BR><BR><BR>&gt;&gt;&gt; Lalatendu Mohanty &lt;lmohanty@redhat.com&gt; 22.01.2014 16:10 &gt;&gt;&gt;<BR><SPAN style="BACKGROUND-COLOR: #ffffff" text="#000000" bgcolor="#FFFFFF">&gt; </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>