<div class="gmail_quote">On Wed, Dec 12, 2012 at 6:46 PM, Dejan Muhamedagic <span dir="ltr">&lt;<a href="mailto:dejanmm@fastmail.fm" target="_blank">dejanmm@fastmail.fm</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<div class="im"><br>
On Wed, Dec 12, 2012 at 03:50:01PM +0530, pavan tc wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; My requirement was to do some administration on one of the nodes where a<br>
&gt; 2-node multi-state resource was running.<br>
&gt; To effect a resource instance stoppage on one of the nodes, I added a<br>
&gt; resource constraint as below:<br>
&gt;<br>
&gt; crm configure location ms_stop_res_on_node &lt;ms_resource&gt; rule -inf: \#uname<br>
&gt; eq `hostname`<br>
&gt;<br>
&gt; The resource cleanly moved over to the other node. Incidentally, the<br>
&gt; resource was the master on this node<br>
&gt; and was successfully moved to a master state on the other node too.<br>
&gt; Now, I want to bring the resource back onto the original node.<br>
&gt;<br>
&gt; But the above resource constraint seems to have a persistent behaviour.<br>
&gt; crm resource unmigrate &lt;ms_resource&gt; does not seem to undo the effects of<br>
&gt; the constraint addition.<br>
<br>
</div>You can try to remove your constraint:<br>
<br>
crm configure delete ms_stop_res_on_node<br>
<br></blockquote><div><br>That did the job. Thanks a ton!<br><br>Pavan<br> <br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
migrate/unmigrate generate/remove special constraints.<br>
<br>
Thanks,<br>
<br>
Dejan<br>
<div class="im"><br>
&gt;<br>
&gt; I think the location constraint is preventing the resource from starting on<br>
&gt; the original node.<br>
&gt; How do I delete this location constraint now?<br>
&gt;<br>
&gt; Is there a more standard way of doing such administrative tasks? The<br>
&gt; requirement is that I do not want to offline the<br>
&gt; entire node while doing the administration but rather would want to stop<br>
&gt; only the resource instance, do the admin work<br>
&gt; and restart the resource instance on the node.<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Pavan<br>
<br>
</div>&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: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
<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://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
</blockquote></div><br>