Add a new parameter to /etc/sysconfig/ctdb
authorRonnie Sahlberg <sahlberg@samba.org>
Thu, 21 Feb 2008 22:42:52 +0000 (09:42 +1100)
committerRonnie Sahlberg <sahlberg@samba.org>
Thu, 21 Feb 2008 22:42:52 +0000 (09:42 +1100)
commit39539f60444b71306d5cd2a659b3bfb0f4e3de4f
tree6ab1083741b08175ee57b9d3c185736bab702956
parentc8503e06cd1f76af66d6256c38c40d9fa55599bd
Add a new parameter to /etc/sysconfig/ctdb
CTDB_START_AS_DISABLED="yes"

and command line argument
--start-as-disabled

When set, this makes the ctdb node to always start in DISABLED mode and will thus not host any public ip addresses.
The administrator must manually "ctdb enable" the node after it has started when the administrator wants the node to start hosting public ip addresses.

Using this option it is possible to start ctdb on a node without causing any reallocation of ip addresses when it is starting. The node will still merge with the cluster and there will still be a recovery phase but the ip address allocations will not change in the cluster.

(This used to be ctdb commit b93d29f43f5306c244c887b54a77bca8a061daf2)
ctdb/config/ctdb.init
ctdb/config/ctdb.sysconfig
ctdb/include/ctdb_private.h
ctdb/server/ctdb_server.c
ctdb/server/ctdbd.c
ctdb/tcp/tcp_connect.c