[Pacemaker] making resource managed

Michael Schwartzkopff misch at clusterbau.com
Wed Nov 3 19:34:53 UTC 2010


On Wednesday 03 November 2010 19:53:27 Vadim S. Khondar wrote:
> Hello everyone.
> 
> How can I take the resource back into managed state after it becomes
> unmanaged due to error?
> 
> For example, I have following situation:
> 
> crm(live)# status
> ============
> Last updated: Wed Nov  3 20:23:58 2010
> Stack: Heartbeat
> Current DC: ha-3 (a1ad8f56-7eb0-4aec-8d32-83e283903879) - partition with
> quorum
> Version: 1.0.9-89bd754939df5150de7cd76835f98fe90851b677
> 2 Nodes configured, unknown expected votes
> 2 Resources configured.
> ============
> 
> Online: [ ha-3 ha-4 ]
> 
>  test_ManageVE (ocf::heartbeat:ManageVE): Started ha-3 (unmanaged)
> FAILED
> 
>  test2_ManageVE (ocf::heartbeat:ManageVE): Started ha-3 (unmanaged)
> FAILED
> 
> Failed actions:
>     test_ManageVE_stop_0 (node=ha-3, call=22, rc=-2, status=Timed Out):
> unknown exec error
>     test2_ManageVE_stop_0 (node=ha-3, call=23, rc=-2, status=Timed Out):
> unknown exec error
> 
> 
> After this I've tried to do:
> resource cleanup test_ManageVE
> resource reprobe test_ManageVE
> resource refresh test_ManageVE
> resource manage test_ManageVE
> 
> However, I still see "Failed actions" in status and can't start/stop
> resources via crm.
> 
> If I do crm# configure edit, change something and commit changes,
> resources are started/moved/etc as in normal operation. The same thing
> is when I fetch/apply xml via cibadmin.
> 
> All that made me think that I've missed something in documentation which
> explains such behavior.
> 
> Could anyone point me to explanation?

Check why you get the error. Should be in the logs.

After finding the cause for the error and solving it:

crm resource cleanup test_ManageVE
crm resource manage test_ManageVE


Greetings,

-- 
Dr. Michael Schwartzkopff
Guardinistr. 63
81375 München

Tel: (0163) 172 50 98
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://oss.clusterlabs.org/pipermail/pacemaker/attachments/20101103/e9238a6d/attachment-0001.sig>


More information about the Pacemaker mailing list