Hi.

Running a standard OpenBSD 5.1 installation with 2 hosts (virtual for
this test).

The only things changed from default is that I added three interfaces
(em0, carp1 and carp2).

The problem is that I can't get Host 1 back as master automatically if
Host 2 becomes master. On the first test I booted up Host 1 first and
then Host 2. Host 1 is master as it should. If I force carp2 down on
Host 1 then Host 2 becomes master of carp2 as it should but it will
not be master again if I bring the interface back.

With preempt enabled the entire host group "carp" should become slave
on Host 1 but only the interface that I bring down till become slave.

From: http://www.openbsd.org/faq/pf/carp.html regarding net.inet.carp.preempt
Allow hosts within a redundancy group that have a better advbase and
advskew to preempt the master. In addition, this option also enables
failing over a group of interfaces together in the event that one
interface goes down. If one physical CARP-enabled interface goes down,
CARP will increase the demotion counter, carpdemote, by 1 on interface
groups that the carp(4) interface is a member of, in effect causing
all group members to fail-over together. net.inet.carp.preempt is 0
(disabled) by default.

Host 1
hostname.em0
up

hostname.carp1
192.168.1.1 vhid 1 carpdev em0

hostname.carp2
192.168.2.1 vhid 2 carpdev em0


Host 2
hostname.em0
up

hostname.carp1
192.168.1.1 vhid 1 advskew 200 carpdev em0

hostname.carp2
192.168.2.1 vhid 2 advskew 200 carpdev em0



I have tried both advskew 100 and 200 with the same results.

When does all group members fail over to backup and when does a
interface with a lower advskew become master again?

For me it's seems like a master is a master as long as every thing
it's OK, the adskew does not do anything.

Best regards Johan

Reply via email to