From 234b86fb19aae7a43f1dd2c0f69b03164fe5aaca Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Fri, 23 Apr 2010 08:35:01 +1000 Subject: [PATCH] In the example script to remove all ip addresses after a ctdb crash, add the NATGW address as one to be removed in addition to the public addresses. --- config/ctdb-crash-cleanup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/ctdb-crash-cleanup.sh b/config/ctdb-crash-cleanup.sh index ca6a8386..420db767 100755 --- a/config/ctdb-crash-cleanup.sh +++ b/config/ctdb-crash-cleanup.sh @@ -22,7 +22,7 @@ ctdb status 2>/dev/null && { exit 0 } -cat "$CTDB_PUBLIC_ADDRESSES" | cut -d/ -f1 | while read _IP; do +(cat /etc/sysconfig/ctdb | egrep "^CTDB_NATGW_PUBLIC_IP" | sed -e "s/.*=//" -e "s/\/.*//";cat "$CTDB_PUBLIC_ADDRESSES" | cut -d/ -f1) | while read _IP; do _IP_HELD=`/sbin/ip addr show | grep "inet $_IP/"` [ -z "$_IP_HELD" ] || { _IFACE=`echo $_IP_HELD | sed -e "s/.*\s//"` -- 2.34.1