From: Martin Schwenke Date: Sun, 19 Apr 2015 23:53:23 +0000 (+1000) Subject: ctdb-scripts: New configuration variable CTDB_NODE_ADDRESS X-Git-Tag: tdb-1.3.5~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0621f07eb482daf7495f6314b0af32853573cb82;p=thirdparty%2Fsamba.git ctdb-scripts: New configuration variable CTDB_NODE_ADDRESS 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. Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs Autobuild-User(master): Amitay Isaacs Autobuild-Date(master): Mon Apr 27 06:10:08 CEST 2015 on sn-devel-104 --- diff --git a/ctdb/config/ctdbd_wrapper b/ctdb/config/ctdbd_wrapper index f50efe90ac3..aac83696917 100755 --- a/ctdb/config/ctdbd_wrapper +++ b/ctdb/config/ctdbd_wrapper @@ -114,6 +114,7 @@ build_ctdb_options () maybe_set "--logging" "$CTDB_LOGGING" maybe_set "--nlist" "$CTDB_NODES" maybe_set "--socket" "$CTDB_SOCKET" + maybe_set "--listen" "$CTDB_NODE_ADDRESS" maybe_set "--public-addresses" "$CTDB_PUBLIC_ADDRESSES" maybe_set "--public-interface" "$CTDB_PUBLIC_INTERFACE" maybe_set "--dbdir" "$CTDB_DBDIR" diff --git a/ctdb/doc/ctdbd.conf.5.xml b/ctdb/doc/ctdbd.conf.5.xml index 8a62c86615b..cc56d790988 100644 --- a/ctdb/doc/ctdbd.conf.5.xml +++ b/ctdb/doc/ctdbd.conf.5.xml @@ -343,6 +343,29 @@ + + CTDB_NODE_ADDRESS=FILENAME + + + IPADDR is the private IP address that ctdbd will bind to. + Corresponds to . + + + By default ctdbd will select the first address from the + nodes list that in can bind to. See also + CTDB_NODES. + + + 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. + + + + CTDB_PUBLIC_ADDRESSES=FILENAME