[SCM] CTDB repository - branch 1.2.27 updated - ctdb-1.9.1-409-g8411e70
Ronnie Sahlberg
sahlberg at samba.org
Tue Apr 12 17:04:42 MDT 2011
The branch, 1.2.27 has been updated
via 8411e70e021f5ac90731059a02bec2a29ffc43b2 (commit)
from 4dcbd355fe95adf0f0380bcd447effc6862b7d93 (commit)
http://gitweb.samba.org/?p=ctdb.git;a=shortlog;h=1.2.27
- Log -----------------------------------------------------------------
commit 8411e70e021f5ac90731059a02bec2a29ffc43b2
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Wed Apr 13 07:51:36 2011 +1000
bonding mode 4 monitoring:
we can not just check if MII Status is up for bonding mode 4, since the kernel will always report the bond device as UP
even if all cables are disconneccted.
For mode 4, ignore the status of the bond device and instead chek if at least one slave interface is up
when determining if the device is good or bad
-----------------------------------------------------------------------
Summary of changes:
config/events.d/10.interface | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
Changeset truncated at 500 lines:
diff --git a/config/events.d/10.interface b/config/events.d/10.interface
index 2ca8eae..e0689c4 100755
--- a/config/events.d/10.interface
+++ b/config/events.d/10.interface
@@ -63,6 +63,14 @@ monitor_interfaces()
ctdb setifacelink $IFACE down
continue;
}
+ grep -q '^Bonding Mode: IEEE 802.3ad Dynamic link aggregation' /proc/net/bonding/$REALIFACE && {
+ grep 'MII Status:' /proc/net/bonding/$REALIFACE | tail -n +2 | grep -q '^MII Status: up' || {
+ echo No active slaves for 802.ad bond device $REALIFACE
+ ctdb setifacelink $IFACE down
+ fail=1
+ continue
+ }
+ }
ok=1 # we only set ok for interfaces known to ctdbd
ctdb setifacelink $IFACE up
continue;
--
CTDB repository
More information about the samba-cvs
mailing list