[Pacemaker] Monitor a resource without the cluster reacting to the result...

Andrew Beekhof beekhof at gmail.com
Fri Mar 27 10:25:39 EDT 2009


On Fri, Mar 27, 2009 at 15:18, Joe Bill <foxycode at yahoo.com> wrote:
>
> --- On Tue, 3/24/09, foxycode at yahoo.com <foxycode at yahoo.com> wrote:
>
>> ... what command should I type to cause the cluster to
>> perform a "monitor" operation at a specific check level on
>> that resource, and return the appropriate OCF status of the
>> operation, *without* the cluster reacting like triggering a
>> failover ?
>>
>> I'd love to see something like:
>>
>> # crm_resource -m check_level resource_id
>> .
>> < everything 'echo'ed by the monitor operation >
>> .
>> Resource 'resource_id' is (running normally / in a failed
>> or undeterminable state / cleanly stopped).
>> #
>>
>> ... and $? holding the OCF_status of the monitor
>> operation.
>>
>
> Amazing what a few minutes of serious thumb-sucking can produce.
> The GUI shows an operation can be programmed for a given resource, and that the operation has several parameters, among them 'on fail' with 'ignore' as possible value. or, make sure that the specific monitoring operation always 'exit 0' and save the monitor's real status elsewhere.
>
> The only issue left now is that the monitoring jobs are invoked periodically and I'd like to have these invkoed just once, on demand.

Well there is lrmadmin which can talk directly to the lrmd.
But I still have serious doubts about your concept in general.




More information about the Pacemaker mailing list