On Wed, Aug 08, 2007 at 03:54:48PM +0200, Leroy van Logchem wrote:
> Alan Robertson wrote:
> >Well, we spent a bit of time looking at this before the release went
> >out, and thought we had fixed it.  In fact, is is fixed on SUSE Linux,
> >but obviously not really fixed :-(.
> >  
> http://old.linux-foundation.org/developer_bugzilla/show_bug.cgi?id=1678
> 
> >R2 external STONITH handling is much more sophisticated, and much
> >better.  But, there is no separate external device, but it supports
> >external devices.
> >  
> The 2cib converter translated this v1 line:
> stonith_host    * external foo /etc/ha.d/wti.pl
> 
> into:
> 
> ---<SNIP>---
> <primitive class="stonith" id="stonith_6" provider="heartbeat" 
> type="external">
>  <operations>
>    <op id="stonith_6_mon" interval="5s" name="monitor" prereq="nothing" 
> timeout="20s"/>
>    <op id="stonith_6_start" name="start" prereq="nothing" timeout="20s"/>
>  </operations>
>  <instance_attributes id="stonith_6_inst_attr">
>    <attributes>
>      <nvpair id="stonith_6_attr_2" name="ibmrsa" value="foo"/>
>      <nvpair id="stonith_6_attr_3" name="riloe" value="/etc/ha.d/wti.pl"/>
>    </attributes>
>  </instance_attributes>
> </primitive>
> ---<SNIP>---
> 
> This looks futile,

A very silly output ;-) It should have reported error (I'll fix
that), because your cf line should have been sth like:

stonith_host    * external/foo /etc/ha.d/wti.pl

> what would be the R2 way to use a script to handle 
> the stonith?

It's just a resource of the stonith class. Set attributes which
the stonith agent supports (get a list from "stonith -n -t
agent"). There is one example here
http://linux-ha.org/ConfiguringStonithPlugins

> 
> 
> -- 
> Leroy
> _______________________________________________
> 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