[Linux-HA] Pb with IPaddr resource
Dejan Muhamedagic
dejanmm at fastmail.fm
Fri Jun 4 05:36:36 MDT 2010
Hi,
On Thu, Jun 03, 2010 at 02:07:23PM +0200, Alain.Moulle wrote:
> Hi ,
>
> I got a problem when starting a failover ip ocf:heartbeat resource
> IPaddr and
> the problem seems to be that the /findif/ (version 2.99.1) command
That release is rather old. Can you please upgrade to 3.0.3,
resource-agents 1.0.3, and cluster-glue 1.0.5.
> always return 1 when
> starting the resource. So I tried it manually and got an error that I
> don't understand :
> /usr/lib64/heartbeat/findif *12.13.0.1*
This is wrong usage. findif gets the information through
environment variables, as shown below.
> /usr/lib64/heartbeat/findif version 2.99.1 Copyright Alan Robertson
>
> Usage: /usr/lib64/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
That's really the basic functionality. Don't see anything special
in your configuration. It should just work.
Thanks,
Dejan
> and $?=1
>
> whereas ifconfig displays:
> 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP
> qlen 1000
> link/ether 00:31:22:da:8a:1a brd ff:ff:ff:ff:ff:ff
> inet *12.13.0.1*/16 brd 12.13.255.255 scope global eth0
> etc.
>
> I can't find where is the problem ?
>
> Thanks for your help.
> Regards.
> Alain Moullé
>
> _______________________________________________
> Linux-HA mailing list
> Linux-HA at lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
More information about the Linux-HA
mailing list