[Pacemaker] How to stop a failed resource?

Andreas Kurz andreas at hastexo.com
Fri Nov 4 19:42:15 EDT 2011


On 11/04/2011 05:01 PM, Tim Ward wrote:
> OK, so I've been messing around trying to write an OCF RA, and at
> various stages it was broken in assorted ways, getting my system into
> something of a state. I have succeeded in stopping and deleting all the
> resources created during this experimentation apart from one.
> 
> I've now got a resource called TestResource42 which I don't seem to be
> able to get rid of - all the documentation I can find suggests doing
> 
>    crm resource stop TestResource42
>    crm configure delete TestResource42

and of course you did:

crm resource cleanup TestResource42

...?

Regards,
Andreas

-- 
Need help with Pacemaker?
http://www.hastexo.com/now


> 
> but that fails because "resource TestResource42 is running, can't delete
> it" ... crm resource list seems to show it as both Started and FAILED,
> with no obvious way of ever getting rid of it. (Looking at the log shows
> that the RA isn't called to attempt the stop, and in fact isn't called
> at all during this entire sequence; monitor isn't called either.)
> 
> [root at ipa-ha1 ipaccess]# crm resource list
>  res_ClusterMon_1       (ocf::pacemaker:ClusterMon) Started
>  virtualIP1     (ocf::heartbeat:IPaddr2) Started
>  virtualIP2     (ocf::heartbeat:IPaddr2) Started
>  glassfish1     (ocf::ipaccess:anything) Started
>  glassfish2     (ocf::ipaccess:anything) Started
>  Master/Slave Set: drbd_ms
>      Masters: [ ipa-drbd1 ]
>      Slaves: [ ipa-drbd2 ]
>  drbd_fs        (ocf::heartbeat:Filesystem) Started
>  TestResource42 (ocf::ipaccess:timstest) Started  (unmanaged) FAILED
> 
> [root at ipa-ha1 ipaccess]# crm resource stop TestResource42
> 
> [root at ipa-ha1 ipaccess]# crm resource list
>  res_ClusterMon_1       (ocf::pacemaker:ClusterMon) Started
>  virtualIP1     (ocf::heartbeat:IPaddr2) Started
>  virtualIP2     (ocf::heartbeat:IPaddr2) Started
>  glassfish1     (ocf::ipaccess:anything) Started
>  glassfish2     (ocf::ipaccess:anything) Started
>  Master/Slave Set: drbd_ms
>      Masters: [ ipa-drbd1 ]
>      Slaves: [ ipa-drbd2 ]
>  drbd_fs        (ocf::heartbeat:Filesystem) Started
>  TestResource42 (ocf::ipaccess:timstest) Started  (unmanaged) FAILED
> 
> [root at ipa-ha1 ipaccess]# crm configure delete TestResource42
> WARNING: resource TestResource42 is running, can't delete it
> 
> 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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 286 bytes
Desc: OpenPGP digital signature
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20111105/032deb13/attachment-0003.sig>


More information about the Pacemaker mailing list