[Pacemaker] state of resource when start returns success
Tim Serong
tserong at novell.com
Fri Mar 25 02:27:31 UTC 2011
On 3/25/2011 at 08:38 AM, Alan Jones <falancluster at gmail.com> wrote:
> I'm not asking about the behavior of the agent, but the status
> reported by pacemaker.
> An RA can correctly conform to the OCF specification and also take
> significant time for the start to complete.
> During that time pacemaker reports the resource state as 'Started'.
> How can I get access to an internal state in pacemaker that can
> distinguish between 'start in progress' and 'start completed'?
> Alan
Try this:
# crm configure op_defaults record-pending=true
Then this:
# crm resource start my-slow-resource
Then this:
# crm_resource --resource my-slow-resource -O
my-slow-resource (ocf::heartbeat:Delay) Started :
my-slow-resource_start_0 (node=node-0, call=-1, rc=14): pending
Then again, later:
# crm_resource --resource my-slow-resource -O
my-slow-resource (ocf::heartbeat:Delay) Started :
my-slow-resource_start_0 (node=node-0, call=86, rc=0): complete
Regards,
Tim
--
Tim Serong <tserong at novell.com>
Senior Clustering Engineer, OPS Engineering, Novell Inc.
More information about the Pacemaker
mailing list