From owner-freebsd-questions@FreeBSD.ORG Sun Oct 5 10:11:45 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 ADB371065692 for ; Sun, 5 Oct 2008 10:11:45 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 318D88FC08 for ; Sun, 5 Oct 2008 10:11:44 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.3/8.14.3) with ESMTP id m95ABaN8075999; Sun, 5 Oct 2008 11:11:37 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.7.2 smtp.infracaninophile.co.uk m95ABaN8075999 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1223201497; bh=s9er259PV106Cp xQwGKLx5/12+PLZsj+68XNRMRBOJc=; h=Message-ID:Date:From:MIME-Version: To:CC:Subject:References:In-Reply-To:Content-Type:Cc:Content-Type: Date:From:In-Reply-To:Message-ID:Mime-Version:References:To; z=Mes sage-ID:=20<48E892D2.6050409@infracaninophile.co.uk>|Date:=20Sun,=2 005=20Oct=202008=2011:11:30=20+0100|From:=20Matthew=20Seaman=20|Organization:=20Infracaninophile|User -Agent:=20Thunderbird=202.0.0.17=20(X11/20080929)|MIME-Version:=201 .0|To:=20frank.cam@webprophets.net.au|CC:=20questions@freebsd.org|S ubject:=20Re:=20CARP=20issue=20with=202=20Masters|References:=20<12 23198445.48e886ede1ea7@webmail.webprophets.net.au>|In-Reply-To:=20< 1223198445.48e886ede1ea7@webmail.webprophets.net.au>|X-Enigmail-Ver sion:=200.95.6|Content-Type:=20multipart/signed=3B=20micalg=3Dpgp-s ha256=3B=0D=0A=20protocol=3D"application/pgp-signature"=3B=0D=0A=20 boundary=3D"------------enigA04EDA0AFBBC8B5BAEDA4C58"; b=f3qqpjhNdY XtD5aHWHNIdY0OHu8j9E9vd998ihCt4xwCGk0EE8a2APYZ6+Bd0xmF60LYOhZqjpCuf cIBronbhBe5FoyS/mx45qbOMl5+12FyczmttRoyxos4k9m4akhUHWEAa2RIdsid7aMg 6WF/A5U3TInJDr+7zSheLZ7i8mg= Message-ID: <48E892D2.6050409@infracaninophile.co.uk> Date: Sun, 05 Oct 2008 11:11:30 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.17 (X11/20080929) MIME-Version: 1.0 To: frank.cam@webprophets.net.au References: <1223198445.48e886ede1ea7@webmail.webprophets.net.au> In-Reply-To: <1223198445.48e886ede1ea7@webmail.webprophets.net.au> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigA04EDA0AFBBC8B5BAEDA4C58" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (smtp.infracaninophile.co.uk [IPv6:::1]); Sun, 05 Oct 2008 11:11:37 +0100 (BST) X-Virus-Scanned: ClamAV 0.94/8374/Sat Oct 4 18:41:34 2008 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on happy-idiot-talk.infracaninophile.co.uk 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: Sun, 05 Oct 2008 10:11:45 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigA04EDA0AFBBC8B5BAEDA4C58 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable frank.cam@webprophets.net.au wrote: > I have CARP running on a master and a slave server and for some unknown= reason=20 > the slave continues to classify itself as a master, even though the adv= skew is=20 > higher than on the master.=20 > It appears that queries sent to the CARP ip address go to the master 50= % of the=20 > time and the slave 50% of the time when both servers are up. This plays= havoc=20 > with my databases as I synchronise them asynchronously. >=20 > When I take the carp interface down on the slave using 'ifconfig carp0 = down &&=20 > ifconfig carp0 up' it lists it's status as 'backup' for about 10 second= s and=20 > then goes back to 'master'. Have you by any chance firewalled out the multicast packets that CARP use= s 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 m= aster. 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 --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enigA04EDA0AFBBC8B5BAEDA4C58 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAkjoktgACgkQ8Mjk52CukIwz6gCggMWJ3yZmwbodC8uJcRTyrASr obUAn2e/vci+mclsGHFDBDnjH5n8FHtQ =u8UF -----END PGP SIGNATURE----- --------------enigA04EDA0AFBBC8B5BAEDA4C58--