[Linux-HA] Pb with IPaddr resource
dejanmm at fastmail.fm
Fri Jun 4 05:36:36 MDT 2010
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 *220.127.116.11*
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]
> -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.
> 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 *18.104.22.168*/16 brd 22.214.171.124 scope global eth0
> I can't find where is the problem ?
> Thanks for your help.
> Alain Moullé
> Linux-HA mailing list
> Linux-HA at lists.linux-ha.org
> See also: http://linux-ha.org/ReportingProblems
More information about the Linux-HA