<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>over the weekend&nbsp;I installed ctdb from here <A href="https://ftp.samba.org/pub/ctdb/packages/redhat/RHEL6/2.5.1/">https://ftp.samba.org/pub/ctdb/packages/redhat/RHEL6/2.5.1/</A>&nbsp;.</DIV>
<DIV>Now the situation is even worse than before. The tdb databases of Samba are clustered now, but of course all of them are clustered.</DIV>
<DIV>I can join the first server in to the AD domain without problems. When I join the second one (the tdb are clustered) it messes the join of the first.</DIV>
<DIV>This might be desirable in an HA situation where an ip takeover happens but for me it is contra productive. This is mentioned somewhere in the samba </DIV>
<DIV>documentation. It would be nice to only have the tdb clustered where the locks happen but maybe this use case is too strange.</DIV>
<DIV>And of course this is no Glusterfs problem anymore.</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR><BR>&gt;&gt;&gt; Paul Robert Marino &lt;prmarino1@gmail.com&gt; 23.01.2014 23:12 &gt;&gt;&gt;<BR>Ira<BR><BR>In clustered mode stores locking information in a TDB so thats why you<BR>need to configure CTDB and tell samba its clustered in the configed so<BR>it will keep the sync databases in sync.<BR><BR>By the way samba does still do spinlocks or at least it did last year<BR>here an intresting thread where they were talking about spinlocks,<BR>fcntl locks and TDB based locks<BR><A href="https://groups.google.com/forum/#!topic/mailing.unix.samba-technical/hM-t2pBf_Hs">https://groups.google.com/forum/#!topic/mailing.unix.samba-technical/hM-t2pBf_Hs</A><BR><BR>That said spinlocks are just the first thing that came to mind<BR>(because that was part of many discussions back in the 2.x days) and<BR>was not best choice of words on my part.<BR><BR><BR><BR><BR>On Thu, Jan 23, 2014 at 4:48 PM, Paul Robert Marino &lt;prmarino1@gmail.com&gt; wrote:<BR>&gt; check this article its fairly strait forward <A href="http://ctdb.samba.org/samba.html">http://ctdb.samba.org/samba.html</A><BR>&gt; if you don't get this configured properly then your locking wouldn't work.<BR>&gt;<BR>&gt; by the way oplocks need to be enabled based on an other post it looks<BR>&gt; like you turned off all locking support.<BR>&gt;<BR>&gt;<BR>&gt; On Thu, Jan 23, 2014 at 3:05 PM, Paul Robert Marino &lt;prmarino1@gmail.com&gt; wrote:<BR>&gt;&gt; Are you using CTDB on a shared gluster volume instead of TDB on a local<BR>&gt;&gt; volume which is samba default.<BR>&gt;&gt;<BR>&gt;&gt; If not this may explain your issue because Samba stores&nbsp; or at least did ate<BR>&gt;&gt; one time store spinlocks in the TDB for speed.<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt; -- Sent from my HP Pre3<BR>&gt;&gt;<BR>&gt;&gt; ________________________________<BR>&gt;&gt; On Jan 23, 2014 10:31, Adrian Valeanu &lt;Adrian.Valeanu@idiada.com&gt; wrote:<BR>&gt;&gt;<BR>&gt;&gt; Hi,<BR>&gt;&gt; I try to replicate some data that resides on two CentOS servers. The<BR>&gt;&gt; replicated data should be shared using Samba to the users. It should be<BR>&gt;&gt; avoided that two users<BR>&gt;&gt; try to work on the same file using MS Office. If the users access the same<BR>&gt;&gt; file on one server, one of them is not able to modify the file. This is<BR>&gt;&gt; possible (and the normal operation)<BR>&gt;&gt; if one uses one server with Samba. I assumed that this kind of lock would be<BR>&gt;&gt; replicated too.<BR>&gt;&gt;<BR>&gt;&gt; I did not knew about&nbsp; libgfapi and have not used it yesterday. I used the<BR>&gt;&gt; fuse mounted directory as data source for Samba.<BR>&gt;&gt;<BR>&gt;&gt; Yesterday night I updated both CentOS servers. They are CentOS 6.5 now. Now<BR>&gt;&gt; locking does not happen at all any more. After you mentioned libgfapi I<BR>&gt;&gt; found this:<BR>&gt;&gt; <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><BR>&gt;&gt;<BR>&gt;&gt; I managed to compile the module and switched to samba-glusterfs-vfs. But I<BR>&gt;&gt; still have no locking<BR>&gt;&gt; My Samba configuration looks like this:<BR>&gt;&gt; [glusterdata-vfs]<BR>&gt;&gt;&nbsp;&nbsp;&nbsp; vfs object = glusterfs<BR>&gt;&gt;&nbsp;&nbsp;&nbsp; glusterfs:volume = gv0<BR>&gt;&gt;&nbsp;&nbsp;&nbsp; path = /<BR>&gt;&gt;&nbsp;&nbsp;&nbsp; glusterfs:loglevel = 2<BR>&gt;&gt;&nbsp;&nbsp;&nbsp; glusterfs:logfile = /var/log/samba/glusterdata-vfs.log<BR>&gt;&gt;<BR>&gt;&gt;&nbsp;&nbsp;&nbsp; read only = no<BR>&gt;&gt;&nbsp;&nbsp;&nbsp; browseable = yes<BR>&gt;&gt;&nbsp;&nbsp;&nbsp; guest ok = no<BR>&gt;&gt;&nbsp;&nbsp;&nbsp; printable = no<BR>&gt;&gt;&nbsp;&nbsp;&nbsp; nt acl support = yes<BR>&gt;&gt;&nbsp;&nbsp;&nbsp; acl map full control = yes<BR>&gt;&gt;<BR>&gt;&gt; Thank you for your attention.<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt; Lalatendu Mohanty &lt;lmohanty@redhat.com&gt; 22.01.2014 16:10 &gt;&gt;&gt;<BR>&gt;&gt;&gt;<BR>&gt;&gt; On 01/22/2014 08:30 PM, Adrian Valeanu wrote:<BR>&gt;&gt;<BR>&gt;&gt; Hi,<BR>&gt;&gt; I have set up glusterfs 3.4.2 over an 10Gig xfs filesystem on two CentOS 6<BR>&gt;&gt; servers. The gluster filesystem is shared through Samba on both servers.<BR>&gt;&gt; Replication is working like a charm but file locking is not. Is it possible<BR>&gt;&gt; to have file locking working in this configuration in an way that Microsoft<BR>&gt;&gt; Office 2010<BR>&gt;&gt; behaves like as if the files were on the same server? Does somebody have<BR>&gt;&gt; such an configuration?<BR>&gt;&gt; I tried a lot of the Samba configurations found on the mailing list but none<BR>&gt;&gt; showed the expected results.<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt; Are you using Samba with libgfapi? I am not sure if I understand your<BR>&gt;&gt; expectation on locking through Samba. Some more context would be nice.<BR>&gt;&gt;<BR>&gt;&gt; -Lala<BR>&gt;&gt;<BR>&gt;&gt; Thank you<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt; _______________________________________________<BR>&gt;&gt; Gluster-users mailing list<BR>&gt;&gt; Gluster-users@gluster.org<BR>&gt;&gt; <A href="http://supercolony.gluster.org/mailman/listinfo/gluster-users">http://supercolony.gluster.org/mailman/listinfo/gluster-users</A><BR>&gt;&gt;<BR>&gt;&gt;<BR></DIV></BODY></HTML>