On 1-3-2012 16:32, Marios Makassikis wrote:
> Bumping net.inet.carp.log value only reports the demotion:
> carp:carp0 demoted group carp by 1 to 2 (> snderrors)
> carp:carp1 demoted group carp by 1 to 2 (> snderrors)
> 
> And then, a few state transitions later:
> carp: carp0 demoted group carp by -1 to 1 (< snderrors)
> 
> which corresponds to me trying to reset the demote counter back to 0.

No, that's not from your manual commands.  It says there are send errors
when sending out the carp packets.

> 'netstat -sp carp' doesn't give any information I consider useful, besides
> the
> number of IPv4/IPv6 packets sent and received, as well as the number of
> transitions to master.

Just paste the output instead of interpreting...

If I look at the code netinet/ip_carp.c:

>                 error = ip_output(m, NULL, NULL, IP_RAWOUTPUT, &sc->sc_imo,
>                     NULL);
>                 if (error) {
>                         if (error == ENOBUFS)
>                                 carpstats.carps_onomem++;
>                         else
>                                 CARP_LOG(LOG_WARNING, sc,
>                                     ("ip_output failed: %d", error));
>                         sc->sc_if.if_oerrors++;
>                         if (sc->sc_sendad_errors < INT_MAX)
>                                 sc->sc_sendad_errors++;
>                         if (sc->sc_sendad_errors == 
> CARP_SENDAD_MAX_ERRORS(sc))
>                                 carp_group_demote_adj(&sc->sc_if, 1,
>                                     "> snderrors");


Either the "send failed due to mbuf memory error" counter should be
increasing, or an "ip_output failed" error should appear in the log.


--
Cam

Reply via email to