On Thu, Jun 21, 2018 at 10:07:06AM +0200, Janne Johansson wrote: > Den ons 20 juni 2018 kl 19:59 skrev Henrik Dige Semark <[email protected]>: > > > Hey everybody, > > > > # Server 1 > > My /etc/hostname.* for CARP's and pfsync + host adaptor: > > https://pastebin.com/vrtuPqnQ > > My /etc/pf.conf: https://pastebin.com/yhVkG4x4 > > > > # Server 2 > > My /etc/hostname.* for CARP's and pfsync + host adaptor: > > https://pastebin.com/a7fuM923 > > My /etc/pf.conf: https://pastebin.com/xNr1TtZ7 > > > > Any help or pointers would be fantastic. > > I have struggled with this for a week now and I'm running out of idears - > > the only solution I have right now is turning off the backup server. > > > > You should have different advskew on expected master and slave carps, no?
Looks to me like that is already the case (Server 1 is has advskew 0, Server 2 has advskew 100). > Also, we used to have something like 20 for master and 80 on slave so one > can place slaves before master, or master after slave if you want to signal > "I am still running but would like to hand over to the other if we can". The carp demote counter is also relevant to failover and is sometimes raised at run-time when interface output errors occur. The advskew value only matters as long as the demote counter is equal on both sides. See 'ifconfig -g carp' and the 'carpdemote' directives documented in the INTERFACE GROUPS section of the ifconfig man page. To avoid potential routing issues, I would recommend setting netmasks to /32 on all carp interfaces if they share a subnet with an Ethernet interface. I have no idea about a possible specific reason for packet loss, though.

