RE: CARP on -CURRENT

From: Andrew Hobbs <andrew.hobbs_at_ai.net>
Date: Fri, 3 Feb 2012 04:35:16 -0500
> -----Original Message-----
> From: Sergey Kandaurov [mailto:pluknet_at_gmail.com] 
> Sent: Thursday, February 02, 2012 2:00 AM
> To: Andrew Hobbs
> Cc: freebsd-current_at_freebsd.org
> Subject: Re: CARP on -CURRENT
>
> On 2 February 2012 04:26, Andrew Hobbs <andrew.hobbs_at_ai.net> wrote:
> > I much appreciate the responses and I was able to get CARP functioning 
> > using the new ifconfig syntax under -CURRENT. Having done that, CARP 
> > is now acting as it should, though now I have a new challenge with 
> > devd and automatic firing of scripts during CARP failover. It appears 
> > that the documented method of doing this at 
> > http://www.freebsd.org/doc/handbook/disks-hast.html no longer works 
> > with the suggested devd.conf setup; notify 30 {
> >        match "system" "IFNET";
> >        match "subsystem" "carp0";
> >        match "type" "LINK_UP";
> >        action "/usr/local/sbin/carp-hast-switch master"; };
> >
> > notify 30 {
> >        match "system" "IFNET";
> >        match "subsystem" "carp0";
> >        match "type" "LINK_DOWN";
> >        action "/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 triggers may be?
> >
>
> You will need to change this to something like (as taken from man carp):
>          match "system"          "CARP";
>          match "subsystem"       "[0-9]+_at_";
>          match "type"            "(MASTER|BACKUP)";
>
> The subsystem now is generated as
> snprintf(subsys, IFNAMSIZ+5, "%u_at_%s", sc->sc_vhid, sc->sc_carpdev->if_xname);
>
> --
> wbr,
> pluknet

Thanks for the info. I was able to get the triggers firing from devd. I also noticed that the man page on 'carp' references a "carpcontrol.sh" script as an action. Has this script been prototyped anywhere yet? 

-Andrew
Received on Fri Feb 03 2012 - 08:35:21 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:23 UTC