From owner-freebsd-stable@FreeBSD.ORG Sun Sep 18 13:00:29 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E9472106566B for ; Sun, 18 Sep 2011 13:00:29 +0000 (UTC) (envelope-from ml@my.gd) Received: from mail-wy0-f178.google.com (mail-wy0-f178.google.com [74.125.82.178]) by mx1.freebsd.org (Postfix) with ESMTP id 7D81B8FC0C for ; Sun, 18 Sep 2011 13:00:29 +0000 (UTC) Received: by wyf23 with SMTP id 23so5486587wyf.37 for ; Sun, 18 Sep 2011 06:00:28 -0700 (PDT) Received: by 10.216.171.3 with SMTP id q3mr1541559wel.50.1316350828391; Sun, 18 Sep 2011 06:00:28 -0700 (PDT) Received: from [192.168.0.10] (did75-17-88-165-130-96.fbx.proxad.net. [88.165.130.96]) by mx.google.com with ESMTPS id i11sm21170333wbn.25.2011.09.18.06.00.26 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 18 Sep 2011 06:00:27 -0700 (PDT) References: <4E71C059.5060404@hi-media.com> <4E7218A4.4000205@my.gd> <60645CA5-D1E5-4AF9-9C56-66FA755B0280@digsys.bg> <20110918124429.616282f5@davenulle.org> In-Reply-To: <20110918124429.616282f5@davenulle.org> Mime-Version: 1.0 (iPhone Mail 8J2) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Message-Id: <8811CF10-EB7D-4204-B66F-17B4B4ABCC1E@my.gd> X-Mailer: iPhone Mail (8J2) From: Damien Fleuriot Date: Sun, 18 Sep 2011 15:00:22 +0200 To: Patrick Lamaiziere Cc: "freebsd-stable@freebsd.org" , "Brian Seklecki \(Mobile\)" Subject: Re: CARP interfaces and mastership issue X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Sep 2011 13:00:30 -0000 On 18 Sep 2011, at 12:44, Patrick Lamaiziere wrote: > Le Sat, 17 Sep 2011 23:40:06 -0400 (EDT), > "Brian Seklecki (Mobile)" a =C3=A9crit : >=20 >>>=20 >>>> What would help here, is for a carp interface to wait a given delay >>>> (tunable through a sysctl ?) after creation or after being brought >>>> up >>=20 >> I see now. >>=20 >> The tunable sounds like a good idea; we should check OpenBSD, they=20 >> probably already implemented something and we're behind. >>=20 >> If not, a "preempt dampener" feature would be an awesome return >> feature. >>=20 >> Might need to implment another state: MASTER-LISTENING (or LEARNING) >> ah a STP. >=20 > OpenBSD uses a "carp demote counter" that prevents to become master > (but it will become master anyway if there is not carp advertizement on > the interface). There is a sysctl in FreeBSD but it's readonly. >=20 > This is used to delay carp until pfsync synchronization is done and by > daemons like bgpd. >=20 > Anyway if carp becomes master when the interface is set up, it looks to > be a bug on FreeBSD (and if you are sure that the problem does not > come from the switch). This can be easily verified. When our vlan13 is forwarding on the switch, destroy and recreate the carp13= interface. It still assumes mastership during a short time, then yields and becomes bac= kup.=