summaryrefslogtreecommitdiffstats
path: root/ctdb/tools/ctdb.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronniesahlberg@gmail.com>2009-10-06 12:11:32 +1100
committerRonnie Sahlberg <ronniesahlberg@gmail.com>2009-10-06 12:11:32 +1100
commit166b1c97b4cebd54d07ef49ff6c06cb8e1bb9b9c (patch)
treede2272cbfc03a2401092d9c892f3c06300a7a942 /ctdb/tools/ctdb.c
parent617e393f6b956b123c19f5b932ccc05848083c8e (diff)
downloadsamba-166b1c97b4cebd54d07ef49ff6c06cb8e1bb9b9c.tar.gz
samba-166b1c97b4cebd54d07ef49ff6c06cb8e1bb9b9c.tar.xz
samba-166b1c97b4cebd54d07ef49ff6c06cb8e1bb9b9c.zip
add a new message to ask the recovery daemon to temporarily disable checking ip address consistency.
This is useful when we are moving addresses using moveip in the cluster since otherwise if we collide with the recovery daemons own check we could cause a recovery (This used to be ctdb commit 9c63858c0b22c81eaccb9865a414af0bbb2833d4)
Diffstat (limited to 'ctdb/tools/ctdb.c')
-rw-r--r--ctdb/tools/ctdb.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/ctdb/tools/ctdb.c b/ctdb/tools/ctdb.c
index dfac74d0d4..6ae42953ff 100644
--- a/ctdb/tools/ctdb.c
+++ b/ctdb/tools/ctdb.c
@@ -862,10 +862,22 @@ static int move_ip(struct ctdb_context *ctdb, ctdb_sock_addr *addr, uint32_t pnn
struct ctdb_public_ip ip;
int i, ret;
uint32_t *nodes;
+ uint32_t disable_time;
TDB_DATA data;
struct ctdb_node_map *nodemap=NULL;
TALLOC_CTX *tmp_ctx = talloc_new(ctdb);
+ disable_time = 30;
+ data.dptr = (uint8_t*)&disable_time;
+ data.dsize = sizeof(disable_time);
+ ret = ctdb_send_message(ctdb, CTDB_BROADCAST_CONNECTED, CTDB_SRVID_DISABLE_IP_CHECK, data);
+ if (ret != 0) {
+ DEBUG(DEBUG_ERR,("Failed to send message to disable ipcheck\n"));
+ return -1;
+ }
+
+
+
/* read the public ip list from the node */
ret = ctdb_ctrl_get_public_ips(ctdb, TIMELIMIT(), pnn, ctdb, &ips);
if (ret != 0) {