connect(/var/lib/ctdb/ctdb.socket) failed: Connection refused
Martin Schwenke
martin at meltin.net
Wed Jul 23 18:16:04 MDT 2014
Hi Steve,
Just wondering if you worked out what the problem was here or whether
there is something we need to fix... :-)
peace & happiness,
martin
On Wed, 9 Jul 2014 20:48:23 +1000, Martin Schwenke <martin at meltin.net>
wrote:
> On Wed, 09 Jul 2014 11:33:14 +0200, steve <steve at steve-ss.com> wrote:
>
> > Sorry to post here but I got nothing on either the samba or my ha-distro
> > list. TIA. Steve
> > - - -
> > 2-node cluster:
> >
> > We cannot start smbd:
> [...]
> > params.c:pm_process() - Processing configuration file
> > "/etc/samba/smb.conf"
> > Processing section "[global]"
> > connect(/var/lib/ctdb/ctdb.socket) failed: Connection refused
> > messaging_ctdbd_init failed: NT_STATUS_CONNECTION_REFUSED
> > 2 node drbd cluster with ocfs2.
> > both nodes:
> > openSUSE 4.1.9 with drbd 8.4 and ctdbd 2.3, also tried with 2.5.3
> > All seems OK with ctdb:
> > n1:
> > ctdb status
> > Number of nodes:2
> > pnn:0 192.168.0.10 OK (THIS NODE)
> > pnn:1 192.168.0.11 OK
> > Generation:1187222392
> > Size:2
> > hash:0 lmaster:0
> > hash:1 lmaster:1
> > Recovery mode:NORMAL (0)
> > Recovery master:0
> [...]
> > smb.conf:
> > [global]
> > realm = HH3.SITE
> > security = ADS
> > kerberos method = system keytab
> > netbios name = smbcluster
> > clustering = Yes
> [...]
> > /etc/sysconfig/ctdb
> >
> > CTDB_SOCKET=/var/lib/ctdb/ctdb.socket
>
> Weird! smbd looks like it wants to use the same socket that is
> configured for CTDB, so it looks like is should work.
>
> Ideas:
>
> * The default compile-time socket location
> is /var/run/ctdb/ctdbd.socket. Although not what is configured,
> in /etc/sysconfig/ctdb, is that what ctdbd is listening on?
>
> * Does:
>
> netstat -xlnp | grep ctdb
>
> tell you anything about which socket ctdbd is listening on?
>
> * Permissions? If both are indeed trying to use the same socket, what
> are the permissions on the socket and the directories containing it?
> If it looks OK, is there some SELinux weirdness? AppArmor?
>
> peace & happiness,
> martin
More information about the samba-technical
mailing list