yep ok:<div><br></div><div><div>node $id=&quot;492edbea-b2e9-40a5-9208-bacb1bbad124&quot; openvz1</div><div>node $id=&quot;60ed0c20-c1ae-4b72-8781-10b4ff99f75b&quot; openvz2</div><div>primitive ClusterIP ocf:heartbeat:IPaddr2 \</div>
<div>        params ip=&quot;10.10.12.250&quot; cidr_netmask=&quot;16&quot; \</div><div>        op monitor interval=&quot;30s&quot;</div><div>primitive OWP lsb:owp \</div><div>        op monitor interval=&quot;1min&quot;</div>
<div>primitive VZ lsb:vz \</div><div>        op monitor interval=&quot;1min&quot;</div><div>primitive VZData ocf:linbit:drbd \</div><div>        params drbd_resource=&quot;vzpart&quot; \</div><div>        op monitor interval=&quot;60s&quot;</div>
<div>primitive VZFS ocf:heartbeat:Filesystem \</div><div>        params device=&quot;/dev/drbd/by-res/vzpart&quot; directory=&quot;/vz&quot; fstype=&quot;ext3&quot;</div><div>ms VZDataClone VZData \</div><div>        meta master-max=&quot;1&quot; master-node-max=&quot;1&quot; clone-max=&quot;2&quot; clone-node-max=&quot;1&quot; notify=&quot;true&quot;</div>
<div>location prefer-openvz1 VZDataClone inf: openvz1</div><div>colocation OWP-with-ip inf: OWP VZ VZFS VZDataClone:Master ClusterIP</div><div>order VZFS-after-VZData inf: ClusterIP VZDataClone:promote VZFS:start VZ OWP</div>
<div>property $id=&quot;cib-bootstrap-options&quot; \</div><div>        dc-version=&quot;1.0.9-89bd754939df5150de7cd76835f98fe90851b677&quot; \</div><div>        cluster-infrastructure=&quot;Heartbeat&quot; \</div><div>        stonith-enabled=&quot;false&quot; \</div>
<div>        no-quorum-policy=&quot;ignore&quot; \</div><div>        default-action-timeout=&quot;60s&quot;</div><div><br></div><div><br></div><div><div>Last updated: Tue Jun 29 11:06:19 2010</div><div>Stack: Heartbeat</div>
<div>Current DC: openvz1 (492edbea-b2e9-40a5-9208-bacb1bbad124) - partition with quor</div><div>um</div><div>Version: 1.0.9-89bd754939df5150de7cd76835f98fe90851b677</div></div><div><br></div><div><br></div><br><div class="gmail_quote">
On Tue, Jun 29, 2010 at 11:30 AM, Andrew Beekhof <span dir="ltr">&lt;<a href="mailto:andrew@beekhof.net">andrew@beekhof.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">On Tue, Jun 29, 2010 at 11:07 AM, marc genou &lt;<a href="mailto:marcgenou@gmail.com">marcgenou@gmail.com</a>&gt; wrote:<br>
&gt; Hi again<br>
&gt; I am testing an active pasive config and I noticed that when I power off the<br>
&gt; active node, the resources move to another one, ok that&#39;s right. And I added<br>
&gt; a location so when I switch on the active node again all resources come back<br>
&gt; to this node, Ok that&#39;s right too. But if resources are running on the<br>
&gt; active node and I power off the pasive one, all the resources restart in the<br>
&gt; active tough they stand still there.<br>
&gt; Is this a normal behaviour? How can we managed to avoid this?<br>
<br>
</div></div>Answer to both depends on your pacemaker version and configuration.<br>
Neither of which was included ;-)<br>
<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
&gt; <a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
&gt;<br>
&gt; Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
&gt; Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
&gt; Bugs:<br>
&gt; <a href="http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker" target="_blank">http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker</a><br>
&gt;<br>
&gt;<br>
<br>
_______________________________________________<br>
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker" target="_blank">http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker</a><br>
</blockquote></div><br></div>