Show Table of Contents
6.4. 显示限制
可使用一些命令显示已配置的限制。
以下命令列出所有当前位置、排序及节点共置限制。
pcs constraint list|show
以下命令列出所有当前位置限制。
- 如果指定
resources,则会显示每个资源的位置限制。这是默认行为。 - 如果指定
nodes,则会显示每个节点的位置限制。 - 如果指定具体资源或节点,则只会显示那些资源或节点的信息。
pcs constraint location [show resources|nodes [specific nodes|resources]] [--full]
以下命令列出所有当前排序限制。如果指定
--full 选项,则限制内部限制 ID。
pcs constraint order show [--full]
以下命令列出所有当前节点共置限制。如果指定
--full 选项,则限制内部限制 ID。
pcs constraint colocation show [--full]
以下命令列出参考具体资源的限制。
pcs constraint ref resource ...

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.