[Pacemaker] How to stop a failed resource?
Tim Ward
Tim.Ward at ipaccess.com
Fri Nov 4 16:01:18 UTC 2011
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 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
More information about the Pacemaker
mailing list