Corosync
corosync的兩個節點離線
我看到了:這個問題。
192.168.2.0/24 - 帶 GW 的辦公網*。*.2.1
根據 Corosync 文件,如果本地介面是 192.168.5.67,網路遮罩為 255.255.255.0,請將 bindnetaddr 設置為 192.168.5.0。
corosync.conf
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 } }
客戶關係管理狀態
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
所有節點都必須處於線上狀態?我哪裡有錯誤?
您正在嘗試多播通信,這需要底層網路的支持。對於三個節點,我認為最安全的選擇是切換到
unicast
(也就是通常發送到每個主機自己的 IP 地址 192.168.2.x)。