Hi,

Umakant Goyal wrote:
> Thanks for you response. i have gone through the document.
> I have couple of more doubts please help me regarding the same:
> 
> 1. Could you please also share how OCF and Heartbeat communicate to provide
> status of resource?

OCF Scripts are programs on the HA system.  Heartbeat runs these scripts 
periodically to get status updates or to start or stop resources.  It 
places certain named values in environment variables that the OCF script 
then uses to know which instance of the resource it is supposed to be 
starting/stopping/monitoring.

> 2. Do we need to configure heartbeat/OCF to them look for the status of
> particular resources? Is yes then please tell what all i need
>     to configure on HearBeat and OCF side.

You configure Heartbeat, which then calls the OCF script with the 
parameters you define.  The OCF script expects certain parameters to be 
defined, and tells you which ones it expects through the meta-data 
inside the script (if you run an OCF script on the command line with the 
command meta-data it will provide this meta-data to you).  For example: 
to configure a Filesystem resource, you would provide name-value pairs 
for "device", "directory", "fstype" (which is optional) and "options" 
(which is also optional).

> 
> On Thu, Mar 18, 2010 at 12:45 PM, Marian Marinov <[email protected]> wrote:
> 
>> Hello,
>> you should read this:
>> hnak
>> http://www.opencf.org/cgi-bin/viewcvs.cgi/specs/ra/resource-agent-
>> api.txt?rev=HEAD&content-type=text/vnd.viewcvs-markup<http://www.opencf.org/cgi-bin/viewcvs.cgi/specs/ra/resource-agent-%0Aapi.txt?rev=HEAD&content-type=text/vnd.viewcvs-markup>
>>
>> Regards,
>> Marian
>>
>> On Thursday 18 March 2010 07:34:17 Umakant Goyal wrote:
>>> Hi All,
>>>
>>> Can someone give me the idea how to write OCF (Open Cluster Framework)
>>> script to monitor running process in the system and provide the status of
>>> the same to the HeartBeat?
>>>
>>> Thanks in Advance
>>> _______________________________________________
>>> Linux-HA mailing list
>>> [email protected]
>>> http://lists.linux-ha.org/mailman/listinfo/linux-ha
>>> See also: http://linux-ha.org/ReportingProblems
>>>
>> --
>> Best regards,
>> Marian Marinov
>>
>> _______________________________________________
>> 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
> 

Regards,

Adrian Overbury
_______________________________________________
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