26.2. 修改仲裁选项


您可以使用 pcs quorum update 命令修改集群的常规仲裁选项。执行此命令需要停止集群。有关仲裁选项的详情,请查看您系统上的 votequorum(5)手册页。

pcs quorum update 命令的格式如下。

pcs quorum update [auto_tie_breaker=[0|1]] [last_man_standing=[0|1]] [last_man_standing_window=[time-in-ms] [wait_for_all=[0|1]]
Copy to Clipboard Toggle word wrap

流程

以下示例流程修改 wait_for_all 仲裁选项,并显示选项的更新状态。请注意,系统不允许在集群运行时修改这个选项。

  1. 尝试在运行的系统上修改 wait_for_all 仲裁选项。

    [root@node1:~]# pcs quorum update wait_for_all=1
    Checking corosync is not running on nodes...
    Error: node1: corosync is running
    Error: node2: corosync is running
    Copy to Clipboard Toggle word wrap
  2. 停止集群进程,来修改 wait_for_all 仲裁选项。

    [root@node1:~]# pcs cluster stop --all
    node2: Stopping Cluster (pacemaker)...
    node1: Stopping Cluster (pacemaker)...
    node1: Stopping Cluster (corosync)...
    node2: Stopping Cluster (corosync)...
    Copy to Clipboard Toggle word wrap
  3. 在已停止的系统上修改 wait_for_all 仲裁选项。

    [root@node1:~]# pcs quorum update wait_for_all=1
    Checking corosync is not running on nodes...
    node2: corosync is not running
    node1: corosync is not running
    Sending updated corosync.conf to nodes...
    node1: Succeeded
    node2: Succeeded
    Copy to Clipboard Toggle word wrap
  4. 显示仲裁配置

    [root@node1:~]# pcs quorum config
    Options:
      wait_for_all: 1
    Copy to Clipboard Toggle word wrap
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

Theme

© 2025 Red Hat