Martin Schwenke
2016-Oct-20 23:15 UTC
[Samba] CTDB and locking issues in 4.4.6 (Classic domain)
Hi Alex, On Thu, 20 Oct 2016 14:28:38 +0100, Alex Crow via samba <samba at lists.samba.org> wrote:> > > > It appears that samba is still using local databases and not clustered > > databases. > > > > What does "ctdb getdbmap" list? Is locking.tdb a clustered database? > > Do you have "clustering = yes" in smb.conf on all the nodes? > > > > Amitay. > > FYI as stated smbstatus -L shows locks from all hosts, prefixed by the PNN.That tells you that the locks are correctly stored in CTDB and smbstatus can find them. This means that smbd should be able to find them too. I can't help but think that smbd is somehow using different configuration than smbstatus. You don't have smbd/smbstatus installed from a package in /usr/ and the other left over in /usr/local/, or similar? In that case, they could be getting their configurations from different places... peace & happiness, martin
>> FYI as stated smbstatus -L shows locks from all hosts, prefixed by the PNN. > That tells you that the locks are correctly stored in CTDB and > smbstatus can find them. This means that smbd should be able to find > them too. > > I can't help but think that smbd is somehow using different > configuration than smbstatus. > > You don't have smbd/smbstatus installed from a package in /usr/ and the > other left over in /usr/local/, or similar? In that case, they could > be getting their configurations from different places... > > peace & happiness, > martinHi Martin, No, nothing like that. Installing the Sernet packages obsoletes the distro ones. FYI: # smbstatus -V Version 4.4.6-SerNet-RedHat-31.el7 # smbd -V Version 4.4.6-SerNet-RedHat-31.el7 # find /usr -name smbd /usr/sbin/smbd # find /usr -name smbstatus /usr/bin/smbstatus Thanks very much, 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).
>> You don't have smbd/smbstatus installed from a package in /usr/ and the >> other left over in /usr/local/, or similar? In that case, they could >> be getting their configurations from different places... >> >> peace & happiness, >> martin > Hi Martin, > > No, nothing like that. Installing the Sernet packages obsoletes the > distro ones. > > FYI: > > # smbstatus -V > Version 4.4.6-SerNet-RedHat-31.el7 > # smbd -V > Version 4.4.6-SerNet-RedHat-31.el7 > > # find /usr -name smbd > /usr/sbin/smbd > # find /usr -name smbstatus > /usr/bin/smbstatus > > Thanks very much, > > Alex > --Interestingly I have a setup here for testing for rollout of S4 AD. The file servers are in an AD domain and are running Sernet 4.4.5, so one version older than production. I have tested the locking on these and it works. The only difference I can find that in prod, /etc/default/sernet-samba-ctdb contains these lines: CTDB_MANAGES_SAMBA=yes CTDB_MANAGES_WINBIND=yes Whereas in the test environment they are: CTDB_SERVICE_WINBIND="sernet-samba-winbindd" CTDB_SERVICE_SMB="sernet-samba-smbd" I'm wondering if this is what's making the difference? 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).