diff options
| author | Ronnie Sahlberg <sahlberg@ronnie> | 2007-10-18 14:13:48 +1000 |
|---|---|---|
| committer | Ronnie Sahlberg <sahlberg@ronnie> | 2007-10-18 14:13:48 +1000 |
| commit | e4ec6e9d6b7ff7bfcabdba6825bb650e80652f40 (patch) | |
| tree | 8808cfc5bfc3f32a5ec0ff23943118ab7fdbde61 /ctdb | |
| parent | 537841fadb82dc697b5fa97e978ea1eecfb8c31e (diff) | |
| download | samba-e4ec6e9d6b7ff7bfcabdba6825bb650e80652f40.tar.gz samba-e4ec6e9d6b7ff7bfcabdba6825bb650e80652f40.tar.xz samba-e4ec6e9d6b7ff7bfcabdba6825bb650e80652f40.zip | |
flush the route cache when we have added the single public ip to the
node
cleanup and remove everything when we do a shutdown event
(This used to be ctdb commit 221432f45073bc7624803058c8bbf18838e7ceeb)
Diffstat (limited to 'ctdb')
| -rwxr-xr-x | ctdb/config/events.d/90.ipmux | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ctdb/config/events.d/90.ipmux b/ctdb/config/events.d/90.ipmux index 0ffefc4745..253d8e746b 100755 --- a/ctdb/config/events.d/90.ipmux +++ b/ctdb/config/events.d/90.ipmux @@ -22,6 +22,17 @@ case $cmd in ;; shutdown) + # remove the ip + ip addr del $CTDB_SINGLE_PUBLIC_IP/32 dev lo >/dev/null 2>/dev/null + + # remove any iptables rules + /sbin/iptables -D INPUT -i $CTDB_PUBLIC_INTERFACE -d $CTDB_SINGLE_PUBLIC_IP -j DROP 2> /dev/null + + # kill off any ipmux processes + killall -9 ctdb_ipmux >/dev/null 2>/dev/null + + # flush our route cache + echo 1 > /proc/sys/net/ipv4/route/flush ;; takeip) @@ -63,6 +74,9 @@ case $cmd in iptables -I INPUT 1 -d $CTDB_SINGLE_PUBLIC_IP -i $CTDB_PUBLIC_INTERFACE -j QUEUE >/dev/null 2>/dev/null ctdb_ipmux & + + # flush our route cache + echo 1 > /proc/sys/net/ipv4/route/flush ;; monitor) |
