[Pacemaker] Resource won't switch from one node to another during power shutdown

Dejan Muhamedagic dejanmm at fastmail.fm
Fri Apr 24 07:03:00 UTC 2009


Hi,

On Thu, Apr 23, 2009 at 04:25:26PM -0400, Paul Osier wrote:
> Hi. I have a test system set up with a couple of nodes running Heartbeat
> and Pacemaker. I have an IP address resource that is to float between
> the two machines. If I gracefully shutdown heartbeat the resource will
> move to the other node. If I shutdown the Ethernet interface, the
> resource will move to the other node, but if I power off the node with
> the resource, the resource doesn't move. The running node shows the
> powered off node as "unclean offline". If I query the resource location
> from the running node, it thinks the resource is still on the powered
> off node. I've tried all kinds of parameters and can't get this to work.

Missing stonith? The default for stonith is enable (see pengine
metadata) and you don't have any stonith resources. crm_verify
should tell you that as well.

Thanks,

Dejan

> Here is my cib.xml:
> 
>  
> 
> -
> <file:///C:\Documents%20and%20Settings\Paul\Local%20Settings\Temporary%2
> 0Internet%20Files\OLK93\tmp.xml##>  <<cib validate-with="pacemaker-1.0"
> crm_feature_set="3.0.1" have-quorum="1" admin_epoch="8" epoch="75"
> dc-uuid="a6fd438a-d06c-436e-837d-af57b8302c8f" num_updates="0"
> cib-last-written="Thu Apr 23 11:41:59 2009">
> 
>   <configuration>
> 
>     <crm_config>
> 
>       <cluster_property_set id="cib-bootstrap-options">
> 
>         <nvpair id="cib-bootstrap-options-dc-version" name="dc-version"
> value="1.0.2-c02b459053bfa44d509a2a0e0247b291d93662b7"/>
> 
>         <nvpair id="cib-bootstrap-options-floatingIP" name="floatingIP"
> value="true"/>
> 
>         <nvpair id="cib-bootstrap-options-floatingIP-preferred-host"
> name="floatingIP-preferred-host" value="true"/>
> 
>         <nvpair id="cib-bootstrap-options-symmetric-cluster"
> name="symmetric-cluster" value="true"/>
> 
>       </cluster_property_set>
> 
>     </crm_config>
> 
>     <nodes>
> 
>       <node id="a6fd438a-d06c-436e-837d-af57b8302c8f"
> uname="sec-pacemaker" type="normal"/>
> 
>       <node id="f62cf901-aca8-4e57-9249-9f94128fff1f"
> uname="pri-pacemaker" type="normal"/>
> 
>     </nodes>
> 
>     <resources>
> 
>       <primitive class="ocf" provider="heartbeat" type="IPaddr"
> id="floatingIP">
> 
>         <operations>
> 
>           <op name="monitor" interval="3s" id="floatingIP-check"/>
> 
>         </operations>
> 
>         <instance_attributes id="floatingIP-instance_attributes">
> 
>           <nvpair id="floatingIP-instance_attributes-ip" name="ip"
> value="172.16.31.146"/>
> 
>         </instance_attributes>
> 
>         <meta_attributes id="floatingIP-meta_attributes">
> 
>           <nvpair id="floatingIP-meta_attributes-resource-stickiness"
> name="resource-stickiness" value="1000"/>
> 
>           <nvpair id="floatingIP-meta_attributes-migration-threshold"
> name="migration-threshold" value="1"/>
> 
>         </meta_attributes>
> 
>       </primitive>
> 
>     </resources>
> 
>     <constraints>
> 
>     </constraints>
> 
>   </configuration>
> 
> </cib>
> 
>  
> 
> Can anyone help me figure out what I'm doing wrong or what I'm missing?
> Thanks.
> 
>  
> 
>  
> 

> _______________________________________________
> Pacemaker mailing list
> Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker





More information about the Pacemaker mailing list