On 3/7/12 10:50 AM, Jerome Yanga wrote:
> I would just want to share that the command recommended did NOT move
> the resource to another node.  It basically clears the Failed Actions
> section.

This is why I was conditional in my response. Suppose you had something like the
following:

primitive MyResource ocf:heartbeat:Dummy
location MyResourcePreferredNode MyResource 10: my-node-a.example.com

with no resource-stickiness set. Assume MyResource fails on my-node-a, and is
moved to my-node-b. Then if you were to do:

crm resource cleanup MyResource

pacemaker might move MyResource back to my-node-a. It might even move it back
without that example MyResourcePreferredNode constraint. If you want to avoid
that, consider per-resource or global resource-stickiness:

<http://www.clusterlabs.org/doc/en-US/Pacemaker/1.1/html/Clusters_from_Scratch/ch05s03s02.html>
<http://www.gossamer-threads.com/lists/linuxha/pacemaker/64076>

Again, a disclaimer: I am not an expert.

> On Tue, Mar 6, 2012 at 11:46 AM, William Seligman
> <selig...@nevis.columbia.edu> wrote:
>> On 3/6/12 2:38 PM, Jerome Yanga wrote:
>>
>>> Do you know by chance if that command you have provided bounces the 
>>> resource?
>>
>> I don't know what you mean by "bounce the resource." According to:
>>
>> <http://www.clusterlabs.org/doc/crm_cli.html>
>>
>> the command refreshes the resource status. Depending on your configuration, 
>> it
>> might shift a resource to another node.
>>
>> But I am not an expert! I merely knew how to clear up the error message.
>>
>>> On Tue, Mar 6, 2012 at 10:28 AM, William Seligman
>>> <selig...@nevis.columbia.edu> wrote:
>>>> On 3/6/12 1:04 PM, Jerome Yanga wrote:
>>>>> crm_mon shows the error below.
>>>>>
>>>>> Failed actions:
>>>>> � � drbd0:1_monitor_59000 (node=testserver1.example.com, call=132,
>>>>> rc=-2, status=Timed Out): unknown exec error
>>>>>
>>>>> I have check DRBD and the mirror is connected and uptodate on both nodes.
>>>>>
>>>>> The error above caused the resources to failover and it seems to be
>>>>> working OK. �However, the failed actions section has not disappeared.
>>>>> How do I clear this error?
>>>>
>>>> crm resource cleanup drbd0

-- 
Bill Seligman             | Phone: (914) 591-2823
Nevis Labs, Columbia Univ | mailto://selig...@nevis.columbia.edu
PO Box 137                |
Irvington NY 10533 USA    | http://www.nevis.columbia.edu/~seligman/

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to