[Linux-HA] Stonith v2 question
Dave Blaschke
debltc at us.ibm.com
Tue Nov 7 10:44:38 MST 2006
Mc Linux wrote:
> Hi!
>
> Now I've almost got a right cib.xml.
> I like to configure my external plugin.
> Can somebody help me to write the right lines to cib.xml?
>
> My plugins name is mr-external, and it's placed to
> /usr/lib/stonith/plugins/external/.
>
> I read this page: http://www.linux-ha.org/ConfiguringStonithPlugins,
> but I can't really understand it...
>
> I used this with v1 config, and have the following lines:
I'm assuming by v1 config you mean a legacy-style cluster running on
hb2, since true external plugins (as used below) are not supported on hb1.
>
> stonith external/mr-external /etc/ha.d/conf/mr-external
> stonith_host * external/mr-external 192.168.200.0 off
These two ha.cf directives are supposed to be mutually exclusive,
meaning you should use one or the other but not both. Does your plugin
work if you comment out the stonith_host line? If so, is "192.168.200.0
off" even needed?
>
> mr-external is a simple bash script which understands the "hostname"
> and the "on/off/reset" parameter. /etc/ha.d/conf/mr-external file is
> empty.
To be a compliant external plugin, you need to support all of the
required operations. Please see:
http://www.linux-ha.org/ExternalStonithPlugins
which also shows a CIB excerpt for an external plugin.
>
> Thank You!
>
> MrMC
> _______________________________________________
> Linux-HA mailing list
> Linux-HA at lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
More information about the Linux-HA
mailing list