I've set CTDB_NODES in /etc/default/sernet-samba-ctdb to a non-default
path. ctdbd works fine, but 'ctdb reloadnodes' seems to ignore the
setting of CTDB_NODES and uses the default instead. It fails with
'Failed to read nodes file "/etc/ctdb/nodes"'.
I'm using sernet-samba version 99:4.7.0-1 on Ubuntu 14.04 (ctdb version
We are aware of this problem. The main issue is that the ctdb tool does not read the configuration file.
However, you can work around this problem by setting an environment variable CTDB_NODES before running "ctdb reloadnodes".
If you run ctdb command as follows, it should do the right thing.
# CTDB_NODES=/path/to/nodes/file ctdb reloadnodes
I worked around it by making a symlink from /etc/ctdb/nodes to the actual
file. I just found it confusing that the path can be configured but the
ctdb command ignores it.
In Samba 4.9 the location of the nodes file is no longer configurable (we have also removed many other configuration variables). It must now go in the CTDB configuration directory. However, the documentation mentions that if you want to put the file somewhere else you can create a symlink from the expected place to the place where you want it. ;-)
Are you happy to close this? Or should we wait until 4.9 is officially released?
please close this bug. Thanks!
Fixed in 4.9 by not providing a configurable socket location that is ignored
by the ctdb command.