corosync两个节点离线

corosync两个节点离线

我看见:这个问题

192.168.2.0/24 - 带网关的办公网络.2.1

根据 Corosync 文档,如果本地接口是 192.168.5.67,网络掩码是 255.255.255.0,则将 bindnetaddr 设置为 192.168.5.0。

corosync配置文件

totem {
        version: 2
        crypto_cipher: none
        crypto_hash: none
        interface {
                ringnumber: 0
                bindnetaddr: 192.168.2.0
                mcastaddr: 239.255.1.1
                mcastport: 5405
                ttl: 1
        }
}
logging {
        fileline: off
        to_stderr: no
        to_logfile: yes
        logfile: /var/log/cluster/corosync.log
        to_syslog: yes
        debug: off
        timestamp: on
        logger_subsys {
                subsys: QUORUM
                debug: off
        }
}
quorum {
        provider: corosync_votequorum
}
service {
name: pacemaker
ver: 1
}
nodelist {
        node {
                ring0_addr: KVM-1
                nodeid: 1
        }
        node {
                ring0_addr: KVM-2
                nodeid: 2
        }
        node {
                ring0_addr: KVM-3
                nodeid: 3
        }
}

CRM状态

Stack: corosync
Current DC: KVM-1 (version 1.1.13-10.el7_2.2-44eb2dd) - partition WITHOUT quorum
3 nodes and 0 resources configured

Online: [ KVM-1 ]
OFFLINE: [ KVM-2 KVM-3 ]

tcpdump 日志

[oneadmin@KVM-1 corosync]$ sudo tcpdump -i ovs-br0 -n port 5405    
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on ovs-br0, link-type EN10MB (Ethernet), capture size 65535 bytes
20:17:15.561824 IP 192.168.2.67.hpoms-dps-lstn > 239.255.1.1.netsupport: UDP, length 87
20:17:15.864866 IP 192.168.2.67.hpoms-dps-lstn > 239.255.1.1.netsupport: UDP, length 87
20:17:16.167969 IP 192.168.2.67.hpoms-dps-lstn > 239.255.1.1.netsupport: UDP, length 87
20:17:16.471014 IP 192.168.2.67.hpoms-dps-lstn > 239.255.1.1.netsupport: UDP, length 87
20:17:16.774051 IP 192.168.2.67.hpoms-dps-lstn > 239.255.1.1.netsupport: UDP, length 87
20:17:17.077136 IP 192.168.2.67.hpoms-dps-lstn > 239.255.1.1.netsupport: UDP, length 87
20:17:17.380149 IP 192.168.2.67.hpoms-dps-lstn > 239.255.1.1.netsupport: UDP, length 87
20:17:17.683214 IP 192.168.2.67.hpoms-dps-lstn > 239.255.1.1.netsupport: UDP, length 87

所有节点都必须处于在线状态?我哪里写错了?

答案1

您正在尝试多播通信,这需要底层网络的支持。对于三个节点,我认为最安全的做法是切换到unicast(也就是通常发送到每个主机自己的 IP 地址 192.168.2.x)。

相关内容