1. Edit /etc/sysctl.conf net.ipv4.ip_nonlocal_bind=1 net.ipv6.ip_nonlocal_bind=1 2. sysctl -p 3. restart ctdb, and it will fail
Hi, This is expected behaviour and is documented in the ctdb.conf(5) manual page, also available at: https://ctdb.samba.org/manpages/ctdb.conf.5.html node address = IPADDR IPADDR is the private IP address that ctdbd will bind to. This option is only required when automatic address detection can not be used. This can be the case when running multiple ctdbd daemons/nodes on the same physical host (usually for testing), using InfiniBand for the private network or on Linux when sysctl net.ipv4.ip_nonlocal_bind=1. Default: CTDB selects the first address from the nodes list that it can bind to. See also the PRIVATE ADDRESS section in ctdb(7). So, you need to set "node address" in ctdb.conf on each node. This was also last discussed on the mailing list in January 2020: https://lists.samba.org/archive/samba-technical/2020-January/134785.html Note that the kernel documentation (e.g. https://www.kernel.org/doc/html/v5.12/networking/ip-sysctl.html) says: If set, allows processes to bind() to non-local IP addresses, which can be quite useful - but may break some applications. In this case CTDB doesn't break but does require that you provide a fixed node address. I'll close this as "invalid" because it is a documented issue.
Got it. Thanks!