On 2007/05/25 19:27, Piotrek Kapczuk wrote:
>> [...]
>> Ideally - I guess - since all the mentioned carp interfaces share a
>> physical interface, I would want the backup machine to switch into
>> master state for all carp interfaces on em1, and not only one.
>> If I understand the documentation on carp's vhid correctly, interfaces
>> sharing the same vhid, share the same virtual MAC address, and, in turn,
>> if one of them fails or is being shutdown, all interfaces with the same
>> vhid are being "transferred" to the backup machine.
>>
>> Is this correct?
>
> Yes, but...

No, vhids don't failover together. Interface groups failover together:
if you remove the carp group, and add another, then all interfaces with
that group will failover together.

By default carp interfaces are all in the carp group, so theyfailover
together. iirc you don't need preempt for this any more.

If they don't all change state together, the most likely reason is a
mismatching set of addresses on the carp interfaces. Note there is a
bug fixed in sys/netinet/ip_carp.c 1.135 re: adjusting addresses on
a running interface. If you ran into it, you'll see ipv6 proto 112
packets on tcpdump on the parent interface.

-stable candidate, anyone?

> I've just made a test. With same vhid  'ifconfig carp down' still
> changes nothing ifconfig vlan1 down works the way you want.

My personal preference to trigger a failover is to change advskew on
a carp interface of the current master.

Reply via email to