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

List:       linux-ha-dev
Subject:    Re: [Linux-ha-dev] problem with heartbeat.Filesystem RA
From:       Alan Robertson <alanr () unix ! sh>
Date:       2006-01-27 5:06:23
Message-ID: 43D9AA4F.9000201 () unix ! sh
[Download RAW message or body]

Lars Marowsky-Bree wrote:
> On 2006-01-26T07:36:17, Alan Robertson <alanr@unix.sh> wrote:
> 
>>> I decided fixing it would probably let me sleep better.
>>>
>>> You can retry with the latest CVS HEAD, I think it should work better
>>> now, I think it should solve this issue for you. Actually you only need
>>> to replace hto-mapfuncs with one generated from configure from that
>>> build.
>> Actually, the _right_ fix is to change the LRM to redirect stderr to 
>> stdout and then get rid of some code in the LRM.
> 
> However, ResourceManager.in also expects the status to come out on
> stdout and ignores stderr, so to make the scripts work in hb1 mode too,
> I choose this path.
> 
> Besides, I didn't want to touch the LRM and was edgy because this bug
> essentially broke hb1-resource scripts _completely_ and thus can't ever
> have been tested.
> 
> But yes, I agree in principle. Turns out the LRM actually already
> _reads_ stderr, it just doesn't look at it for such patterns. It also
> only expects this in the first line, while the old script would have
> basically concatenated all lines. It's not very tolerant of inputs.

In practice, if it actually paid attention to line boundaries, then the 
first line would be enough in most or all cases.

I actually meant in a sort of 2>&1 way - so that we could get rid of all 
the code that deals with stderr at all...

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