Hi,

Adding a timeout for the stop() operation worked like a charm.

Thanks for the input!

gr.
Johan

On 30-05-13 14:20, Florian Crouzat wrote:
Le 30/05/2013 13:57, Johan Huysmans a écrit :

When my resource has received the stop command, it will stop, but this
takes some time.
When the status is monitored during shutdown of the resource this will
fail, as the resource is configured as on-fail="block",
the resource is set to unmanaged.

Is this a bug? or can I workaround this issue?


You should probably override the default timeout for the stop() operation with a custom values of your choice.

See table 5.3 http://clusterlabs.org/doc/en-US/Pacemaker/1.1/html/Pacemaker_Explained/_resource_operations.html#_monitoring_resources_for_failure

Eg:

primitive foo ocf:x:y \
        op monitor on-fail="restart" interval="10s" \
        op start interval="0" timeout="2min" \
        op stop interval="0" timeout="5min"




_______________________________________________
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

Reply via email to