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)
commitb93d29f43f5306c244c887b54a77bca8a061daf2
tree87672fc03724243d6e228fae08552f8f7e58a161
parent35627c7450a03f36a353c3dd7cce31ce3433a7ff
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.
config/ctdb.init
config/ctdb.sysconfig
include/ctdb_private.h
server/ctdb_server.c
server/ctdbd.c
tcp/tcp_connect.c