[Pacemaker] How to stop a resource?
Andreas Kurz
andreas at hastexo.com
Thu Mar 15 13:39:52 UTC 2012
On 03/15/2012 02:23 PM, Tim Ward wrote:
>> From: Jake Smith [mailto:jsmith at argotec.com]
>>
>> Maybe totally in the wrong direction for what you want but...
>> Put commands in a script and add a until loop with a pgrep
>> test and sleep 1 till the specific resource is stopped then continue?
>
> Yes, probably is in the wrong direction. I'm driving this from Java and have written an interface to the "crm" command, which is how I was advised to get at Pacemaker from Java when I enquired on this list.
>
I think your problem is, that a "crm resource stop" is asynchronous ...
it exits immediately, not waiting for the resource to stop eventually.
How about looping on "crm resource status _resource_" before deleting?
Regards,
Andreas
--
Need help with Pacemaker?
http://www.hastexo.com/now
> Tim Ward
> Brett Ward Limited - www.brettward.co.uk
>
>
>
>
>
>
> This message contains confidential information and may be privileged. If you are not the intended recipient, please notify the sender and delete the message immediately.
>
> ip.access Ltd, registration number 3400157, Building 2020,
> Cambourne Business Park, Cambourne, Cambridge CB23 6DW, United Kingdom
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 222 bytes
Desc: OpenPGP digital signature
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20120315/f1ab8070/attachment-0004.sig>
More information about the Pacemaker
mailing list