hi, i need help for CARP configuration.
i have 2 host: A and B and 5 local IP address.
Host have 4 networks card (link agregation as LACP) - works fine.
Host A (network configuration)
Host B (network configuration)
Host A and Host B CARP config:
like i write in previous post https://forums.freebsd.org/threads/57943/
and like you said - better restore after crach by hand.
And there is problem - i dont know who will be MASTER after crash!
Host A - master for vhid 1,2,5
Host B - master for vhid 3,4
reboot Host A,
Host B is MASTER for all
everything is FINE now
But when Host A is back, he takeover some vhid as MASTER (in this example vhid 5), but this is randomize - each time different vhid, one or all
Host B
and Host A
preempt is disabled
what is happened? why host A and B randomizing MASTER/BACKUP.
i have 2 host: A and B and 5 local IP address.
Host have 4 networks card (link agregation as LACP) - works fine.
Host A (network configuration)
# LAGG 0
ifconfig_bce0="up"
ifconfig_em0="up"
cloned_interfaces="lagg0 lagg1 lo1"
ifconfig_lagg0="up laggproto lacp laggport bce0 laggport em0 10.10.1.101/24"
# IP for Jails
ifconfig_lagg0_alias01="inet vhid 1 advskew 1 pass paswd alias 10.10.1.145/32"
ifconfig_lagg0_alias02="inet vhid 2 advskew 1 pass paswd alias 10.10.1.143/32"
ifconfig_lagg0_alias03="inet vhid 3 advskew 10 pass paswd alias 10.10.1.139/32"
ifconfig_lagg0_alias04="inet vhid 4 advskew 10 pass paswd alias 10.10.1.140/32"
ifconfig_lagg0_alias05="inet vhid 5 advskew 1 pass paswd alias 10.10.1.142/32"
Host B (network configuration)
# LAGG for Jails
ifconfig_bce0="up"
ifconfig_igb0="up"
cloned_interfaces="lagg0 lagg1 lo1"
ifconfig_lagg0="up laggproto lacp laggport bce0 laggport igb0 10.10.1.102/24"
# IP for Jails
ifconfig_lagg0_alias01="inet vhid 1 advskew 10 pass paswd alias 10.10.1.145/32"
ifconfig_lagg0_alias02="inet vhid 2 advskew 10 pass paswd alias 10.10.1.143/32"
ifconfig_lagg0_alias03="inet vhid 3 advskew 1 pass paswd alias 10.10.1.139/32"
ifconfig_lagg0_alias04="inet vhid 4 advskew 1 pass paswd alias 10.10.1.140/32"
ifconfig_lagg0_alias05="inet vhid 5 advskew 10 pass paswd alias 10.10.1.142/32"
Host A and Host B CARP config:
root@A:~ # sysctl -a | grep carp
net.inet.carp.ifdown_demotion_factor: 240
net.inet.carp.senderr_demotion_factor: 240
net.inet.carp.demotion: 1200
net.inet.carp.log: 1
net.inet.carp.preempt: 0
net.inet.carp.allow: 1
like i write in previous post https://forums.freebsd.org/threads/57943/
and like you said - better restore after crach by hand.
And there is problem - i dont know who will be MASTER after crash!
Host A - master for vhid 1,2,5
Code:
carp: MASTER vhid 1 advbase 1 advskew 1
carp: MASTER vhid 2 advbase 1 advskew 1
carp: BACKUP vhid 3 advbase 1 advskew 10
carp: BACKUP vhid 4 advbase 1 advskew 10
carp: MASTER vhid 5 advbase 1 advskew 1
carp: BACKUP vhid 1 advbase 1 advskew 10
carp: BACKUP vhid 2 advbase 1 advskew 10
carp: MASTER vhid 3 advbase 1 advskew 1
carp: MASTER vhid 4 advbase 1 advskew 1
carp: BACKUP vhid 5 advbase 1 advskew 10
reboot Host A,
Host B is MASTER for all
tail -f /var/log/messages
Oct 27 10:58:55 B kernel: carp: VHID 1@lagg0: BACKUP -> MASTER (master down)
Oct 27 10:58:55 B kernel: carp: VHID 2@lagg0: BACKUP -> MASTER (master down)
Oct 27 10:58:56 B kernel: carp: VHID 5@lagg0: BACKUP -> MASTER (master down)
everything is FINE now
But when Host A is back, he takeover some vhid as MASTER (in this example vhid 5), but this is randomize - each time different vhid, one or all
Host B
tail -f /var/log/messages
Oct 27 11:01:22 B kernel: carp: VHID 5@lagg0: MASTER -> BACKUP (more frequent advertisement received)
and Host A
carp: BACKUP vhid 1 advbase 1 advskew 1
carp: BACKUP vhid 2 advbase 1 advskew 1
carp: BACKUP vhid 3 advbase 1 advskew 10
carp: BACKUP vhid 4 advbase 1 advskew 10
carp: MASTER vhid 5 advbase 1 advskew 1
preempt is disabled
net.inet.carp.preempt: 0
what is happened? why host A and B randomizing MASTER/BACKUP.