<p dir="ltr">can I set target-role along with create command? after I give create command the resource starts. after create command only I am able to set target-role property. </p>
<div class="gmail_quote">On 3 Oct 2015 20:17, &quot;Jorge Fábregas&quot; &lt;<a href="mailto:jorge.fabregas@gmail.com">jorge.fabregas@gmail.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 10/03/2015 10:27 AM, Vijay Partha wrote:<br>
&gt; any command while adding a resource to a node to make it run only on a<br>
&gt; particular node<br>
<br>
Hi,<br>
<br>
I don&#39;t think there&#39;s such a thing (specify a location at creation<br>
time).  Since you can&#39;t create a location constraint for a resource that<br>
doesn&#39;t exist, what I would do in a running cluster is:<br>
<br>
- create the resource with a target-role of &quot;Stopped&quot;<br>
- create the location constraint for it<br>
- change resource taget-role to &quot;Started&quot; (and it should start where you<br>
indicated in the constraint).<br>
<br>
<br>
HTH,<br>
Jorge<br>
<br>
_______________________________________________<br>
Users mailing list: <a href="mailto:Users@clusterlabs.org">Users@clusterlabs.org</a><br>
<a href="http://clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://clusterlabs.org/mailman/listinfo/users</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" rel="noreferrer" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel="noreferrer" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" rel="noreferrer" target="_blank">http://bugs.clusterlabs.org</a><br>
</blockquote></div>