Synchronization corosync起搏器节点显示为在线
我使用corosync、pacemaker和crmsh为HA设置了两个群集节点。现在所有的服务都启动了,我发现一个问题是两台机器没有正确同步,因为应用程序和VIP都并行运行。如何同步这些应用程序Synchronization corosync起搏器节点显示为在线,synchronization,high-availability,pacemaker,Synchronization,High Availability,Pacemaker,我使用corosync、pacemaker和crmsh为HA设置了两个群集节点。现在所有的服务都启动了,我发现一个问题是两台机器没有正确同步,因为应用程序和VIP都并行运行。如何同步这些应用程序 OS version :Linux PCSCF 2.6.32-504.12.2.el6.x86_64 #1 SMP Wed Mar 11 22:03:14 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux corosync.cfg compatibility: whit
OS version :Linux PCSCF 2.6.32-504.12.2.el6.x86_64 #1 SMP Wed Mar 11 22:03:14 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
corosync.cfg
compatibility: whitetank
aisexec {
# Run as root - this is necessary to be able to manage resources with Pacemaker
user: root
group: root
}
totem {
version: 2
secauth: off
interface {
member {
memberaddr: 10.193.30.16
}
member {
memberaddr: 10.193.30.22
}
ringnumber: 0
bindnetaddr: 10.193.30.31
mcastport: 5405
}
transport: udpu
}
logging {
fileline: on
to_stderr: yes
to_logfile: yes
to_syslog: yes
logfile: /var/log/cluster/corosync.log
debug: on
timestamp: on
logger_subsys {
subsys: AMF
debug: off
}
}
service {
name: corosync_quorum
ver: 0
name: pacemaker
use_mgmtd: yes
use_logd: yes
}...
quorum {
provider: corosync_votequorum
expected_votes: 3
votes: 2
}
amf {
mode: disabled
}
crm
node PCSCF
node PCSCF.techma.com \
attributes standby=off
primitive VIP IPaddr2 \
params ip=10.193.30.240 cidr_netmask=24 nic=eth0 \
op monitor interval=10s \
meta is-managed=true
primitive kamailio_ra ocf:myservice:kamailio_test \
params listen_address=10.193.30.240 \
op start interval=5s \
op monitor interval=5s \
meta migration-threshold=1 failure-timeout=5s target-role=Started
property cib-bootstrap-options: \
stonith-enabled=false \
no-quorum-policy=ignore \
dc-version=1.1.11-97629de \
cluster-infrastructure="classic openais (with plugin)" \
last-lrm-refresh=1450073203 \
start-failure-is-fatal=true \
expected-quorum-votes=2
rsc_defaults rsc-options: \
resource-stickiness=100
您的配置看起来是错误的 corosync.conf(5)-Linux手册页 BindNetAddress 这指定corosync executive应该绑定到的网络地址。例如,如果本地接口是192.168.5.92,则 网络掩码255.255.255.0,将BindNetAddress设置为192.168.5.0。如果当地 接口为192.168.5.92,设置了网络掩码255.255.255.192 bindnetaddr到192.168.5.64,依此类推 所以在你的情况下可能 BindNetAddress:10.193.30.0
corosync cfgtool-s
命令检查标准输出。corosync不应绑定到127.0.0.1环回地址。如果绑定到环回地址,请检查/etc/hosts。节点的主机名不应映射到127.0.0.1
它应该始终是具有仲裁的分区
[root@dmrfv1-mrfc-1~]#pcs群集状态
群集状态:
堆栈:corosync
当前DC:DMRFV1-MRFC-2(版本1.1.16-12.el7_4.8-94ff4df)-具有仲裁的分区
最后更新:2019年4月3日星期三06:47:35
最后更改:2019年4月3日星期三06:41:57由root通过DMRFV1-MRFC-1上的cibadmin进行
配置了2个节点
配置的11个资源