Martin Schwenke
2016-Nov-03 06:34 UTC
[Samba] CTDB and locking issues in 4.4.6 (Classic domain)
Hi Alex, On Wed, 2 Nov 2016 11:29:13 +0000, Alex Crow via samba <samba at lists.samba.org> wrote:> On 02/11/16 07:29, Ralph Böhme wrote: > > > On Tue, Nov 01, 2016 at 09:56:06PM +0000, Alex Crow wrote: > [...] > >> Hi Ralph, > >> > >> Thanks for that. Can I post the above back to the ML with links to > >> appropriate logs? > > sure. > > > > Btw, I forgot to mention that I did test this on my own devel cluster, > > both development version from git master as well as production 4.4, > > and could not reproduce the issue. > > > > -slow > > Is anyone able to assist with this issue? I have produced level 10 logs > but not sure how to debug CTDB.If you lock the file from a client attached to 1 node and "smbstatus -L" shows the lock from all the nodes then CTDB is doing what it is meant to. That is, it makes sure that Samba processes see the same TDB records on all nodes. Not sure what's going on with the rest of it. Doing a bit of testing... peace & happiness, martin
Ralph Böhme
2016-Nov-03 07:13 UTC
[Samba] CTDB and locking issues in 4.4.6 (Classic domain)
Hi Martin, On Thu, Nov 03, 2016 at 05:34:21PM +1100, Martin Schwenke via samba wrote:> On Wed, 2 Nov 2016 11:29:13 +0000, Alex Crow via samba > <samba at lists.samba.org> wrote: > > > On 02/11/16 07:29, Ralph Böhme wrote: > > > > > On Tue, Nov 01, 2016 at 09:56:06PM +0000, Alex Crow wrote: > > [...] > > >> Hi Ralph, > > >> > > >> Thanks for that. Can I post the above back to the ML with links to > > >> appropriate logs? > > > sure. > > > > > > Btw, I forgot to mention that I did test this on my own devel cluster, > > > both development version from git master as well as production 4.4, > > > and could not reproduce the issue. > > > > > > -slow > > > > Is anyone able to assist with this issue? I have produced level 10 logs > > but not sure how to debug CTDB. > > If you lock the file from a client attached to 1 node and > "smbstatus -L" shows the lock from all the nodes then CTDB is doing > what it is meant to. That is, it makes sure that Samba processes see > the same TDB records on all nodes.hm, smbstatus does a db traverse while smbclient will trigger a migrate record, so both use different ctdb protcol ops, don't they?> Not sure what's going on with the rest of it. Doing a bit of testing...I tested on a 3 node test cluster, with 4.4.x and master, works as expected. -slow
Martin Schwenke
2016-Nov-03 08:51 UTC
[Samba] CTDB and locking issues in 4.4.6 (Classic domain)
On Thu, 3 Nov 2016 08:13:53 +0100, Ralph Böhme via samba <samba at lists.samba.org> wrote:> On Thu, Nov 03, 2016 at 05:34:21PM +1100, Martin Schwenke via samba wrote:> > If you lock the file from a client attached to 1 node and > > "smbstatus -L" shows the lock from all the nodes then CTDB is doing > > what it is meant to. That is, it makes sure that Samba processes see > > the same TDB records on all nodes. > > hm, smbstatus does a db traverse while smbclient will trigger a > migrate record, so both use different ctdb protcol ops, don't they?Sure. I was glossing over a lot of details... but I hope we would notice major breakage like that... :-)> > Not sure what's going on with the rest of it. Doing a bit of testing... > > I tested on a 3 node test cluster, with 4.4.x and master, works as > expected.Yay! peace & happiness, martin
>> Not sure what's going on with the rest of it. Doing a bit of testing... > I tested on a 3 node test cluster, with 4.4.x and master, works as > expected. > > -slow >Hi there, Can you send your smb.conf so I can compare it to mine? Cheers, Alex -- This message is intended only for the addressee and may contain confidential information. Unless you are that person, you may not disclose its contents or use it in any way and are requested to delete the message along with any attachments and notify us immediately. This email is not intended to, nor should it be taken to, constitute advice. The information provided is correct to our knowledge & belief and must not be used as a substitute for obtaining tax, regulatory, investment, legal or any other appropriate advice. "Transact" is operated by Integrated Financial Arrangements Ltd. 29 Clement's Lane, London EC4N 7AE. Tel: (020) 7608 4900 Fax: (020) 7608 5300. (Registered office: as above; Registered in England and Wales under number: 3727592). Authorised and regulated by the Financial Conduct Authority (entered on the Financial Services Register; no. 190856).