Don't use tabs in the haresource file!
alanr at suse.com
Tue Jul 25 09:06:37 MDT 2000
Juri Haberland wrote:
> Alan Robertson wrote:
> > What version of the code are you running?
> I tried it with 0.4.7f and 0.4.8
> > Could you send me your copy of /usr/lib/heartbeat/ResourceManager
> > as an attachment?
> > What version of sed are your running? In my version of SuSE, it's
> > part of the base package.
> It's a RedHat 6.2 with "GNU sed version 3.02" (same as in SuSE 6.4)
Which is also the version on SuSE 6.3 (which is what I'm running).
> > Can you send me all four of your logs (2 from each machine) for the case
> > when it fails?
> On the machine taking over the ha-debug just shows:
> Starting /etc/ha.d/resource.d/IPaddr 10.0.0.205 status
> /etc/ha.d/resource.d/IPaddr 10.0.0.205 status done. RC=0
> ha-log shows:
> info: Running /etc/ha.d/rc.d/status status
> info: Taking over resource group 10.0.0.205
> That's all. No resource scripts are run, no error message shown.
> I stripped the ResourceManager down to just the sed part and piped the
> output through cat -A. I could see that the first white spaces are
> substituted as intended, but the second occurrence is unchanged. It
> looks like the following (two different haresource files):
> dummy29.bln.innominate.de 10.0.0.205^Ildirectord $
> dummy29.bln.innominate.de 10.0.0.205 ^I ldirectord $
I assume that this is the output of the sed.
I get the same results as you got. I can find no reason from the paltry
GNU sed documentation why that should be so. However, I think I guessed
right on what the problem is. Try appending a 'g' to the long pattern
-e 's%[ ][ ]*% %g'
It appears to make this script behave correctly. Try it and tell me if
it makes your symptoms go away...
-- Alan Robertson
alanr at suse.com
More information about the Linux-HA