Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Jun 2007 02:05:27 -0700
From:      Rudy Rucker <crapsh@monkeybrains.net>
To:        Marko Lerota <marko.lerota@zg.t-com.hr>
Cc:        freebsd-net@freebsd.org
Subject:   Re: CARP on backup doesn't relinquish MASTER
Message-ID:  <46725657.8010807@monkeybrains.net>
In-Reply-To: <86r6ogfgj4.fsf@sparrow.local>
References:  <466F21DA.20001@monkeybrains.net> <86r6ogfgj4.fsf@sparrow.local>

next in thread | previous in thread | raw e-mail | index | archive | help

Ah... put it will also failover all the OTHER carp interfaces on the box 
when a physical interface goes down....  I had read the man page as that 
being the ONLY feature of that sysctl variable.


net.inet.carp.preempt
    Allow virtual hosts to preempt each other.  It
    is also used to failover carp interfaces as a
    group.  When the option is enabled and one of
    the carp enabled physical interfaces goes down,
    advskew is changed to 240 on all carp interfaces.

THanks!



Marko Lerota wrote:
> Rudy Rucker <crapsh@monkeybrains.net> writes:
> 
>> I noticed that if I reboot a server that is the MASTER, the carp0 on
>> the BACKUP box goes into MASTER mode and stays that way -- even when
>> the real master machine has finished rebooting.  Is this a desired
>> trait to prevent CARP from switching IPs out of control?
> 
> Yes, it depends of what you have put in 'net.inet.carp.preempt'
> 
> if it's net.inet.carp.preempt=0 
> than the backap will become master and stays that way 
> 
> and if it's net.inet.carp.preempt=1
> then the "real" master will take over the IP address from backup 
> server when he gets in the OK state 
> 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46725657.8010807>