to make it easier/less disruptive to add nodes to a running cluster
authorRonnie Sahlberg <sahlberg@samba.org>
Tue, 19 Feb 2008 03:44:48 +0000 (14:44 +1100)
committerRonnie Sahlberg <sahlberg@samba.org>
Tue, 19 Feb 2008 03:44:48 +0000 (14:44 +1100)
commit9f99b44fd1b68f7bcb0305d49f6f648813451ef6
tree13f1eac1f1ac052c35232324cf8b6bf0d41c352c
parent87b38e01b2f27314a8283b7fd079e5348d2e97fd
to make it easier/less disruptive to add nodes to a running cluster

add a new control that causes the node to drop the current nodes list
and reread it from the nodes file.
During this operation, the node will also drop the tcp layer and restart it.

When we drop the tcp layer, by talloc_free()ing the ctcp structure
add a destructor to ctcp so that we also can clean up and remove the references in the ctdb structure to the transport layer

add two new commands for the ctdb tool.
one to list all nodes in the nodesfile and the second a command to trigger a node to drop the transport and reinitialize it with the nde nodes file

(This used to be ctdb commit 4bc20ac73e9fa94ffd43cccb6eeb438eeff9963c)
ctdb/client/ctdb_client.c
ctdb/include/ctdb.h
ctdb/include/ctdb_private.h
ctdb/server/ctdb_control.c
ctdb/server/ctdb_recover.c
ctdb/server/ctdb_server.c
ctdb/server/ctdbd.c
ctdb/tcp/ctdb_tcp.h
ctdb/tcp/tcp_init.c
ctdb/tools/ctdb.c