From owner-freebsd-stable@FreeBSD.ORG Sun Sep 18 10:58:32 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 215E8106566C for ; Sun, 18 Sep 2011 10:58:32 +0000 (UTC) (envelope-from patfbsd@davenulle.org) Received: from smtp.lamaiziere.net (net.lamaiziere.net [94.23.254.147]) by mx1.freebsd.org (Postfix) with ESMTP id D03F38FC0C for ; Sun, 18 Sep 2011 10:58:31 +0000 (UTC) Received: from baby-jane.lamaiziere.net (unknown [192.168.1.10]) by smtp.lamaiziere.net (Postfix) with ESMTP id 85438FAA2C87; Sun, 18 Sep 2011 12:41:42 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by baby-jane.lamaiziere.net (Postfix) with ESMTP id DCBC62CEC1E; Sun, 18 Sep 2011 12:44:33 +0200 (CEST) Date: Sun, 18 Sep 2011 12:44:29 +0200 From: Patrick Lamaiziere To: "Brian Seklecki (Mobile)" Message-ID: <20110918124429.616282f5@davenulle.org> In-Reply-To: References: <4E71C059.5060404@hi-media.com> <4E7218A4.4000205@my.gd> <60645CA5-D1E5-4AF9-9C56-66FA755B0280@digsys.bg> X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.1; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Cc: freebsd-stable@freebsd.org 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 10:58:32 -0000 Le Sat, 17 Sep 2011 23:40:06 -0400 (EDT), "Brian Seklecki (Mobile)" a écrit : > > > >> 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 > > I see now. > > The tunable sounds like a good idea; we should check OpenBSD, they > probably already implemented something and we're behind. > > If not, a "preempt dampener" feature would be an awesome return > feature. > > Might need to implment another state: MASTER-LISTENING (or LEARNING) > ah a STP. 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. This is used to delay carp until pfsync synchronization is done and by daemons like bgpd. 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). That works fine on OpenBSD. Regards.