Re: CARP not balancing automatically




On Oct 23, 2006, at 1:50 PM, Max Laier wrote:

Until I perform this manual step, all traffic goes to the single box.
After I perform this step, the traffic is balanced nicely as expected
amongst the local network hosts. Each box then has one MASTER and
one BACKUP carp interface for this IP.

Sounds like you forgot the net.inet.carp.preempt sysctl. See the begining
of the EXAMPLES section of carp(4).

But I don't have multiple interfaces that all need to go up/down together. I need one carp interface to be master and one backup on box A, and the opposite master/backup on box B. Or am I totally misunderstanding with the preemtp sysctl is for?

The second example in the EXAMPLES section is what I followed. It makes no mention of needing preempt, but does say I need arpbalance.

Is the documentation incomplete in the second example, then?

What I want to end up with (and what I get after my manual manipulation) is this:

one host:

carp0: flags=49<UP,LOOPBACK,RUNNING> mtu 1500
inet 192.168.100.100 netmask 0xffffff00
carp: BACKUP vhid 5 advbase 1 advskew 100
carp1: flags=49<UP,LOOPBACK,RUNNING> mtu 1500
inet 192.168.100.100 netmask 0xffffff00
carp: MASTER vhid 6 advbase 1 advskew 0


other host:

carp0: flags=49<UP,LOOPBACK,RUNNING> mtu 1500
inet 192.168.100.100 netmask 0xffffff00
carp: MASTER vhid 5 advbase 1 advskew 0
carp1: flags=49<UP,LOOPBACK,RUNNING> mtu 1500
inet 192.168.100.100 netmask 0xffffff00
carp: BACKUP vhid 6 advbase 1 advskew 100


what happens on boot is one box has both MASTER and the other has both BACKUP resulting in zero load balance.



Relevant Pages

  • Re: CARP-related error on 5.4RC3
    ... Sorry to follow up on my own post, but more CARP weirdness on 5.4RC3. ... When I reboot the master, the backup quickly takes over -- just as you ... > above the carp interfaces. ...
    (freebsd-stable)
  • carp/vrrp/ucarp advice
    ... When the backup box is rebooted it always seems to come up ... listen for advertisementsto see if a master exists. ... the creation and destroyal of a carp interface causes a kernel panic. ... any links to a perl based gratuitous arp utils would be great ...
    (freebsd-net)
  • master->backup CARP issue
    ... each one has 4 CARP interfaces in preempt ... Backup without any reason preempts Master and after a while (an hour ... MASTER vhid 1 advbase 1 advskew 10 ...
    (freebsd-questions)
  • CARP question (interpretation clarification)
    ... the carp enabled physical interfaces goes ... On my system, I've got preempt turned on, but as shown below on my ... "backup" machine, two carp interfaces are in BACKUP config, and one is ... MASTER. ...
    (freebsd-questions)
  • Re: last try (anyone who here who has a working carp setup??)
    ... >On host A (which is suppose to be the master): ... >to be the BACKUP... ... >virtual IP if I can't even ping it??? ...
    (freebsd-questions)