Hi All ,<br> I am running pacemaker (latest version) on top of Heartbeat 3.0 .<br> I am trying to configure an IP in failover mode.<br> I am using ocf : heartbeat :IPaddr resource Agent for achieving above. But the resource agent cant <br>
find an interface ,Which is very strange because according to my route table it should. <br> <br> the error is :<br>
May 6 19:24:35 localhost lrmd: [2059]: info: RA output:
(failover-ip:start:stderr) ERROR: Cannot use default route w/o netmask
[10.0.0.5]<br> May 6 19:24:35 localhost IPaddr[2115]: ERROR: /usr/lib64/heartbeat/findif failed [rc=1].<br><br>Can anyone tell me how to get arround this error. IF I had to use just
heartbeat then I could have specified the IP adrress ,netmask and
device (eth0) to use for the IP alias But when I try to pass the same
in CIB ,the lmrd gives error that wrong IP adress passed.<br>
<span style="font-weight: bold;">Is there any parameter for passing device explictly to lmrd </span>? <br><br><br><br><br> following is output of route -n<br> <br><br> [root@aadityaxcat3 ~]# route -n<br>
Kernel IP routing table<br>Destination Gateway Genmask Flags Metric Ref Use Iface<br>172.16.0.0 0.0.0.0 255.255.0.0 U 1 0 0 eth2<br>192.0.0.0 0.0.0.0 255.0.0.0 U
1 0 0 eth1<br>10.0.0.0 0.0.0.0 255.0.0.0 U 1 0 0 eth0<br>0.0.0.0 192.168.15.1 0.0.0.0 UG 0 0 0 eth1<br>--------------------------------------------------------------------------<br>
<br>Following is my CIB : <br><br>node $id="58fc146a-8885-4fb8-ace4-535b9fd89777" aadityaxcat3<br>node $id="ae72d19f-b1bd-478a-9f0d-951f95d8f90c" aadityaxcat2<br>primitive failover-ip ocf:heartbeat:IPaddr \<br>
params ip="10.0.0.5"
\<br> op start interval="1s" timeout="90s" \<br> op monitor interval="10s"<br>primitive nfs-ip ocf:heartbeat:Filesystem \<br> params device="example:/nfs" directory="/mnt/nfs" fstype="nfs" \<br>
op start interval="1s" timeout="90s" \<br> op monitor interval="10s"<br>property $id="cib-bootstrap-options" \<br> stonith-enabled="false" \<br> dc-version="1.0.7-d3fa20fc76c7947d6de66db7e52526dc6bd7d782" \<br>
cluster-infrastructure="Heartbeat" \<br> no-quarum-policy="ignore"<br> <br>
-------------------------------------------------------------------------------------<br>Following is my ifconfig<br>[root@aadityaxcat3 ~]# ifconfig<br>eth0 Link encap:Ethernet HWaddr 00:xx:xx:xx:xx:xx <br> inet addr:10.0.0.2 Bcast:10.255.255.255 Mask:255.0.0.0<br>
inet6 addr: fe80::21a:4bff:fedc:4be4/64 Scope:Link<br> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1<br> RX packets:8792 errors:0 dropped:0 overruns:0 frame:0<br> TX packets:309 errors:0 dropped:0 overruns:0 carrier:0<br>
collisions:0 txqueuelen:1000
<br> RX bytes:2174710 (2.0 MiB) TX bytes:33612 (32.8 KiB)<br> Interrupt:16 Memory:f8000000-f8012800 <br><br>eth1 Link encap:Ethernet HWaddr 00:xx:xx:xx:xx:xx <br> inet addr:192.168.15.130 Bcast:192.255.255.255 Mask:255.0.0.0<br>
inet6 addr: fe80::21a:4bff:fedc:4be6/64 Scope:Link<br> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1<br> RX packets:77687 errors:0 dropped:0 overruns:0 frame:0<br> TX packets:2029 errors:0 dropped:0 overruns:0 carrier:0<br>
collisions:0 txqueuelen:1000 <br> RX bytes:5290885 (5.0 MiB) TX bytes:429404 (419.3 KiB)<br> Interrupt:17 Memory:fa000000-fa012800 <br><br>eth2 Link encap:Ethernet HWaddr 00:xx:xx:xx:xx:xx <br>
inet addr:172.16.0.2 Bcast:172.16.255.255 Mask:255.255.0.0<br> inet6 addr: fe80::219:bbff:fe30:833f/64 Scope:Link<br> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1<br> RX packets:5813 errors:0 dropped:0 overruns:0 frame:0<br>
TX packets:2794 errors:0 dropped:0 overruns:0
carrier:0<br> collisions:0 txqueuelen:1000 <br> RX bytes:1474978 (1.4 MiB) TX bytes:682389 (666.3 KiB)<br> Interrupt:17 <br><br>eth3 Link encap:Ethernet HWaddr 00:xx:xx:xx:xx:xx <br> inet6 addr: fe80::219:bbff:fe30:8340/64 Scope:Link<br>
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1<br> RX packets:75352 errors:0 dropped:0 overruns:0 frame:0<br> TX packets:4 errors:0 dropped:0 overruns:0 carrier:0<br> collisions:0 txqueuelen:1000
<br> RX bytes:4992321 (4.7 MiB) TX bytes:344 (344.0 b)<br> Interrupt:18 <br><br>lo Link encap:Local Loopback <br> inet addr:127.0.0.1 Mask:255.0.0.0<br> inet6 addr: ::1/128 Scope:Host<br>
UP LOOPBACK RUNNING MTU:16436 Metric:1<br> RX packets:98 errors:0 dropped:0 overruns:0 frame:0<br> TX packets:98 errors:0 dropped:0 overruns:0 carrier:0<br> collisions:0 txqueuelen:0 <br>
RX bytes:7832 (7.6 KiB) TX
bytes:7832 (7.6 KiB)<br><br>----------------------------------------------------------------------------------------------------------<br><br clear="all"><br>-- <br>Regards ,<br>Aaditya.<br><br>I want to change the world ,But God won't give me the source code.<br>