]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
send out gratious arps when we are starting up serving the "single
authorRonnie Sahlberg <sahlberg@ronnie>
Tue, 9 Oct 2007 02:00:12 +0000 (12:00 +1000)
committerRonnie Sahlberg <sahlberg@ronnie>
Tue, 9 Oct 2007 02:00:12 +0000 (12:00 +1000)
public ip" but before we start the ipmux tool

(This used to be ctdb commit dad1a80f39763314825939095f7656c13dcdbdc3)

ctdb/config/events.d/90.ipmux

index 1653f0447e327eeaddaecf23b12ff3c2ea00a832..6b3a436aac6671bd6c927bcca47e27ab4ab47490 100755 (executable)
@@ -50,6 +50,9 @@ case $cmd in
        ip addr del $CTDB_SINGLE_PUBLIC_IP/32 dev lo >/dev/null 2>/dev/null
        ip addr add $CTDB_SINGLE_PUBLIC_IP/32 dev lo >/dev/null 2>/dev/null
 
+       # send out a gratious arp so our peers will update their arp tables
+       ctdb gratiousarp $CTDB_SINGLE_PUBLIC_IP $CTDB_PUBLIC_INTERFACE >/dev/null 2>/dev/null
+
        # mark all these for queueing
        iptables -I INPUT 1 -d $CTDB_SINGLE_PUBLIC_IP -i $CTDB_PUBLIC_INTERFACE -j QUEUE >/dev/null 2>/dev/null