o2cb_ctl 问题
# /etc/init.d/o2cb online ocfs2
Starting cluster ocfs2: Failed
Cluster ocfs2 created
o2cb_ctl: Configuration error discovered while populating cluster ocfs2. None of its nodes were considered local. A node is considered local when its node name in the configuration maches this machine's host name.
Stopping cluster ocfs2: OK
出现错误,一般这个错误是由于cluster.conf和hosts主机信息不同一造成的,但是我看花了眼我都看不出那里有不同。。郁闷
[root@kidddb1 ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 kidddb1.com kidddb1 localhost.localdomain localhost
192.168.50.105 kidddb_rac01
192.168.50.106 kidddb_rac02
10.10.10.1 kidddb_priv01
10.10.10.2 kidddb_priv02
[root@kidddb1 ~]# more /etc/ocfs2/cluster.conf
node:
ip_port = 7777
ip_address = 192.168.50.105
number = 0
name = kidddb_rac01
cluster = ocfs2
node:
ip_port = 7777
ip_address = 192.168.50.106
number = 1
name = kidddb_rac02
cluster = ocfs2
cluster:
node_count = 2
name = ocfs2
|