Hi,

On Wed, Dec 31, 2008 at 10:22:25AM -0800, Jerome Yanga wrote:
> I have tried reading and interpreting the link below but could
> not get the Resource Monitoring to work.
> 
> http://linux-ha.org/ClusterInformationBase/Actions

Perhaps you should start with one of tutorials.

> I have installed heartbeat-2.1.3-1.  The following is in my
> /var/lib/heartbeat/crm/cib.xml file.

Since you're starting from scratch, do yourself a favour and
install 2.1.4 or pacemaker. See the downloads page.

> <primitive id="ecas" class="lsb" type="dirsrv" provider="heartbeat">
> <meta_attributes id="ecas_meta_attrs">
> <attributes>
> <nvpair id="ecas_metaattr_is_managed" name="is_managed" value="true"/>
> </attributes>
> </meta_attributes>
> <operations>
> <op id="3cb67e8a-0c36-43be-a758-be32ff1a377d" name="stop" timeout="3s" 
> start_delay="0s"
>  disabled="false" role="Started"/>
> <op id="0aa741d5-3540-4f0a-a998-b842e346e574" name="start" timeout="5s" 
> start_delay="0s
> " disabled="false" role="Started"/>
> <op id="df305ad8-92c7-4c95-bb8f-5646f9049a6f" name="monitor" interval="5s" 
> timeout="3s"
>  start_delay="0s" disabled="false" role="Master" on_fail="restart" 
> prereq="nothing"/>

You don't need start/stop ops defined.

> <op id="e4e428cf-b1c7-40af-aa3f-c8f25cded958" name="monitor" interval="10s" 
> timeout="3s
> " start_delay="0s" disabled="false" role="Slave" on_fail="restart" 
> prereq="nothing"/>

lsb class resources don't have the Slave role.

> <op id="977d0884-b419-4494-ab4c-d1c130e8dee4" name="monitor" interval="6s" 
> timeout="3s"
>  role="Started" on_fail="restart" start_delay="0s" disabled="false" 
> prereq="nothing"/>

This one, I suppose, should have worked, if the resource started.
Suggested config:

<op id="977d0884-b419-4494-ab4c-d1c130e8dee4" name="monitor" interval="6s" 
timeout="3s"/>

> <op id="9a46191d-cf6e-4243-bd25-6f9ea44116ca" name="monitor" interval="7s" 
> timeout="3s"
>  role="Stopped" on_fail="restart" start_delay="0s" disabled="false" 
> prereq="nothing"/>

Why do you want to monitor a resource which is in the Stopped state?

Thanks,

Dejan

> </operations>
> </primitive>"
> 
> I only have a single node as I just wanted to test if Heartbeat will start 
> the service automatically if I shutdown the dirsrv service manually.
> 
> Here is my /etc/ha.d/ha.cf.
> 
> # cat /etc/ha.d/ha.cf
> use_logd on
> bcast eth0
> node server1
> crm yes
> 
> Help.
> 
> jerome
> _______________________________________________
> 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

Reply via email to