Hi Andreas
Thanks for this tip. It works!!
I've converted my old version 1 config to version 2 with the script
included in the heartbeat package. I left most as it was, specially
because i was very new to the new cib configuration stuff.
Just to have it complete i post my change here:
Original, non working config:
=============================
<primitive type="ldirectord" id="ldirectord_1" class="heartbeat"
provider="heartbeat">
<operations>
<op id="ldirectord_1_mon" interval="120s" name="monitor"
timeout="60s" start_delay="0" disabled="false" role="Started"/>
</operations>
<instance_attributes id="ldirectord_1_inst_attr">
<attributes>
<nvpair id="ldirectord_1_attr_1" name="1"
value="ldirectord.cf"/>
<nvpair id="4707b7c0-7dbd-41a2-a812-ab98206b2508"
name="target_role" value="started"/>
</attributes>
</instance_attributes>
</primitive>
The only thing i had to change was the class attribute with cibadmin:
cibadmin -R -o resource -X '<primitive type="ldirectord"
id="ldirectord_1" class="ocf" provider="heartbeat">
<operations>
<op id="ldirectord_1_mon" interval="120s" name="monitor"
timeout="60s" start_delay="0" disabled="false" role="Started"/>
</operations>
<instance_attributes id="ldirectord_1_inst_attr">
<attributes>
<nvpair id="ldirectord_1_attr_1" name="1"
value="ldirectord.cf"/>
<nvpair id="4707b7c0-7dbd-41a2-a812-ab98206b2508"
name="target_role" value="started"/>
</attributes>
</instance_attributes>
</primitive>'
Urs
On Tue, 2007-11-20 at 16:07 +0100, matilda matilda wrote:
> Hi Urs,
>
> which Ressource Agent are you using for ldirectord?
> I had problems with the the 'heartbeat' type of RA, too.
> There is an ocf type RA which works for me with the
> limitation that you can only have one ldirectord config.
>
> Best regards
> Andreas Mock
>
>
> >>> Urs <[EMAIL PROTECTED]> 20.11.2007 15:59 >>>
> Hi
>
> I have ldirectord running on my servers. Now i get this error in
> crm_mon:
>
> =======================================
> Resource Group: group_1
> ldirectord_1 (heartbeat:ldirectord): Started sgw01.abc.de
> FAILED
> LVSSyncDaemonSwap_2 (heartbeat:LVSSyncDaemonSwap): Started
> sgw01.abc.de
> IPaddr_172_30_101_100 (heartbeat::ocf:IPaddr): Started
> sgw01.abc.de
> =======================================
>
>
> In the log-files:
> =======================================
> Nov 20 15:38:38 sgw01 lrmd: [18562]: WARN: There is something wrong: the
> first line isn't read in. Maybe the heartbeat does not ouput string
> correctly for status operation. Or the code (myself) is wrong.
> =======================================
>
> (I already posted that on an other mail, but now i saw that this is a
> separate problem and has nothing to do with the other one.)
>
>
> After searching a bit around i found out that ldirectord status should
> return "OK" or "running", right? I don't know if heartbeat gets the same
> status as when i execute "ldirectord status" from command line. There i
> get this f.ex.:
>
> # ldirectord status
> ldirectord is stopped for /etc/ha.d/ldirectord.cf
>
>
> It's not so dramatic because everything works fine. It only shows the
> failed message in crm_mon. But would be nice to have everything green in
> the hb_gui....
>
> Can i do something against that?
>
>
> Thanks
> Urs
>
> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>
>
> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems