[Pacemaker] Difference between "crm resource" and crm_resource

Lars Marowsky-Bree lmb at suse.com
Wed Dec 5 11:32:17 UTC 2012


On 2012-12-05T16:51:14, pavan tc <pavan.tc at gmail.com> wrote:

> Hi,
> 
> Can someone please explain how the commands -
> 
> crm resource stop <resource name>
> 
> and
> 
> crm_resource --resource <resource name> --set-parameter target-role --meta
> --parameter-value Stopped
> 
> are different?

They are not. "crm" shell just provides a more coherent wrapper around
the various commands.

> Also, I see that "crm" has a -w option (which gives synchronous behaviour
> to the command)
> Is there something similar for crm_resource?

No. crm shell then watches the DC until the transition triggered by the
change has completed. crm_resource just modifies the configuration.



Regards,
    Lars

-- 
Architect Storage/HA
SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 21284 (AG Nürnberg)
"Experience is the name everyone gives to their mistakes." -- Oscar Wilde





More information about the Pacemaker mailing list