ctdb-scripts: Changed uses of "ctdb xpnn" to ctdb_get_pnn()
commit09b5e4978ab1df09f47156147848a6bf099ea665
authorMartin Schwenke <martin@meltin.net>
Sat, 18 Apr 2015 12:00:49 +0000 (18 22:00 +1000)
committerAmitay Isaacs <amitay@samba.org>
Mon, 27 Apr 2015 01:32:10 +0000 (27 03:32 +0200)
treec225dfc648946356dc7550cdba1fb39461db9b25
parentaf93ae1a540003824b32301d3c9f09c713f1fa7a
ctdb-scripts: Changed uses of "ctdb xpnn" to ctdb_get_pnn()

"ctdb xpnn" does not work when sysctl net.ipv4.ip_nonlocal_bind=1,
since it determines the node by attempting to bind to each addres in
the nodes file.  The solution is to not use "ctdb xpnn".  After the
initial call, ctdb_get_pnn() will be more efficient that "ctdb xpnn".

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/config/events.d/00.ctdb
ctdb/config/events.d/70.iscsi
ctdb/config/statd-callout