[Pacemaker] Can resource agents know the cause of stop action?

Vladislav Bogdanov bubble at hoster-ok.com
Mon Jun 24 07:17:13 EDT 2013


24.06.2013 13:55, Munehiro SATO wrote:
> Hi all,
> 
> Can resource agents know the cause of stop action?
> 
> I want to know following situations in RA for my application(it's
> Master/Slave resource).
> 
>  * stop by "crm resource stop"
>    In this case, my application shutdowns normally in stop action of RA.
> 
>  * stop by failure
>    In this case, my application shutdowns with additional steps for failover
> if possible.
> 
> Do you have any ideas?

You may use additional logic in your resource agent, so it saves
something when it is going to return failure from a monitor action handler.
Then you may use that "something" in your stop action handler.





More information about the Pacemaker mailing list