On 04/11/14 03:55 AM, Andrei Borzenkov wrote:
В Mon, 3 Nov 2014 07:07:41 +0000
Alex Samad - Yieldbroker <alex.sa...@yieldbroker.com> пишет:

{snip}
What I am hearing is that its not available. Is it possible to hook to
a custom script on that event, I can write my own restart


Sure you can write your own external stonith script.


Any pointers to a frame work somewhere ?

I do not think there is any formal stonith agent developers guide; take
at any existing agent like external/ipmi and modify to suite your needs.

Does fenced have any handlers, I notice it logs a message in syslog and cluster 
log is there a chance to capture the event there ?

I do not have experience with RH CMAN, sorry. But from what I
understand fenced and stonithd agents are compatible.

https://fedorahosted.org/cluster/wiki/FenceAgentAPI

Note the return codes. Also, not listed there, is the requirement that an agent print it's XML validation data. You can see example of what this looks like by calling 'fence_ipmilan -o metadata' (or any other fence_* agent).

For the record, I think this is a bad idea.

--
Digimer
Papers and Projects: https://alteeve.ca/w/
What if the cure for cancer is trapped in the mind of a person without access to education?

_______________________________________________
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://bugs.clusterlabs.org

Reply via email to