Show Table of Contents
9.5. 使用 pcs 配置规则
请使用以下命令配置规则。如果省略
score,则会默认为 INFINITY。如果省略 id,则会使用 constraint_id 生成一个。rule_type 应为 expression 或 date_expression。
pcs constraint rule add constraint_id [rule_type] [score=score [id=rule_id] expression|date_expression|date_spec options
请使用以下命令删除规则。如果要删除的规则是其限制中的最后一个规则,则会删除该限制。
pcs constraint rule remove rule_id

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.