Signed-off-by: Vinit Agnihotri <vagnihotri@ddn.com>
Reviewed-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
that public IP addresses have changed so that service
reconfiguration will occur in the "ipreallocated" event.
+startipreallocate
+
+ This event is triggered on all nodes before ip address is
+ released on node. This can be used to perform action needed
+ to complete before ip is given away to other node.
+
+ Example: 60.nfs would use this event to put nfs-ganesha server
+ on all nodes in grace period so that locks can be reclaimed
+ safely in lock reclaim phase.
+
releaseip <interface> <ip-address> <netmask-bits>
This event is triggered for each public IP address released by
case CTDB_EVENT_MONITOR:
case CTDB_EVENT_SHUTDOWN:
case CTDB_EVENT_IPREALLOCATED:
+ case CTDB_EVENT_START_IPREALLOCATE:
return count_words(options) == 0;
case CTDB_EVENT_TAKE_IP: /* interface, IP address, netmask bits. */
CTDB_EVENT_SHUTDOWN,
CTDB_EVENT_RELEASE_IP,
CTDB_EVENT_IPREALLOCATED,
+ CTDB_EVENT_START_IPREALLOCATE,
};
size_t i;