From owner-freebsd-questions@FreeBSD.ORG Mon Oct 6 00:48:58 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 77F911065699 for ; Mon, 6 Oct 2008 00:48:58 +0000 (UTC) (envelope-from frank.com@blastoff.com.au) Received: from mail.webprophets.net.au (mail.webprophets.net.au [210.9.174.2]) by mx1.freebsd.org (Postfix) with ESMTP id 3279A8FC1C for ; Mon, 6 Oct 2008 00:48:58 +0000 (UTC) (envelope-from frank.com@blastoff.com.au) Received: from localhost (localhost [127.0.0.1]) by mail.webprophets.net.au (Postfix) with ESMTP id BD0E3553219; Mon, 6 Oct 2008 10:34:20 +1000 (EST) X-Virus-Scanned: amavisd-new at webprophets.net.au Received: from mail.webprophets.net.au ([127.0.0.1]) by localhost (mail.webprophets.net.au [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Yg8n2KbGgqRr; Mon, 6 Oct 2008 10:34:15 +1000 (EST) Received: by mail.webprophets.net.au (Postfix, from userid 65534) id 8BC1A55320F; Mon, 6 Oct 2008 10:34:15 +1000 (EST) Received: from 210.56.85.107 ( [210.56.85.107]) as user frank.cam@mail.webprophets.net.au by webmail.webprophets.net.au with HTTP; Mon, 6 Oct 2008 10:34:15 +1000 Message-ID: <1223253255.48e95d077976f@webmail.webprophets.net.au> Date: Mon, 6 Oct 2008 10:34:15 +1000 From: Frank Cam To: m.seaman@infracaninophile.co.uk References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.1 X-Originating-IP: 210.56.85.107 Cc: questions@freebsd.org Subject: Re: CARP issue with 2 Masters X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Oct 2008 00:48:58 -0000 Hi Matthew That did the trick, have accidentally been using an old pre-carp set of firewall rules for the last few days. After your response, I went back and updated to the new rule-set. It's always the simple things. Thank you, your response was greatly appreciated. Frank > > I have CARP running on a master and a slave server and for some unknown > reason > > the slave continues to classify itself as a master, even though the > advskew is > > higher than on the master. > > It appears that queries sent to the CARP ip address go to the master 50% > of the > > time and the slave 50% of the time when both servers are up. This plays > havoc > > with my databases as I synchronise them asynchronously. > > > > When I take the carp interface down on the slave using 'ifconfig carp0 > down && > > ifconfig carp0 up' it lists it's status as 'backup' for about 10 seconds > and > > then goes back to 'master'. > > Have you by any chance firewalled out the multicast packets that CARP uses > to test for interface death? If either one of a CARP pair can't see CARP > packets > frequently enough it will think the other is down and promote itself to > master. > > If your firewall is blocking, then add a rule like this on both machines: > > pass quick on $ext_if proto carp \ > from $ext_if:network to $carp_mcast keep state > > $carp_mcast is defined as "224.0.0.18" > > Cheers, > > Matthew > > -- > Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard > Flat 3 > PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate > Kent, CT11 9PW > > -------------------------------------------------------------------- Come and visit Web Prophets Website at http://www.webprophets.net.au