[Linux-HA] ha.cf stonith command question
Chun Tian (binghe)
binghe.lisp at gmail.com
Fri Feb 22 06:47:38 MST 2008
Hi, there
> I have tested stonith from the command line and was able to reset the
> target PC. On the command I used the following:
>
> stonith -t external/ipmi -T reset -p "capestor2 10.43.120.134 ADMIN
> mypassword" capestor2
>
> This worked marvelously! So then I move the stuff into the ha.cf.
> Not having much in the way of examples for ipmi this was my best guess
>
> stonith_host capestor1 external/ipmi capestor2 10.43.120.134 ADMIN
> mypassword
>
> Syslog gives me this:
> Feb 21 17:20:24 capestor2 heartbeat: [4133]: info: Checking status of
> STONITH device [IPMI STONITH device ]
> Feb 21 17:20:24 capestor2 heartbeat: [4133]: info: glib:
> external_run_cmd: Calling '/usr/lib64/stonith/plugins/external/ipmi
> status' returned 256
I met this too.
I guess this calling actually return 0 but SOMETIMES stonith/external
thought the return value is 256...
I have a running Heartbeat 4-node cluster with stonith enabled, a few
days ago, I got a return value 256 when 'ipmi status' be calling.
>
> Feb 21 17:20:24 capestor2 heartbeat: [4133]: ERROR: STONITH device
> IPMI STONITH device not operational!
> Feb 21 17:20:24 capestor2 heartbeat: [4111]: WARN: Managed
> STONITH-stat process 4133 exited with return code 1.
> Feb 21 17:20:24 capestor2 heartbeat: [4111]: ERROR: STONITH status
> operation failed.
> Feb 21 17:20:24 capestor2 heartbeat: [4111]: info: This may mean that
> the STONITH device has failed!
>
> I even went so far as to copy the ipmi plugin to test-ipmi and
> hardcoded the values for the variables that are passed in my
> heartbeat. That worked.
>
> Any ideas as to what I may be doing wrong?
>
> thanks
>
> Doug
>
>
>
>
> --
> What profits a man if he gains the whole world yet loses his soul?
> _______________________________________________
> 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