From owner-freebsd-questions@FreeBSD.ORG Wed Jan 18 07:31:23 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EF917106564A for ; Wed, 18 Jan 2012 07:31:23 +0000 (UTC) (envelope-from artem@kayalaynen.ru) Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by mx1.freebsd.org (Postfix) with ESMTP id 843768FC0A for ; Wed, 18 Jan 2012 07:31:23 +0000 (UTC) Received: by wibhq12 with SMTP id hq12so3238989wib.13 for ; Tue, 17 Jan 2012 23:31:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kayalaynen.ru; s=google; h=mime-version:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=roOyLWkzSG0hSzo4ynU5frcKjTWEZhGRdzifjZcYRWA=; b=A9yhxZbgyw8I9juwrtmTX5zr1EmAstA3ElE09Ec3wwOYHKKQnhh+rwKYuPmKPyfeU9 xm2X0S4sk4CrQYzc1au+nRK+otpKjmdWcheonEnegp3ej5oI1IqgYPwxyOgqfF/uTx4k E73NMGe+ge34stE9zIrDc4jK00Qg5JopR0/1Y= Received: by 10.180.101.35 with SMTP id fd3mr34090740wib.22.1326871882312; Tue, 17 Jan 2012 23:31:22 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.105.134 with HTTP; Tue, 17 Jan 2012 23:31:00 -0800 (PST) From: Artem Kajalainen Date: Wed, 18 Jan 2012 09:31:00 +0200 Message-ID: To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: carp+hastd at boot 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: Wed, 18 Jan 2012 07:31:24 -0000 Hello, I'm trying to setup hastd+carp on two FreeBSD 9.0-STABLE servers. hast switch roles by devd events, and there is one problem. When box is rebooted, carp interface flapping between states. A have the same problem as described here - http://lists.freebsd.org/pipermail/freebsd-stable/2011-August/063742.html. I have already one master, it set hast node to primary, so when second box rebooted and carp comes up as master, script invoked by devd set hast to primary -> split-brain. After few seconds it changes to backup state. gw_chlb_2# cat /var/log/messages | grep carp Jan 18 00:15:20 gw_chlb_2 kernel: carp0: INIT -> BACKUP Jan 18 00:15:20 gw_chlb_2 kernel: carp0: link state changed to DOWN Jan 18 00:15:23 gw_chlb_2 kernel: carp0: link state changed to UP Jan 18 00:15:28 gw_chlb_2 kernel: carp0: MASTER -> BACKUP (more frequent advertisement received) Jan 18 00:15:28 gw_chlb_2 kernel: carp0: link state changed to DOWN I think, I can write shell script, which will check carp state after 2-3 minutes after boot and then set up hast role accordingly, but I don't want to re-invent wheel. How this master state at boot can be avoided? --- With Best Regards / Yst=C3=A4v=C3=A4llisin terveisin Artem Kajalainen