Hi Kiran,
the man page says (or use 'pcs resource help')
disable <resource id> [--wait[=n]]
Attempt to stop the resource if it is running and forbid the
cluster
from starting it again. Depending on the rest of the configuration
(constraints, options, failures, etc), the resource may remain
started. If --wait is specified, pcs will wait up to 30
seconds (or
'n' seconds) for the resource to stop and then return 0 if the
resource is stopped or 1 if the resource has not stopped.
A simple 'pcs resource disable MyResource' should work.
Frank
Am 24.02.2014 12:39, schrieb K Mehta:
Hi,
I am trying to use pcs commands instead of crmsh commands to manage
resources. How do I stop a resource using pcs ? I didnt find any pcs
resource stop command.
Regards,
kiran
_______________________________________________
Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker
Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org
_______________________________________________
Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker
Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org