CTDB Assigned IP not on an interface

Martin Schwenke martin at meltin.net
Mon Sep 30 05:48:27 UTC 2019


Hi Heinrich,

On Fri, 27 Sep 2019 12:12:37 +0200, Heinrich Mislik via samba-technical
<samba-technical at lists.samba.org> wrote:

> I think, the package ctdb-4.9.1-6.el7.x86_64 is somehow broken. After
> a fresh install I had to do several things, to get it working:

> Create missing directories:
> 
> /etc/ctdb/events/legacy
> /var/lib/ctdb/state
> /var/lib/ctdb/persistent
> /var/lib/ctdb/volatile

Please report this as a bug to the distribution (CentOS?).

> Create missiong symlinks in /etc/ctdb/events/legacy/

> ls -l /etc/ctdb/events/legacy/
> total 0
> lrwxrwxrwx 1 root root 44 Sep 20 17:06 00.ctdb.script -> /usr/share/ctdb/events/legacy/00.ctdb.script
> lrwxrwxrwx 1 root root 47 Sep 20 17:06 01.reclock.script -> /usr/share/ctdb/events/legacy/01.reclock.script
> lrwxrwxrwx 1 root root 46 Sep 20 17:06 05.system.script -> /usr/share/ctdb/events/legacy/05.system.script
> lrwxrwxrwx 1 root root 49 Sep 20 17:06 10.interface.script -> /usr/share/ctdb/events/legacy/10.interface.script
> lrwxrwxrwx 1 root root 47 Sep 19 17:40 49.winbind.script -> /usr/share/ctdb/events/legacy/49.winbind.script
> lrwxrwxrwx 1 root root 45 Sep 19 18:27 50.samba.script -> /usr/share/ctdb/events/legacy/50.samba.script

> The SPEC file in samba source handles the symlinks in a post install
> script, thats where I got that list.

Yeah, the distribution package should try to enable at least the basic
scripts.  However, this can be quite difficult to get right.  You'll
notice that the sample CTDB packaging that you refer to only creates
the 1st 4 of these if the 1st one does not exist.  It doesn't enable
49.winbind and 50.samba.

peace & happiness,
martin



More information about the samba-technical mailing list