Debugging Resource Failures

If you have a resource that fails to start, and there's nothing obvious in the logs (look for "lrmd", "LRM operation", etc.), you can try starting it manually to diagnose the problem further. Likewise for failed stop and monitor ops. Here's how:


 * Unmanage the resource, so Pacemaker won't try to do anything with it:


 * 1) crm resource unmanage 


 * Configure environment:

"crm configure show " to verify what params you need to set here)
 * 1) export OCF_ROOT=/usr/lib/ocf
 * 2) export OCF_RESKEY_ =
 * 3) ... (likewise for all other resource parameters, run


 * Run the op:


 * 1) /usr/lib/ocf/resource.d/heartbeat/ start ; echo $?


 * Look for helpful error messages, and check the return code


 * If that doesn't help, try using sh -x or bash -x to see exactly what the RA is doing. Do a stop first just in case, then try the start again:


 * 1) /usr/lib/ocf/resource.d/heartbeat/ stop
 * 2) sh -x /usr/lib/ocf/resource.d/heartbeat/ start ; echo $?


 * Once you've figured out what the problem is and solved it, give the resource back to Pacemaker:


 * 1) crm resource manage 