On Fri, 8 Jun 2012, Lars Ellenberg wrote:

> On Fri, Jun 08, 2012 at 02:07:17PM -0700, David Lang wrote:
>> I just updated one of my systems to the 3.4 kernel and findif appears to be
>> failing (generic error)
>
>
> And your version of the resource agents is?
> Did you try current upstream (3.9.3)?
>
> There has been a fix in February this year.
>
>> how can I test it from the command line?
>
> /usr/lib/heartbeat/findif
>
> ERROR: IP address parameter is mandatory.
> /usr/lib/heartbeat/findif version 2.99.1 Copyright Alan Robertson
>
> Usage: /usr/lib/heartbeat/findif [-C]
> Options:
>    -C: Output netmask as the number of bits rather than as 4 octets.
>    Environment variables:
>    OCF_RESKEY_ip            ip address (mandatory!)
>    OCF_RESKEY_cidr_netmask netmask of interface
>    OCF_RESKEY_broadcast     broadcast address for interface
>    OCF_RESKEY_nic           interface to assign to
>
> See there.
>
> OCF_RESKEY_ip=1.2.3.4 findif -C
> br0     netmask 24      broadcast 1.2.3.255
>
> Try adding more variables as listed by the help text above
> to see what makes it work or fail.

I get the following

carnivore1b-p:/var/log# export OCF_RESKEY_ip=192.168.210.27
carnivore1b-p:/var/log# /usr/lib/heartbeat/findif
ERROR: Cannot use default route w/o netmask [192.168.210.27]

If I set OCF_RESKEY_cidr_netmask I get a response, but the response includes 
whatever netmask I set.

in ha-log I get

ResourceManager[3004]:  2012/06/08_20:24:43 info: Running 
/etc/ha.d/resource.d/IPaddr 192.168.210.26 start
IPaddr[3164]:   2012/06/08_20:24:43 ERROR: /usr/lib/heartbeat/findif failed 
[rc=1].
IPaddr[3147]:   2012/06/08_20:24:43 ERROR:  Generic error


This is an older heartbeat (2.1), I'm still using v1 style configs, which I 
believe are not supported on the latest vesions.

David Lang
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to