[ClusterLabs] Command to show location constraints?
Jan Pokorný
jpokorny at redhat.com
Wed Aug 28 04:03:47 EDT 2019
On 27/08/19 09:24 -0600, Casey & Gina wrote:
> Hi, I'm looking for a way to show just location constraints, if they
> exist, for a cluster. I'm looking for the same data shown in the
> output of `pcs config` under the "Location Constraints:" header, but
> without all the rest, so that I can write a script that checks if
> there are any set.
>
> The situation is that sometimes people will perform a failover with
> `pcs resource move --master <resource>`, but then forget to follow
> it up with `pcs resource clear <resource>`, and then it causes
> unnecessary failbacks later. As we never want to have any
> particular node in the cluster preferred for this resource, I'd like
> to write a script that can automatically check for any location
> constraints being set and either alert or clear it automatically.
One could also think of "crm_resource --clear --dry-run" that doesn't
exist yet. Please, file a RFE with https://bugs.clusterlabs.org if
this would be useful.
--
Jan (Poki)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <https://lists.clusterlabs.org/pipermail/users/attachments/20190828/724d0f78/attachment.sig>
More information about the Users
mailing list