Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

12.3. 查询集群属性设置

在大多数情况下,当使用 pcs 命令显示各种群集组件的值时,您可以互换使用 pcs listpcs show在以下示例中,pcs list 的格式用于显示多个属性的所有设置的完整列表,而 pcs show 是用于显示特定属性值的格式。
要显示为集群设置的属性设置的值,请使用以下 pcs 命令。
pcs property list
要显示集群属性设置的所有值,包括未明确设置的属性设置的默认值,请使用以下命令。
pcs property list --all
要显示特定集群属性的当前值,请使用以下命令。
pcs property show property
例如,要显示 cluster-infrastructure 属性的当前值,请执行以下命令:
# pcs property show cluster-infrastructure
Cluster Properties:
 cluster-infrastructure: cman
为方便起见,您可以通过下列命令,显示这些属性的所有默认值,无论是否将其设置为非默认值。
pcs property [list|show] --defaults