Date: Fri, 3 Feb 2012 10:02:51 -0800 From: Freddie Cash <fjwcash@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: <CAOjFWZ5c2hAvCHNPi7hxxFhds4YNOGSJ88EV5ykymactMy-D2Q@mail.gmail.com> In-Reply-To: <D338D1613B32624285BB321A5CF3DB2548204A88B0@ginga.ai.net> References: <D338D1613B32624285BB321A5CF3DB254804EC90C3@ginga.ai.net> <CAE-mSOJpFQ_NJ2_FBHYQ%2BxDYiky76Q039xgPc2j345Tjdce8rA@mail.gmail.com> <D338D1613B32624285BB321A5CF3DB2548204A883F@ginga.ai.net> <CAE-mSOKPi6KA%2BvQNyp-eAeZ1rqY8KO%2BFit05uCM8Y0nrPgU7HA@mail.gmail.com> <D338D1613B32624285BB321A5CF3DB2548204A88B0@ginga.ai.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Feb 3, 2012 at 1:35 AM, Andrew Hobbs <andrew.hobbs@ai.net> wrote: >> 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 >> > 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]+@"; >> match "type" "(MASTER|BACKUP)"; >> >> The subsystem now is generated as >> snprintf(subsys, IFNAMSIZ+5, "%u@%s", sc->sc_vhid, sc->sc_carpdev->if_xname); > 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? Mind posting the devd.conf entries you are using? Maybe submitting a docs PR with them included, to update the HAST page? Thanks. I haven't played with HAST and the new CARP code yet. -- Freddie Cash fjwcash@gmail.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOjFWZ5c2hAvCHNPi7hxxFhds4YNOGSJ88EV5ykymactMy-D2Q>
