diff --git a/ctdb/server/ctdb_takeover.c b/ctdb/server/ctdb_takeover.c index 87a97d53db7..27c9ac07234 100644 --- a/ctdb/server/ctdb_takeover.c +++ b/ctdb/server/ctdb_takeover.c @@ -895,6 +895,10 @@ static int ctdb_add_public_address(struct ctdb_context *ctdb, vnn->public_address = *addr; vnn->public_netmask_bits = mask; vnn->pnn = -1; + if (ctdb_sys_have_ip(addr)) { + DEBUG(DEBUG_ERR,("We are already hosting public address '%s'\n", ctdb_addr_to_str(addr))); + vnn->pnn = ctdb->pnn; + } for (i=0; vnn->ifaces[i]; i++) { ret = ctdb_add_local_iface(ctdb, vnn->ifaces[i]);