[Pacemaker] stonith q

Digimer lists at alteeve.ca
Tue Nov 4 10:53:26 EST 2014


On 04/11/14 03:55 AM, Andrei Borzenkov wrote:
> В Mon, 3 Nov 2014 07:07:41 +0000
> Alex Samad - Yieldbroker <Alex.Samad at 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?




More information about the Pacemaker mailing list