Re: what all touches the carp demote counter?

2016-10-14 Thread Paul B. Henson
On Fri, Oct 14, 2016 at 01:27:42PM -0700, Paul B. Henson wrote: > Arg, I'm still having issues with the carp demote counter. I disabled > ospfd for now, but something is still changing it. After a reboot > without ospfd, the counter is changing between 0 and 1: Ah, I tracked it down. I had

Re: what all touches the carp demote counter?

2016-10-14 Thread Paul B. Henson
Arg, I'm still having issues with the carp demote counter. I disabled ospfd for now, but something is still changing it. After a reboot without ospfd, the counter is changing between 0 and 1: bash-4.3# ifconfig -g carp carp: carp demote count 1 bash-4.3# ifconfig -g carp carp: carp demote count

Re: what all touches the carp demote counter?

2016-10-12 Thread Paul B. Henson
On Wed, Oct 12, 2016 at 08:37:59AM +0200, mxb wrote: > But as R0me0 stated, you should probably re-check your configuration. The configuration checked out. I rebooted a few more times, and I couldn't reproduce the problem. I still have no idea why the carp demotion counter was set to 2 the first

Re: what all touches the carp demote counter?

2016-10-12 Thread mxb
> On 11 okt. 2016, at 23:56, Paul B. Henson wrote: > > Does pfsync fiddle with the carp > demotion value even if it's not configured? No. But as R0me0 stated, you should probably re-check your configuration. carp.preempt=1 ( /etc/sysctl.conf ) on both nodes, if not node which

Re: what all touches the carp demote counter?

2016-10-11 Thread Paul B. Henson
On Tue, Oct 11, 2016 at 08:44:05AM +0200, mxb wrote: > Master-Backup setup with pfsync in place, means that you synchronize > states between boxes. Then Master is rebooted, it becomes out-of-sync > then it comes to states. So until it is in sync with Backup (which > became Master after reboot),

Re: what all touches the carp demote counter?

2016-10-11 Thread mxb
Master-Backup setup with pfsync in place, means that you synchronize states between boxes. Then Master is rebooted, it becomes out-of-sync then it comes to states. So until it is in sync with Backup (which became Master after reboot), it will not become Master. This process is auto. Just need to

Re: what all touches the carp demote counter?

2016-10-10 Thread R0me0 ***
Hello sorry my bad english So, Let's debug Review carp/pfsync ( NODE1-carp0/NODE2-carp0 samepassword and same vhid for each pair ) ( pfsync syncdev ) ( /etc/hostname.pfsync0 = up syndev IFACE ) check default gateway on both ( /etc/mygate) / sysctl ip.forwarding=1 and carp.preempt=1 (

Re: what all touches the carp demote counter?

2016-10-10 Thread Paul B. Henson
On Mon, Oct 10, 2016 at 09:43:56PM -0300, R0me0 *** wrote: > Did you adjust advskew value on the machine you want to be Backup ? Yes, the backup has an advskew of 5 and the primary an advskew of 1. As I mentioned, when I first configured the interfaces by hand the two systems properly negotiated

Re: what all touches the carp demote counter?

2016-10-10 Thread R0me0 ***
Hello Paul, Did you adjust advskew value on the machine you want to be Backup ? For example: Primary/Master # cat hostname.carp0 vhid 1 cardev em0 pass THEPASSWORD inet 10.20.30.40 255.255.255.0 Slave/Backup # cat hostname.carp0 vhid 1 cardev em0 advskew 100 pass THEPASSWORD inet