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" <[email protected]
<mailto:[email protected]>> wrote:

    is it possible with pcs command?  I am not making use of crm .

    On 3 Oct 2015 20:40, "Jorge Fábregas" <[email protected]
    <mailto:[email protected]>> 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: [email protected]
        <mailto:[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


_______________________________________________
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

Reply via email to