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. On 3 Oct 2015 20:17, "Jorge Fábregas" <[email protected]> wrote:
> On 10/03/2015 10:27 AM, Vijay Partha wrote: > > any command while adding a resource to a node to make it run only on a > > particular node > > Hi, > > I don't think there's such a thing (specify a location at creation > time). Since you can't create a location constraint for a resource that > doesn't exist, what I would do in a running cluster is: > > - create the resource with a target-role of "Stopped" > - create the location constraint for it > - change resource taget-role to "Started" (and it should start where you > indicated in the constraint). > > > HTH, > Jorge > > _______________________________________________ > Users mailing list: [email protected] > http://clusterlabs.org/mailman/listinfo/users > > Project Home: http://www.clusterlabs.org > Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf > Bugs: http://bugs.clusterlabs.org >
_______________________________________________ Users mailing list: [email protected] http://clusterlabs.org/mailman/listinfo/users Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://bugs.clusterlabs.org
