天天看点

CRS-0215 错误处理 (#127.0.0.1 localhost.localdomain localhost)

在安装 Clusterware 的时候,

收到下列错误提示:

       The given interface(s), "eth0" is not public. Public interfaces should be used to configure virtual IPs.

此时我们需要在第二节点上运行 vipca , 当安装到 75% 左右,又收到了如下的错误信息

       CRS-0215 : Could not start resource 'ora.node2.ons'.

       Check the log file "/u01/app/oracle/product/10.2.0/crs_1/log/node2/racg/ora.node2.ons.log"  for more details.

[[email protected] racg]$ pwd

/u01/app/oracle/product/10.2.0/crs_1/log/node2/racg

[[email protected] ~]$ cd /u01/app/oracle/product/10.2.0/crs_1/log/node2/

[[email protected] node2]$ ls

admin  alertnode2.log  client  crsd  cssd  evmd  racg

[[email protected] node2]$ cd racg

[[email protected] racg]$ ls

racgeut  racgevtf  racgmain

[[email protected] racg]$ ls -hlt

total 12K

drwxrwxrwt 2 oracle oinstall 4.0K Apr  1 14:15 racgeut

drwxrwxrwt 2 oracle oinstall 4.0K Apr  1 14:15 racgevtf

drwxrwxrwt 2 oracle oinstall 4.0K Apr  1 14:15 racgmain

查看一下,根本没有日志存在, Google了一下,需要查看 /etc/hosts中 localhost的设置

[[email protected] racg]$ more /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

127.0.0.1       node2.oradb.com          node2

# Public

192.168.0.11   node1.oradb.com        node1

192.168.0.12   node2.oradb.com        node2

#Private

10.101.0.11    node1-priv.oradb.com   node1-priv

10.101.0.12    node2-priv.oradb.com   node2-priv

#Virtual

192.168.0.21   node1-vip.oradb.com    node1-vip

192.168.0.22   node2-vip.oradb.com    node2-vip

原来的 127.0.0.1   localhost.localdomain localhost的这一行被注释掉了,记得当时是考虑到

已经增加了 127.0.0.1       node2.oradb.com          node2

所以就将原本缺省行 127.0.0.1注释了,因此取消注释行 (使用 root帐户 )。

在节点 node1上也是同样的,需要取消注释行 (使用 root帐户 )

再次运行 vipca没有出现 CRS-0215错误。