From owner-freebsd-fs@FreeBSD.ORG Thu Jun 2 22:27:24 2011 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 99997106566C; Thu, 2 Jun 2011 22:27:24 +0000 (UTC) (envelope-from patfbsd@davenulle.org) Received: from smtp.lamaiziere.net (net.lamaiziere.net [91.121.44.19]) by mx1.freebsd.org (Postfix) with ESMTP id 591938FC0C; Thu, 2 Jun 2011 22:27:24 +0000 (UTC) Received: from baby-jane.lamaiziere.net (6.176.97.84.rev.sfr.net [84.97.176.6]) by smtp.lamaiziere.net (Postfix) with ESMTPA id 323BE63307D; Fri, 3 Jun 2011 00:10:37 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by baby-jane.lamaiziere.net (Postfix) with ESMTP id C8FC773105; Fri, 3 Jun 2011 00:10:36 +0200 (CEST) Date: Fri, 3 Jun 2011 00:10:36 +0200 From: Patrick Lamaiziere To: John Message-ID: <20110603001036.5ad0ff8d@davenulle.org> In-Reply-To: <20110602203940.GA80549@slowblink.com> References: <20110602203940.GA80549@slowblink.com> 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-fs@freebsd.org, freebsd-net@freebsd.org Subject: Re: Production use of carp? X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jun 2011 22:27:24 -0000 Le Thu, 2 Jun 2011 16:39:40 -0400, John a écrit : Hello, > However, if system A is the MASTER, and system B is rebooted, > the carp interface on system A will flip/flop going down and > coming back up which is not what I want. I saw this if the switch connecting the two systems takes some time to forward packets when a link is "up". This happens if the switch is doing some spanning tree protocol. (on cisco swith you should use an option "spanning tree port fast" on the switch port to avoid this) > This leads to my question, am I missing something simple about > using carp? Should I implement my own control interface on the > private network and not use carp? What are other folks doing? You may want to implement your own control because if the two hosts cannot communicate, you will have two masters. This can happen if the links on the both hosts are up, but none packet are forwarded (ie the switch connecting the two boxes is broken in some way). Instead writing your own script, you may use ifstated (in the ports tree). I've not tried FreeBSD with carp but we are very happy at $WORK with carp on OpenBSD. I guess that should work fine on FreeBSD too. Regards.