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.

IPaddr2 has always been linux specific though...

as "ip addr ls"
doesn't seem to truncate the interface name. So it uses that to get the
interface name.

Sean
--
After I'm dead I'd rather have people ask why I have no monument than why
I have one.  -- Cato the Elder
Sean Reifschneider, Member of Technical Staff <[EMAIL PROTECTED]>
tummy.com, ltd. - Linux Consulting since 1995: Ask me about High Availability

<IPaddr.patch>_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

_______________________________________________
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