[Pacemaker] Is there any parameter for passing device explictly to lmrd ?

Aaditya kumar passion.for.systems at gmail.com
Thu May 6 15:46:03 UTC 2010


Hi All ,
         I am running pacemaker (latest version) on top of Heartbeat 3.0 .
         I am trying to configure an IP  in failover mode.
         I am using ocf : heartbeat :IPaddr resource Agent for achieving
above. But the resource agent cant
         find an interface ,Which is very strange because according to my
route table it should.

         the error is :
         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]
          May  6 19:24:35 localhost IPaddr[2115]: ERROR:
/usr/lib64/heartbeat/findif failed [rc=1].

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.
Is there any parameter for passing device explictly to lmrd ?




        following is output of route -n


         [root at aadityaxcat3 ~]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
172.16.0.0      0.0.0.0         255.255.0.0     U     1      0        0 eth2
192.0.0.0       0.0.0.0         255.0.0.0       U     1      0        0 eth1
10.0.0.0        0.0.0.0         255.0.0.0       U     1      0        0 eth0
0.0.0.0         192.168.15.1    0.0.0.0         UG    0      0        0 eth1
--------------------------------------------------------------------------

Following is my CIB :

node $id="58fc146a-8885-4fb8-ace4-535b9fd89777" aadityaxcat3
node $id="ae72d19f-b1bd-478a-9f0d-951f95d8f90c" aadityaxcat2
primitive failover-ip ocf:heartbeat:IPaddr \
        params ip="10.0.0.5" \
        op start interval="1s" timeout="90s" \
        op monitor interval="10s"
primitive nfs-ip ocf:heartbeat:Filesystem \
        params device="example:/nfs" directory="/mnt/nfs" fstype="nfs" \
        op start interval="1s" timeout="90s" \
        op monitor interval="10s"
property $id="cib-bootstrap-options" \
        stonith-enabled="false" \
        dc-version="1.0.7-d3fa20fc76c7947d6de66db7e52526dc6bd7d782" \
        cluster-infrastructure="Heartbeat" \
        no-quarum-policy="ignore"


-------------------------------------------------------------------------------------
Following is my ifconfig
[root at aadityaxcat3 ~]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:xx:xx:xx:xx:xx
          inet addr:10.0.0.2  Bcast:10.255.255.255  Mask:255.0.0.0
          inet6 addr: fe80::21a:4bff:fedc:4be4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:8792 errors:0 dropped:0 overruns:0 frame:0
          TX packets:309 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2174710 (2.0 MiB)  TX bytes:33612 (32.8 KiB)
          Interrupt:16 Memory:f8000000-f8012800

eth1      Link encap:Ethernet  HWaddr 00:xx:xx:xx:xx:xx
          inet addr:192.168.15.130  Bcast:192.255.255.255  Mask:255.0.0.0
          inet6 addr: fe80::21a:4bff:fedc:4be6/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:77687 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2029 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:5290885 (5.0 MiB)  TX bytes:429404 (419.3 KiB)
          Interrupt:17 Memory:fa000000-fa012800

eth2      Link encap:Ethernet  HWaddr 00:xx:xx:xx:xx:xx
          inet addr:172.16.0.2  Bcast:172.16.255.255  Mask:255.255.0.0
          inet6 addr: fe80::219:bbff:fe30:833f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5813 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2794 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1474978 (1.4 MiB)  TX bytes:682389 (666.3 KiB)
          Interrupt:17

eth3      Link encap:Ethernet  HWaddr 00:xx:xx:xx:xx:xx
          inet6 addr: fe80::219:bbff:fe30:8340/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:75352 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4992321 (4.7 MiB)  TX bytes:344 (344.0 b)
          Interrupt:18

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:98 errors:0 dropped:0 overruns:0 frame:0
          TX packets:98 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:7832 (7.6 KiB)  TX bytes:7832 (7.6 KiB)

----------------------------------------------------------------------------------------------------------


-- 
Regards ,
Aaditya.

I want to change the world ,But God won't give me the source code.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20100506/2033ec9d/attachment-0001.html>


More information about the Pacemaker mailing list