LINUX OCFS2: node1/还是node2写数据。都不会同步到另一台去
环境:VMWARE做的两台虚拟机 网卡类型选择的是HOST ONLY
用ocfs2console工具,将node1 的 cluser.conf 信息可以同步到node2的
# cat /etc/ocfs2/cluster.conf
node:
ip_port = 7777
ip_address = 192.26.26.10
number = 0
name = node1
cluster = ocfs2
node:
ip_port = 7777
ip_address = 192.26.26.20
number = 1
name = node2
cluster = ocfs2
cluster:
node_count = 2
name = ocfs2
node1 o2cb status 信息:
# pwd
/etc/init.d
# ./o2cb status
Driver for "configfs": Loaded
Filesystem "configfs": Mounted
Driver for "ocfs2_dlmfs": Loaded
Filesystem "ocfs2_dlmfs": Mounted
Checking O2CB cluster ocfs2: Online
Heartbeat dead threshold = 31
Network idle timeout: 30000
Network keepalive delay: 2000
Network reconnect delay: 2000
Checking O2CB heartbeat: Active
node2 o2cb status信息:
# pwd
/etc/init.d
# ./o2cb status
Driver for "configfs": Loaded
Filesystem "configfs": Mounted
Driver for "ocfs2_dlmfs": Loaded
Filesystem "ocfs2_dlmfs": Mounted
Checking O2CB cluster ocfs2: Online
Heartbeat dead threshold = 31
Network idle timeout: 30000
Network keepalive delay: 2000
Network reconnect delay: 2000
Checking O2CB heartbeat: Active
# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
192.16.16.10 node1
192.26.26.10 node1priv
192.16.16.20 node2
192.26.26.20 node2priv
#cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
192.16.16.10 node1
192.26.26.10 node1priv
192.16.16.20 node2
192.26.26.20 node2priv
#
问题已解决
页:
[1]