Hi everybody.

I am working on the following scenario which is partially working. I have
set up a 2 node cluster and configured one resource (apache) to migrate from
one node to the other. Everything I do is virtually, using Oracle Virtual
Boxes. When I "disconnect" the cable of node1 both nodes will be active,
running apache and of course they see the other node as offline. But, when I
connect the cable again, the resource will stop running on node2, and always
it will run on node1. This is not what I want, because in my case node1 is
the bad one(he lost the connection). I think I need to set up scores in
order to start the resource on the second node when the first one fails. I
want that can happen automatically. so, what should I do in this case?

when I enter the command *crm configre* and then *ptest scores* I get the
following output:

group_color: WebServices allocation score on ha2-virtualbox: 0
group_color: WebServices allocation score on ha1-virtualbox: 0
group_color: ip1 allocation score on ha2-virtualbox: 0
group_color: ip1 allocation score on ha1-virtualbox: 100
group_color: ip1arp allocation score on ha2-virtualbox: 0
group_color: ip1arp allocation score on ha1-virtualbox: 100
group_color: apache2 allocation score on ha2-virtualbox: 0
group_color: apache2 allocation score on ha1-virtualbox: 100
native_color: ip1 allocation score on ha2-virtualbox: 0
native_color: ip1 allocation score on ha1-virtualbox: 400
native_color: ip1arp allocation score on ha2-virtualbox: -1000000
native_color: ip1arp allocation score on ha1-virtualbox: 200
native_color: apache2 allocation score on ha2-virtualbox: -1000000
native_color: apache2 allocation score on ha1-virtualbox: 100

my cluster configuration has the followwing output after *crm configure edit
* command:

node $id="6205c6b0-e45e-4899-ada9-743d5e38938a" ha1-virtualbox
node $id="cd44396f-aba9-453b-a75d-5cdc1e63130e" ha2-virtualbox
primitive apache2 lsb:apache2 \
        op monitor interval="5s"
primitive ip1 ocf:heartbeat:IPaddr2 \
        params ip="55.55.55.55" nic="eth0:0"
primitive ip1arp ocf:heartbeat:SendArp \
        params ip="55.55.55.55" nic="eth0:0"
group WebServices ip1 ip1arp apache2
colocation apache_with_ip inf: apache2 ip1
property $id="cib-bootstrap-options" \
        dc-version="1.0.9-unknown" \
        cluster-infrastructure="Heartbeat" \
        stonith-enabled="false"
rsc_defaults $id="rsc-options" \
        resource-stickiness="100"

regards, Florin Onciu

***********************************************
Florin Onciu, Munkemøllestræde 11
5000 Odense C - Denmark
telefon: +45 22 83 56 36
e-mail: [email protected]
***********************************************
out of nothing, God can do wonderful things!
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to