adding/removing IP addresses causing routes might be dropped by the system.
The easiest workaround for this is to unconditionally try to reapply
all static routes for all interfaces once ipreallocation has finished,
not just adding them back on the affected interface.
This worksaround a funky issue in
CQ S1023538
exit 0
}
-case "$1" in
- takeip|releaseip)
- iface=$2
- cat $CTDB_BASE/static-routes | egrep "^$iface " | while read IFACE DEST GW; do
- ip route add $DEST via $GW dev $IFACE >/dev/null 2>/dev/null
- done
- ;;
-
+case "$1" in
+ recovered|ipreallocated)
+ cat $CTDB_BASE/static-routes | while read IFACE DEST GW; do
+ ip route add $DEST via $GW dev $IFACE >/dev/null 2>/dev/null
+ done
+ ;;
*)
ctdb_standard_event_handler "$@"
;;