Jure Pečar wrote:
Hi all,

I'm trying to configure iLo stonith with heartbeat 2.0.8. Calling external/riloe on the command line with all the RI_* variables in the environment works fine. Calling stonith -t external/riloe with RI_* variables and -S also reports OK. However, I'm having troubles figuring out how to put these variables in a file that I can call with -F. I haven't found any examples or documentation describing the syntax ...
Well, -F (and -p) are holdovers from R1 syntax, the preferred R2 method is the name=value pairs you show below. With -F and -p, the parameters are positional so the first token on the line is the first parameter, the second token is the second parameter, etc.
I figured that if I put all variables in signle line like this:

RI_HOST=host RI_HOSTRI=host-ilo RI_LOGIN=Administrator RI_PASSWORD=password

stonith doesn't complain about syntax but says "device not accessible". Why?
The config names for external/riloe are hostlist, ilo_hostname, ilo_user, ilo_password, ilo_can_reset, ilo_protocol, ilo_powerdown_method. So if you put the above variables on the single line, your name/value pairs would be hostlist="RI_HOST=host", ilo_hostname="RI_HOSTRI=host-ilo", etc. You are MUCH better off setting up stonith in your cib.xml, then you can add the name/values pairs as attributes, i.e.

    <nvpair id="ri_hostlist_id" name="hostlist" value="node1" />
    <nvpair id="ri_host_id" name="RI_HOST" value="host" />

Another related question: In a two-node cluster, should stonith config describe 
the iLo device of the local machine or of the other machine?



_______________________________________________
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