Chris Card wrote:
>
>   
>> Date: Wed, 19 Aug 2009 06:52:55 -0500
>> From: [email protected]
>> To: [email protected]
>> Subject: Re: [Linux-HA] stonith question
>>
>> Chris Card wrote:
>>     
>
>   
>>> I'm planning to use stonith with heartbeat (v1), and I understand that to 
>>> do this I need a "stonith" or "stonith_host" line in my ha.cf to get 
>>> heartbeat to call the stonith plugin with the appropriate parameters. 
>>>
>>> What is not clear to me is under what conditions heartbeat will call the 
>>> stonith plugin to power off a machine - is this documented anywhere?
>>>   
>>>       
>> Not sure if a complete or even partially complete list exists, but in 
>> general a node is STONITHed whenever heartbeat needs to make sure that 
>> it is not using cluster resources.  Here is a nice little article that 
>> includes some discussion on fencing:
>>
>> http://techthoughts.typepad.com/managing_computers/2007/10/split-brain-quo.html
>>     
>>> Chris
>>>       
>
> Thanks Dave, that's a useful document, though I'd still like some definite 
> info about what heartbeat actually does.
>
> I've been looking at the source, and one thing I noticed is that heartbeat 
> itself only seems to send a "reset" command to the stonith device, whereas 
> the stonith command line tool also accepts "on" and "off" as separate 
> actions. Is this the case, or am I missing something? Is there a way to make 
> heartbeat power off a machine and not automatically power it on again?
>   
You are not missing something, they are indeed separate actions but 
reset is by far and away the main one.  In fact, for v2 external STONITH 
plugins, reset is the only required operation while on and off are 
optional.  I'm not aware of a way to power off a STONITH device on v1, 
v2 includes the following CIB directive:

<nvpair name="stonith-action" id="cib-bootstrap-options-stonith-action" 
value="poweroff"/>

You may be able to play around with the meatware device, which waits for 
manual intervention, or external device, which *I believe* issues a 
system() call if you can call your device via the shell.
> Chris
>
> _________________________________________________________________
>
> Upgrade to Internet Explorer 8 Optimised for MSN.  
>
> http://extras.uk.msn.com/internet-explorer-8/?ocid=T010MSN07A0716U
> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>   


_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to