Copy to ClipboardCopied!Toggle word wrapToggle overflow
显示排序限制
以下命令列出所有当前排序限制。
pcs constraint order [show]
pcs constraint order [show]
Copy to ClipboardCopied!Toggle word wrapToggle overflow
显示 colocation 约束
以下命令列出所有当前的 colocation 约束。
pcs constraint colocation [show]
pcs constraint colocation [show]
Copy to ClipboardCopied!Toggle word wrapToggle overflow
显示特定于资源的约束
以下命令列出引用特定资源的约束。
pcs constraint ref resource ...
pcs constraint ref resource ...
Copy to ClipboardCopied!Toggle word wrapToggle overflow
显示资源依赖项(Red Hat Enterprise Linux 8.2 及更新的版本)
以下命令显示树结构中集群资源间的关系。
pcs resource relations resource [--full]
pcs resource relations resource [--full]
Copy to ClipboardCopied!Toggle word wrapToggle overflow
如果使用 --full 选项,命令会显示附加信息,包括约束 ID 和资源类型。
在以下示例中,有 3 个配置的资源:C、D 和 E。
pcs constraint order start C then start D
Adding C D (kind: Mandatory) (Options: first-action=start then-action=start)
pcs constraint order start D then start E
Adding D E (kind: Mandatory) (Options: first-action=start then-action=start)
pcs resource relations C
C
`- order
| start C then start D
`- D
`- order
| start D then start E
`- E
pcs resource relations D
D
|- order
| | start C then start D
| `- C
`- order
| start D then start E
`- E
pcs resource relations E
E
`- order
| start D then start E
`- D
`- order
| start C then start D
`- C
# pcs constraint order start C then start D
Adding C D (kind: Mandatory) (Options: first-action=start then-action=start)
# pcs constraint order start D then start E
Adding D E (kind: Mandatory) (Options: first-action=start then-action=start)
# pcs resource relations C
C
`- order
| start C then start D
`- D
`- order
| start D then start E
`- E
# pcs resource relations D
D
|- order
| | start C then start D
| `- C
`- order
| start D then start E
`- E
# pcs resource relations E
E
`- order
| start D then start E
`- D
`- order
| start C then start D
`- C
Copy to ClipboardCopied!Toggle word wrapToggle overflow
在以下示例中,有 2 个配置的资源:A 和 B。资源 A 和 B 是资源组 G 的一部分。
pcs resource relations A
A
`- outer resource
`- G
`- inner resource(s)
| members: A B
`- B
pcs resource relations B
B
`- outer resource
`- G
`- inner resource(s)
| members: A B
`- A
pcs resource relations G
G
`- inner resource(s)
| members: A B
|- A
`- B
# pcs resource relations A
A
`- outer resource
`- G
`- inner resource(s)
| members: A B
`- B
# pcs resource relations B
B
`- outer resource
`- G
`- inner resource(s)
| members: A B
`- A
# pcs resource relations G
G
`- inner resource(s)
| members: A B
|- A
`- B
Copy to ClipboardCopied!Toggle word wrapToggle overflow