[ClusterLabs] creating a resource on a specific node

Vijay Partha vijaysarathy94 at gmail.com
Sat Oct 3 14:56:12 UTC 2015


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" <jorge.fabregas at gmail.com> 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: Users at clusterlabs.org
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clusterlabs.org/pipermail/users/attachments/20151003/7c674a66/attachment-0002.html>


More information about the Users mailing list