On Fri, Feb 09, 2007 at 04:02:56PM +0100, 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.

That patch looks fine to me, I'll go ahead and apply if no one objects
in the near fuure.

> 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.

The ipmi mdule you are refering to is, to the best of my knowledge,
unmaintained. I did some work with a few other people on the list
to make it compile at some stage, but thats about as far as we got.

These days I do actually have some hardware that supports IMPI.
So I could get a little further if there is interest.

-- 
Horms
  H: http://www.vergenet.net/~horms/
  W: http://www.valinux.co.jp/en/

_______________________________________________________
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