Date: Thu, 2 Feb 2012 10:00:26 +0300 From: Sergey Kandaurov <pluknet@gmail.com> To: Andrew Hobbs <andrew.hobbs@ai.net> Cc: "freebsd-current@freebsd.org" <freebsd-current@freebsd.org> Subject: Re: CARP on -CURRENT Message-ID: <CAE-mSOKPi6KA%2BvQNyp-eAeZ1rqY8KO%2BFit05uCM8Y0nrPgU7HA@mail.gmail.com> In-Reply-To: <D338D1613B32624285BB321A5CF3DB2548204A883F@ginga.ai.net> References: <D338D1613B32624285BB321A5CF3DB254804EC90C3@ginga.ai.net> <CAE-mSOJpFQ_NJ2_FBHYQ%2BxDYiky76Q039xgPc2j345Tjdce8rA@mail.gmail.com> <D338D1613B32624285BB321A5CF3DB2548204A883F@ginga.ai.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2 February 2012 04:26, Andrew Hobbs <andrew.hobbs@ai.net> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAE-mSOKPi6KA%2BvQNyp-eAeZ1rqY8KO%2BFit05uCM8Y0nrPgU7HA>