[Pacemaker] Unble to configure pacemaker using multiple ips.

nikhil nikhpr87 at gmail.com
Thu Mar 10 06:44:02 EST 2011


Hello,

I have setup loadbalancing in our internal servers.
Please see the below details :

================================
192.168.1.40 - server.ha1.com
192.168.1.184 - server.ha2.com

virtual ips
-----------
192.168.1.38
192.168.1.39
================================

I have tried to configure loadbalancing using multiple virtual ips.
But they seems to be not working.

Please see my pacemaker configurations

==================================

crm configure show
node $id="84580d4a-fa7d-41fd-9d9f-2e2a16e4feb8" server.ha1.com
node $id="f930877f-e361-4dae-b7f5-230b6ab7140d" server.ha2.com
primitive apache2 lsb:httpd \
        op monitor interval="5s"
primitive apache3 lsb:httpd \
        op monitor interval="5s"
primitive ip1 ocf:heartbeat:IPaddr2 \
        params ip="192.168.1.38" nic="eth0:0"
primitive ip1arp ocf:heartbeat:SendArp \
        params ip="192.168.1.38" nic="eth0:0"
primitive ip2 ocf:heartbeat:IPaddr2 \
        params ip="192.168.1.39" nic="eth0:1"
primitive ip2arp ocf:heartbeat:SendArp \
        params ip="192.168.1.39" nic="eth0:1"
group WebServices ip1 ip1arp apache2
group WebServices2 ip2 ip2arp apache3
location cli-prefer-WebServices WebServices \
        rule $id="cli-prefer-rule-WebServices" inf: #uname eq server.ha1.com
location cli-prefer-WebServices2 WebServices2 \
        rule $id="cli-prefer-rule-WebServices2" inf: #uname eq server.ha1.com
colocation ip_with_arp inf: ip1 ip1arp
colocation ip_with_arp2 inf: ip2 ip2arp
colocation web_with_ip inf: apache2 ip1
colocation web_with_ip2 inf: apache3 ip2
order arp_after_ip inf: ip1:start ip1arp:start
order arp_after_ip2 inf: ip2:start ip2arp:start
order web_after_ip inf: ip1arp:start apache2:start
order web_after_ip2 inf: ip2arp:start apache3:start
property $id="cib-bootstrap-options" \
        dc-version="1.0.10-da7075976b5ff0bee71074385f8fd02f296ec8a3" \
        cluster-infrastructure="Heartbeat" \
        expected-quorum-votes="2" \
        stonith-enabled="false" \
        no-quorum-policy="ignore"
rsc_defaults $id="rsc-options" \
        resource-stickiness="100"

==================================


Also the command "crm_verify -VL" sows the below error : 

===================================
root at server ~]# crm_verify -VL
crm_verify[627]: 2011/03/10_17:07:57 WARN: unpack_rsc_op: Processing failed op
apache2_start_0 on server.ha1.com: unknown error (1)
crm_verify[627]: 2011/03/10_17:07:57 WARN: common_apply_stickiness: Forcing
apache2 away from server.ha1.com after 1000000 failures (max=1000000)
===================================

Please help me on this.

Thank You
Nikhil






More information about the Pacemaker mailing list