[Linux-HA] Patch to fix long interface names in IPaddr.

Sebastian Reitenbach sebastia at l00-bugdead-prods.de
Fri Nov 2 04:47:12 MDT 2007


Hi,

General Linux-HA mailing list <linux-ha at lists.linux-ha.org> wrote: 
> 
> On Nov 2, 2007, at 7:22 AM, Sean Reifschneider wrote:
> 
> > If you have a long interface name, such as "vlan1000", ifconfig cuts  
> > off
> > alias names so that it shows "vlan1000:" instead of "vlan1000:0".   
> > This is
> > on probably pretty much all Linux, but specifically we were using  
> > Debian
> > Etch.  I presume that there would be a similar problem for >9  
> > aliases on an
> > interface named something like "vlan999" or >99 aliases on an  
> > interface
> > named "vlan99".
> >
> > The behavior is that "start" works, but stop tries to remove the  
> > alias from
> > "vlan1000:", which fails, leaving the IP up on the passive machine  
> > if you
> > have gracefully failed over (and STONITH doesn't kill the previously- 
> > active
> > node).
> >
> > I tracked this down via the logs, and Scott Kleihege used his awk-fu  
> > to work
> > up the following patch.  I'm not sure if you'll want to include this  
> > as it
> > relies on the "iproute2" program "ip" to be installed,
> 
> yeah, thats going to be problematic as IPaddr needs to work on non- 
> linux systems.
At least this shouldn't harm OpenBSD, because the alias interface notation 
is different than in Linux, the : notation is not used there.

> 
> IPaddr2 has always been linux specific though...
> 
Sebastian



More information about the Linux-HA mailing list