[Pacemaker] No resource failback with no stickiness - why ?
Andreas Kurz
andreas at hastexo.com
Mon Feb 20 14:05:00 UTC 2012
Hello,
On 02/18/2012 03:15 PM, Sébastien ROHAUT wrote:
> Hi,
>
> I'm using Pacemaker 1.1.6 and corosync 1.4.2 under Fedora Core 16, using
> default rpms from repositories.
>
> I'm trying to get a working Pacemaker cluster and I'm testing it by
> creating the "cluster from cratch configuration" from
> http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf.
> <http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf>
>
> I already worked with pacemaker 1.0.x two years ago, and it worked well
> (with the older documentation).
>
> I'm encountering a problem. I added my IPAddr resource and tried
> failvover/failback. So I stop my first node, and my resource moves to
> node2. After a minute I restart node1, but my resource doesn't come
> back, my resource stays on node2.
Without any constraints the cluster is free to move/locate resources
wherever it likes ... base policy is to balance all resources evenly
over available nodes ... you only have one resource -- cluster decides
to leave it as it is.
>
> As explained page 49, my resource should go back to node1. I didn't
> apply any stickiness value to my resource or in rsc_default. Did the
> behavior changed in this release ?
>
> How to make it working ?
Define a location constraint, preferring node1.
Regards,
Andreas
--
Need help with Pacemaker?
http://www.hastexo.com/now
>
> Thanks for your help.
>
> S. ROHAUT
>
> ptest result :
> # ptest -sL
> Allocation scores:
> native_color: apacheIP allocation score on node1: 0
> native_color: apacheIP allocation score on node2: 0
>
>
> Here is my actual conf :
> # crm configure show
> node node1
> node node2
> primitive apacheIP ocf:heartbeat:IPaddr \
> params ip="192.168.1.80" cidr_netmask="32" nic="eth0" \
> op monitor interval="30s" \
> meta target-role="Started"
> property $id="cib-bootstrap-options" \
> dc-version="1.1.6-4.fc16-89678d4947c5bd466e2f31acd58ea4e1edb854d5" \
> cluster-infrastructure="openais" \
> expected-quorum-votes="2" \
> stonith-enabled="false" \
> no-quorum-policy="ignore"
>
> In XML :
> # crm configure show xml
> <?xml version="1.0" ?>
> <cib admin_epoch="0" cib-last-written="Sat Feb 18 13:10:33 2012"
> crm_feature_set="3.0.5" dc-uuid="node1" epoch="34" have-quorum="1"
> num_updates="87" update-client="cibadmin" update-origin="node1"
> validate-with="pacemaker-1.2">
> <configuration>
> <crm_config>
> <cluster_property_set id="cib-bootstrap-options">
> <nvpair id="cib-bootstrap-options-dc-version" name="dc-version"
> value="1.1.6-4.fc16-89678d4947c5bd466e2f31acd58ea4e1edb854d5"/>
> <nvpair id="cib-bootstrap-options-cluster-infrastructure"
> name="cluster-infrastructure" value="openais"/>
> <nvpair id="cib-bootstrap-options-expected-quorum-votes"
> name="expected-quorum-votes" value="2"/>
> <nvpair id="cib-bootstrap-options-stonith-enabled"
> name="stonith-enabled" value="false"/>
> <nvpair id="cib-bootstrap-options-no-quorum-policy"
> name="no-quorum-policy" value="ignore"/>
> </cluster_property_set>
> </crm_config>
> <nodes>
> <node id="node1" type="normal" uname="node1"/>
> <node id="node2" type="normal" uname="node2"/>
> </nodes>
> <resources>
> <primitive class="ocf" id="apacheIP" provider="heartbeat"
> type="IPaddr">
> <instance_attributes id="apacheIP-instance_attributes">
> <nvpair id="apacheIP-instance_attributes-ip" name="ip"
> value="192.168.1.80"/>
> <nvpair id="apacheIP-instance_attributes-cidr_netmask"
> name="cidr_netmask" value="32"/>
> <nvpair id="apacheIP-instance_attributes-nic" name="nic"
> value="eth0"/>
> </instance_attributes>
> <operations>
> <op id="apacheIP-monitor-30s" interval="30s" name="monitor"/>
> </operations>
> <meta_attributes id="apacheIP-meta_attributes">
> <nvpair id="apacheIP-meta_attributes-target-role"
> name="target-role" value="Started"/>
> </meta_attributes>
> </primitive>
> </resources>
> <constraints/>
> </configuration>
> </cib>
>
>
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 222 bytes
Desc: OpenPGP digital signature
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20120220/14cda7c9/attachment-0004.sig>
More information about the Pacemaker
mailing list