[Pacemaker] HELP: Undesired restart of clone resource

Sha Fanghao shafanghao at gmail.com
Wed Dec 7 10:19:29 UTC 2011


Hello,

 

I have a cluster 3 nodes(CentOS 5.2) using pacemaker with heartbeat.

You can see the configuration:

 

[root at node-0 ~]# rpm -qa | egrep 'pacemaker|heartbeat'

heartbeat-libs-3.0.3-2.3.el5

heartbeat-libs-3.0.3-2.3.el5

heartbeat-3.0.3-2.3.el5

heartbeat-3.0.3-2.3.el5

pacemaker-libs-1.0.11-1.2.el5

pacemaker-1.0.11-1.2.el5

pacemaker-libs-1.0.11-1.2.el5

pacemaker-1.0.11-1.2.el5

 

[root at node-0 ~]# crm configure show

node $id="85e0ca02-7aa4-45c8-9911-4035e1e6ee15" node-2

node $id="a046bd1e-6267-49e5-902d-c87b6ed1dcb9" node-0

node $id="d0f0b2ab-f243-4f78-b541-314fa7d6b346" node-1

primitive failover-ip ocf:heartbeat:IPaddr2 \

        params ip="10.10.5.83" \

        op monitor interval="5s"

primitive master-app-rsc lsb:cluster-master \

        op monitor interval="5s"

primitive node-app-rsc lsb:cluster-node \

        op monitor interval="5s"

group group-dc failover-ip master-app-rsc

clone clone-node-app-rsc node-app-rsc

location rule-group-dc group-dc \

        rule $id="rule-group-dc-rule" -inf: #is_dc eq false

property $id="cib-bootstrap-options" \

        start-failure-is-fatal="false" \

        no-quorum-policy="ignore" \

        symmetric-cluster="true" \

        stonith-enabled="false" \

        dc-version="1.0.11-1554a83db0d3c3e546cfd3aaff6af1184f79ee87" \

        cluster-infrastructure="Heartbeat"

 

[root at node-0 ~]# crm_mon -n -1:

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

Last updated: Sat Oct 29 08:44:14 2011

Stack: Heartbeat

Current DC: node-0 (a046bd1e-6267-49e5-902d-c87b6ed1dcb9) - partition with
quorum

Version: 1.0.11-1554a83db0d3c3e546cfd3aaff6af1184f79ee87

3 Nodes configured, unknown expected votes

2 Resources configured.

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

 

Node node-0 (a046bd1e-6267-49e5-902d-c87b6ed1dcb9): online

        master-app-rsc  (lsb:cluster-master) Started

        failover-ip     (ocf::heartbeat:IPaddr2) Started

        node-app-rsc:0  (lsb:cluster-node) Started

Node node-1 (d0f0b2ab-f243-4f78-b541-314fa7d6b346): online

        node-app-rsc:1  (lsb:cluster-node) Started

Node node-2 (85e0ca02-7aa4-45c8-9911-4035e1e6ee15): online

        node-app-rsc:2  (lsb:cluster-node) Started

 

 

The question:

After stopping heartbeat service on node-1, if I remove node-1 with command
"hb_delnode node-1 && crm node delete node-1", then 

the clone resource(node-app-rsc:2) running on the node-2 will restart and
change to "node-app-rsc:1". 

The node-app-rsc resource is a daemon, so I don't want it to restart.

 

I have tried “pacemaker-1.0.12-1.el5.centos” with the same configuration,
but can’t resolved the question.

How could I do, Please?

 

Any help will be very appreciated. :)

 

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

Regards,

Fanghao Sha

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20111207/6babebbc/attachment-0003.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: messages.log
Type: application/octet-stream
Size: 16569 bytes
Desc: not available
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20111207/6babebbc/attachment-0003.obj>


More information about the Pacemaker mailing list