Martin Bene wrote:
Hi,

I've now spent some time trying to get stonith via ipmi to work;
admittedly my build environment is somewhat non-standard (gentoo, gcc
3.4.6 w/ssp & pie).

 - ipmilan.c doesn't compile, complains about Non-C90 code. The below
patch fixes this.

diff -ur heartbeat-2.0.8.orig/lib/plugins/stonith/ipmilan.c
heartbeat-2.0.8/lib/plugins/stonith/ipmilan.c
--- heartbeat-2.0.8.orig/lib/plugins/stonith/ipmilan.c  2007-01-12
03:57:08.000000000 +0100
+++ heartbeat-2.0.8/lib/plugins/stonith/ipmilan.c       2007-02-08
10:47:28.457535817 +0100
@@ -384,9 +384,6 @@
        int             rc;
        struct ipmilanHostInfo *  tmp;
- ERRIFWRONGDEV(s,S_OOPS);
-       nd = (struct pluginDevice *)s;
-
        StonithNamesToGet       namestocopy [] =
        {       {ST_HOSTNAME,   NULL}
        ,       {ST_IPADDR,     NULL}
@@ -398,6 +395,9 @@
        ,       {NULL,          NULL}
        };
+ ERRIFWRONGDEV(s,S_OOPS);
+       nd = (struct pluginDevice *)s;
+
        ERRIFWRONGDEV(s, S_OOPS);
        if (nd->sp.isconfigured) {
                return S_OOPS;

 - openipmi >= 2.0 in the above environment don't want to work,
resulting programs just segfault. Removing ssp&pie gcc setting gets
working libs. Actually resetting a node using the ipmi plugin still
doesn't work though (ipmilan packets go out on the network, haven't
traced yet where it fails).

I finally gave up and wrote an external plugin that uses ipmitool (which
I need anyway for monitoring temperature/fan/voltage). Seems to work OK
for me.

This leads to the actual question: how to correctly configure stonith
for my configuration; the examples use clone resources to make a single
stonith device accessible from all nodes.
I've now configured two seperate stonith resources using location
constraints with INFINITY scores binding them to the qpropriate nodes.
Is that OK or should I be doing this some other way?

Bye, Martin
------------------------------------------------------------------------

_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
Hello Martin,

If you check through the list your'll find an ipmi based stonith script (originally for Sun X4200 systems, search for X4200) that should just work for you. It requires openipmi2 and ipmitool. Other than that you should be good to go. There was talk of incorporating the script into the external stonith plugins but that hasn't come to pass.

Pete
_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to