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. _______________________________________________ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://bugs.clusterlabs.org