admin管理员组

文章数量:1627750

ORACLE之RAC搭建过程14-为集群安装 Oracle Grid Infrastructure

在节点rac1执行安装过程即可。

1)验证终端 Shell 环境
在启动 Oracle Universal Installer 之前,先以 Oracle Grid Infrastructure 软件所有者的身份(本文为 grid)登录到 rac1
[grid@rac1 grid]$ export DISPLAY=10.0.0.1:0.0
[grid@rac1 grid]$ export LANG=C
2)执行安装
[grid@rac1 grid]$ ./runInstaller















执行 /oracle/app/11.2.0/grid/root.sh 后立即新打开一个窗口,以root执行:nohup /etc/init.d/init.ohasd run &

CRS-4124 CRS-4000

CRS-4124: Oracle High Availability Services startup failed.
CRS-4000: Command Start failed, or completed with errors.
ohasd failed to start: 对设备不适当的 ioctl 操作
ohasd failed to start at /oracle/app/11.2.0/grid/crs/install/rootcrs.pl line 443.

但是如果执行出现了错误,需要首先重新配置下
/oracle/app/11.2.0/grid/crs/install/roothas.pl -deconfig -force -verbose

发现has服务没有启动,按理来说是开机自启动,应该会自动执行init.ohasd run命令
[grid@myrac1 ohasd]$ cat /etc/inittab |grep ohasd
h1:35:respawn:/etc/init.d/init.ohasd run >/dev/null 2>&1

官方的一段解释:
With Oracle Clusterware 11g Release 2 (11.2), cluster commands have been introduced that
allow stopping the cluster stack on a remote note (as opposed to stopping it locally only with
the commands listed above). In order to stop the cluster stack with the exception of the
Oracle High Availability Services (OHAS, daemon OHASD), use :
crsctl stop cluster -all #stops the cluster layer on all servers in the cluster
crsctl stop cluster -n #stops the cluster layer the named server
在11g, ohasd包含了crsd、ocssd、evmd。
11g cluster分两层, lower stack和higher stack.
ohasd负责启动lower stack的集群资源, crsd负责启动上层的集群资源.
既然ohasd服务没有启动,于是手工启动
[root@myrac1 ~]# nohup /etc/init.d/init.ohasd run &
mkfifo: cannot create fifo `/var/tmp/.oracle/npohasd’: File exists

[grid@rac1 ~]$ crsctl status res -t

本文标签: 集群过程ORACLEracInfrastructure