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 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@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@ipa-ha1 ipaccess]# crm resource stop TestResource42 [root@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@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@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