系统环境:
操作系统:RedHat EL5
Cluster: Oracle 11gR2 Grid
Oracle: Oracle 11gR2
在启动一个node的CRS时出现以下错误,错误现象:
|
1
2
3
4
5
6
7
8
9
|
[root@node1 ~]# crsctl start crs
Failure at scls_scr_getval with code 1
Internal Error Information:
Category: -2
Operation: opendir
Location: scrsearch1
Other: cant open scr home dir scls_scr_getval
System Dependent Information: 2
CRS-4000: Command Start failed, or completed with errors.
|
查看错误原因:
1、主机名
[root@node1 node1]# hostname
node1
2、查看hosts文件
[root@node1 node1]# cat /etc/hosts# Do not remove the following line, or various programs# that require network functionality will fail.
-
123456789101112131415
127.0.0.1localhost::1localhost6.localdomain6 localhost6192.168.8.21wqy110.10.10.101wqy1-priv192.168.8.23wqy1-vip192.168.8.22wqy210.10.10.102wqy2-priv192.168.8.24wqy2-vip192.168.8.25rac-scan192.168.8.26wqy310.10.10.103wqy3-priv192.168.8.27wqy3-vip
从以上可以了解,主机名应该为wqy1,应该是主机名错误,导致CRS启动失败!
3、重新修改主机名
[root@node1 node1]# vi /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=wqy1
[root@node1 node1]# hostname wqy1
4、重新启动CRS service
[root@wqy1 ~]# crsctl start crs
CRS-4123: Oracle High Availability Services has been started.
[root@wqy1 ~]# crsctl check crs
CRS-4638: Oracle High Availability Services is online
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
---至此,问题得以解决!