[ClusterLabs] Antw: Re: Reliable check for "is starting" state of a resource

Kostiantyn Ponomarenko konstantin.ponomarenko at gmail.com
Wed Nov 23 04:42:32 EST 2016


I found your email from 2011 which explains how pending state can be
tracked =)
Looks like since than "crm_mon" also shows "Starting" and "Stopping"
statuses, if it is called with "--pending" argument (and "record-pending=true"
is set).

Here is how my script for checking will look like:

while crm_mon -1D --pending | grep res1 | grep -q 'Starting\|Stopping' ; do
    echo The resource is Starting or Stopping ...
    sleep 1

Thank you guys!

Thank you,

On Wed, Nov 23, 2016 at 10:29 AM, Ulrich Windl <
Ulrich.Windl at rz.uni-regensburg.de> wrote:

> >>> Ken Gaillot <kgaillot at redhat.com> schrieb am 22.11.2016 um 21:37 in
> Nachricht
> <f0f0553c-29e7-fd99-d1fe-66ba3d1a8075 at redhat.com>:
> [...]
> > Probably the cleanest way is to set record-pending=true (either as an
> [...]
> I had set that on even before our pacemeker version supported it ;-) I
> think that should be the default, because you get a much better status
> output, especially if operations can take minutes to complete.
> Regards,
> Ulrich
> _______________________________________________
> Users mailing list: Users at clusterlabs.org
> http://clusterlabs.org/mailman/listinfo/users
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/users/attachments/20161123/94062a5f/attachment-0003.html>

More information about the Users mailing list