[Samba] CTDB Path
Martin Schwenke
martin at meltin.net
Tue May 8 00:25:17 UTC 2018
Hi Micha,
On Mon, 7 May 2018 15:46:50 +0200, Micha Ballmann
<ballmann at uni-landau.de> wrote:
> i'm still trying to find out what is the right path for ctdb.conf
> (ubuntu 18.04, samba was compiled from source!!).
>
> When im trying to start CTDB without any config file, my log in
> /usr/local/samba/var/log/log.ctdb shows me:
>
> 2018/05/07 12:56:44.363513 ctdbd[4503]: Failed to read nodes file
> "/usr/local/samba/etc/ctdb/nodes"
> 2018/05/07 12:56:44.363546 ctdbd[4503]: Failed to load nodes file
> "/usr/local/samba/etc/ctdb/nodes"
>
> I thought, thats nice, lets create some config files like:
>
> /usr/local/samba/etc/ctdb/*nodes*
>
> /usr/local/samba/etc/ctdb/*public_addresses*
> ****
>
> /usr/local/samba/etc/ctdb/*ctdbd.conf*
>
> After creation, i tried to start CTDB:
>
> /usr/local/samba/sbin/ctdbd
>
> First I thought it works, but CTDB ignored my ctdbd.conf and
> public_addresses files.
>
> logfile shows:
>
> ####################################################################################
>
> 2018/05/07 15:31:39.654278 ctdbd[2092]: CTDB starting on node
> 2018/05/07 15:31:39.654461 ctdbd[2092]: Recovery lock not set
> 2018/05/07 15:31:39.658143 ctdbd[2093]: Starting CTDBD (Version 4.7.7)
> as PID: 2093
> 2018/05/07 15:31:39.659359 ctdbd[2093]: Removed stale socket
> /usr/local/samba/var/run/ctdb/ctdbd.socket
> 2018/05/07 15:31:39.659502 ctdbd[2093]: Listening to ctdb socket
> /usr/local/samba/var/run/ctdb/ctdbd.socket
> 2018/05/07 15:31:39.659560 ctdbd[2093]: Set real-time scheduler priority
> 2018/05/07 15:31:39.659836 ctdbd[2093]: Starting event daemon
> /usr/local/samba/libexec/ctdb/ctdb_eventd -e
> /usr/local/samba/etc/ctdb/events.d -s
> /usr/local/samba/var/run/ctdb/eventd.sock -P 2093 -l
> file:/usr/local/samba/var/log/log.ctdb -d NOTICE
> 2018/05/07 15:31:39.660333 ctdbd[2093]: connect() failed, errno=2
> 2018/05/07 15:31:39.686379 ctdb-eventd[2094]: listening on
> /usr/local/samba/var/run/ctdb/eventd.sock
> 2018/05/07 15:31:39.686576 ctdb-eventd[2094]: daemon started, pid=2094
> 2018/05/07 15:31:40.660741 ctdbd[2093]: Set runstate to INIT (1)
> 2018/05/07 15:31:40.863914 ctdb-eventd[2094]: *10.interface: No public
> addresses file found. Nothing to do for 10.interfaces*
> [...]
> ####################################################################################
>
> The "public_addresses" file is on the same location like the "nodes" file!
Current versions of CTDB need to be started using ctdbd_wrapper. This
wrapper script translates variables from the ctdbd.conf configuration
file into command-line options for the daemon. Yes, this unusual...
but it is historical.
Starting with Samba 4.9, CTDB will use a new ctdb.conf (rather than
ctdbd.conf) Samba-style configuration file and the wrapper will not
be necessary (and may well be gone).
Additionally, there will be no option for configuring the location of
the public addresses file - if you haven't disabled IP failover then
CTDB will expect to find the public addresses file in a standard
place. If someone really wants to put that file somewhere else then
they can use a symbolic link.
Things are getting simpler... :-)
peace & happiness,
martin
More information about the samba
mailing list