27.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]]
以下示例流程修改 wait_for_all 仲裁选项,并显示选项的更新状态。请注意,系统不允许在集群运行时修改这个选项。
流程
尝试在运行的系统上修改
wait_for_all仲裁选项。[root@node1:~]# pcs quorum update wait_for_all=1Checking corosync is not running on nodes... Error: node1: corosync is running Error: node2: corosync is running停止集群进程,来修改
wait_for_all仲裁选项。[root@node1:~]# pcs cluster stop --allnode2: Stopping Cluster (pacemaker)... node1: Stopping Cluster (pacemaker)... node1: Stopping Cluster (corosync)... node2: Stopping Cluster (corosync)...在已停止的系统上修改
wait_for_all仲裁选项。[root@node1:~]# pcs quorum update wait_for_all=1Checking 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显示仲裁配置
[root@node1:~]# pcs quorum configOptions: wait_for_all: 1