Re: CARP on -CURRENT
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
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
討論串 (同標題文章)
完整討論串 (本文為第 4 之 6 篇):