[ClusterLabs] creating a resource on a specific node
Tomas Jelinek
tojeline at redhat.com
Tue Oct 13 07:30:01 UTC 2015
Hi,
You can create a stopped resource using pcs like this:
pcs resource create dummy0 Dummy --disabled
In old versions of pcs --disabled is not supported, but you can do the
same by setting target-role:
pcs resource create dummy0 Dummy meta target-role=Stopped
Regards,
Tomas
Dne 3.10.2015 v 17:48 Vijay Partha napsal(a):
> could u help me on how to achieve this? or is it that it is not possible
> by making use of pcs?
>
> On 3 Oct 2015 20:51, "Vijay Partha" <vijaysarathy94 at gmail.com
> <mailto:vijaysarathy94 at gmail.com>> wrote:
>
> is it possible with pcs command? I am not making use of crm .
>
> On 3 Oct 2015 20:40, "Jorge Fábregas" <jorge.fabregas at gmail.com
> <mailto:jorge.fabregas at gmail.com>> wrote:
>
> On 10/03/2015 10:56 AM, Vijay Partha wrote:
> > 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.
>
> I use the crm shell & indeed you can specify it. Eg:
>
> primitive clusterIP ocf:heartbeat:IPaddr2 \
> params ip="IP_ADDRESS" \
> op monitor interval="30s" \
> meta target-role="Started"
>
>
> --
> Jorge
>
> _______________________________________________
> Users mailing list: Users at clusterlabs.org
> <mailto: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
>
>
>
> _______________________________________________
> 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
>
More information about the Users
mailing list