第 7 章 Displaying cluster status


There are a variety of commands you can use to display the status of a cluster and its components.

Displaying the full cluster configuration

Use the following command to display the full current cluster configuration:

# pcs config

Displaying status of cluster and cluster resources

You can display the status of the cluster and the cluster resources with the following command:

# pcs status

Displaying status of a cluster component

You can display the status of a particular cluster component with the commands parameter of the pcs status command, specifying resources, cluster, nodes, or pcsd.

pcs status commands

For example, the following command displays the status of the cluster resources:

# pcs status resources

The following command displays the status of the cluster, but not the cluster resources:

# pcs cluster status

Delaying status display until actions are completed

If you run the pcs status command before Pacemaker has completed any actions required by changes to the CIB, the cluster state at that time might not match the desired status. You can ensure that Pacemaker does not need to take any further actions by running the pcs status wait command.

The pcs status wait command waits until the cluster has completed all current actions before returning a value. If any actions unrelated to your recent changes are in progress, the command waits until those are completed. The pcs status wait command returns a value of 0 as soon as Pacemaker completes pending actions.

You can specify a period of time to wait. If the current actions have not completed after that time period, the command prints an error and returns a value of 1.

The following command waits until Pacemaker has applied configuration changes:

# pcs status wait
Waiting for the cluster to apply configuration changes...

The following command waits up to one minute until Pacemaker has applied configuration changes:

# pcs status wait 1min
Waiting for the cluster to apply configuration changes (timeout: 60 seconds)...
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2026 Red Hat
返回顶部