From owner-freebsd-current@FreeBSD.ORG Thu Feb 2 07:00:28 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9E6C8106564A for ; Thu, 2 Feb 2012 07:00:28 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by mx1.freebsd.org (Postfix) with ESMTP id 2DAE88FC13 for ; Thu, 2 Feb 2012 07:00:27 +0000 (UTC) Received: by wibhn14 with SMTP id hn14so2366351wib.13 for ; Wed, 01 Feb 2012 23:00:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=L8LX4ZBzV/0VVHUs0xPT3dfNodHmkXQw+BF5rf77UqQ=; b=ngmVr4vQjhfSNiDIDa0H+WyvW9gLOFptLpqI+LJ2ivzML4lmHqBBpQhrTI7BMFIULF FzTpGyGzVsbizqu0R9+qkvYs5XivQetq9/gIWfKMojLQOR3DzWz1rE6L6ToRTuH3k5mM xmpKc4PRzNU6ZctmQeJTYt/Od6Y/epRYDXpgc= MIME-Version: 1.0 Received: by 10.180.108.232 with SMTP id hn8mr2471904wib.16.1328166026711; Wed, 01 Feb 2012 23:00:26 -0800 (PST) Received: by 10.180.103.70 with HTTP; Wed, 1 Feb 2012 23:00:26 -0800 (PST) In-Reply-To: References: Date: Thu, 2 Feb 2012 10:00:26 +0300 Message-ID: From: Sergey Kandaurov To: Andrew Hobbs Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-current@freebsd.org" Subject: Re: CARP on -CURRENT X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Feb 2012 07:00:28 -0000 On 2 February 2012 04:26, Andrew Hobbs wrote: > I much appreciate the responses and I was able to get CARP functioning us= ing the new ifconfig syntax under -CURRENT. Having done that, CARP is now a= cting as it should, though now I have a new challenge with devd and automat= ic firing of scripts during CARP failover. It appears that the documented m= ethod of doing this at http://www.freebsd.org/doc/handbook/disks-hast.html = no longer works with the suggested devd.conf setup; > notify 30 { > =A0 =A0 =A0 =A0match "system" "IFNET"; > =A0 =A0 =A0 =A0match "subsystem" "carp0"; > =A0 =A0 =A0 =A0match "type" "LINK_UP"; > =A0 =A0 =A0 =A0action "/usr/local/sbin/carp-hast-switch master"; > }; > > notify 30 { > =A0 =A0 =A0 =A0match "system" "IFNET"; > =A0 =A0 =A0 =A0match "subsystem" "carp0"; > =A0 =A0 =A0 =A0match "type" "LINK_DOWN"; > =A0 =A0 =A0 =A0action "/usr/local/sbin/carp-hast-switch slave"; > > Is it likely that the triggers associated with CARP for devd have changed= due to the recent new CARP overhaul? Does anyone know what the new trigger= s may be? > You will need to change this to something like (as taken from man carp): match "system" "CARP"; match "subsystem" "[0-9]+@"; match "type" "(MASTER|BACKUP)"; The subsystem now is generated as snprintf(subsys, IFNAMSIZ+5, "%u@%s", sc->sc_vhid, sc->sc_carpdev->if_xname= ); --=20 wbr, pluknet