Ulrich,
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
done
Thank you guys!
Thank you,
Kostia
On Wed, Nov 23, 2016 at 10:29 AM, Ulrich Windl <
[email protected]> wrote:
> >>> Ken Gaillot <[email protected]> schrieb am 22.11.2016 um 21:37 in
> Nachricht
> <[email protected]>:
> [...]
> > 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: [email protected]
> 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
>
_______________________________________________
Users mailing list: [email protected]
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