On Fri, Jun 08, 2012 at 02:37:34PM -0700, David Lang wrote:
> 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]

Right. That should have been fixed in the later version of findif.

> 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.

haresources mode still works, and no-one has any intention to break it.

You just need to install a few more packages because of the package
split back then...  instead of just heartbeat, you install
resource agents, cluster glue, and heartbeat 3.0.

"Supported". Well. That's relative.
Better supported than heartbeat 2.1, at least.

hth,

-- 
: Lars Ellenberg
: LINBIT | Your Way to High Availability
: DRBD/HA support and consulting http://www.linbit.com
_______________________________________________
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to