The Samba-Bugzilla – Bug 13064
'ctdb reloadnodes' ignores value of CTDB_NODES
Last modified: 2017-10-06 14:34:39 UTC
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.