On Tue, Nov 30, 2010 at 08:58:51AM +0800, Mia Lueng wrote: > why not just using ethtool or other mii tools to detect the link failure in > IPaddr2 script?
Send a patch. But keep in mind that IPaddr2 is generic, supports addresses on IPoIB as well as bonded devices, bridges, vlans, others, and combinations thereof. And that, depending on kernel and driver version, output of ethtool and mii-tool may be just bogus. And you have to get it right for all of them. Good Luck. Then, consider that monitoring local link status is not good enough, as you don't really care for local link status but for connectivity, and an "OK" local link status tells nothing about actual connectivity. So you have to use some monitoring on the network or transport layer anyways, which will fail for non-OK local link status right away. Now, why bother with ethtool link status, then? -- : Lars Ellenberg : LINBIT | Your Way to High Availability : DRBD/HA support and consulting http://www.linbit.com DRBD® and LINBIT® are registered trademarks of LINBIT, Austria. _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
