Xun Sun wrote:
On 1/12/06, Peter Kruse <[EMAIL PROTECTED]> wrote:
Hello,

In one of my RAs there is a line like this:

( exportfs ; cat /proc/fs/nfs/exports ) | grep -q "^${export_dir}[   ]"

This line apparently produces these errors:

Jan 12 13:40:08 ha-test-1 lrmd: [16217]: info: RA output:
(rg1:nfs1:monitor:stderr) cat:
Jan 12 13:40:08 ha-test-1 lrmd: [16217]: info: RA output:
(rg1:nfs1:monitor:stderr) write error
Jan 12 13:40:08 ha-test-1 lrmd: [16217]: info: RA output:
(rg1:nfs1:monitor:stderr) : Broken pipe


BTW, are't the three log messages more reasonable to be a single
message? i.e. "cat: write error: Broken pipe"
Can anybody give me a hint what am I doing wrong with the above?

This is a bug in the LRM. The code doesn't look for newlines before outputting anything (as it should). It just looks for _anything_ that it can read, then treats it as though it were a whole line. In this case, the shell is probably doing three write calls.

Please file a bugzilla on this.

--
    Alan Robertson <[EMAIL PROTECTED]>

"Openness is the foundation and preservative of friendship... Let me claim from you at all times your undisguised opinions." - William Wilberforce
_______________________________________________________
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