[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-ha-dev
Subject:    Re: [Linux-ha-dev] stonith: baytech.c
From:       Alan Robertson <alanr () unix ! sh>
Date:       2004-08-28 6:30:04
Message-ID: 4130266C.2000801 () unix ! sh
[Download RAW message or body]

Guochun Shi wrote:
> hi,
> 
> the baytech stonith does not work for me (mine is baytech RPC3) unless I make the \
> following modification: 
> Index: baytech.c
> ===================================================================
> RCS file: /home/cvs/linux-ha/linux-ha/lib/plugins/stonith/baytech.c,v
> retrieving revision 1.15
> diff -u -r1.15 baytech.c
> --- baytech.c   25 Mar 2004 11:58:22 -0000      1.15
> +++ baytech.c   28 Aug 2004 05:35:01 -0000
> @@ -628,8 +628,8 @@
> SEND("STATUS\r");
> 
> /* Expect: "emperature:" so we can skip over it... */
> -       EXPECT(bt->modelinfo->expect, 5);
> -       EXPECT(CRNL, 5);
> +/*     EXPECT(bt->modelinfo->expect, 5); */
> +/*     EXPECT(CRNL, 5); */
> 
> /* Looks Good!  Parse the status output */
> 
> 
> 
> Since Alan told me that it has been tested for RPC3 and it should work, I am not \
> sure if I should put this patch in cvs.  
> Can someone with baytech RPC3 run the test for me?;


static struct Etoken Break[] =          { {"reaker: ", 0, 0}
                                         ,       {NULL,0,0}};
static struct Etoken Temp[] =           { {"emperature: ", 0, 0}
                                         ,       {NULL,0,0}};

static struct BayTechModelInfo ModelInfo [] = {
         {"RPC-5", 18, Temp},    /* This first model will be the default */
         {"RPC-3", 10, Break},
         {"RPC-3A", 10, Break},
         {NULL, 0, NULL},





For the RPC3, it is looking for "reaker:"

I take it that this doesn't occur in this context on your unit?  Does 
something similar occur??

Any chance yours is being recognized as an RPC4, and it's looking for the 
temperature string?


-- 
     Alan Robertson <alanr@unix.sh>

"Openness is the foundation and preservative of friendship...  Let me claim 
from you at all times your undisguised opinions." - William Wilberforce
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic