On Fri, Jun 24, 2011 at 10:40:36AM +0200, Dejan Muhamedagic wrote:
> Hi,
> 
> On Tue, May 17, 2011 at 04:10:14PM +0400, Alexander Polyakov wrote:
> > IPaddr not work correctly on large routing tables on Linux
> > 
> > If the contents of the routing table is large (eg, full view, derived
> > from the quagga) then the node can not remove the public IP address.
> > In the top hang two Process: route and grep "remove ip ". Because of
> > this, there is no valid switch node.
> 
> Just how big is your routing table? What does "time route -n"
> show?

Oh, a full routing table can get quite large.
The BGP table currently has > 350k entries ;-)

Besides, there is no point in doing
  route -n | grep $IP first,
  and then doing route -n del -host $IP

The grep is wrong, anyways, as it may match more than just the
intended IP.  Testing on non-empty output ([ `x | y` ]) instead
of the exit code (x | y >/dev/null) looks bit strange as well.
And, if it's not there, route del may complain,
but all is good and shiny, still.

So I'm fine with just dropping that if route -n | grep ; then.

Possibly IPaddr2 works better for Alexander?

-- 
: 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

Reply via email to