Oracle安装补丁导致crs启动失败CRS-4124、CRS-4000

安装补丁导致crs启动失败

1、安装补丁:

[root@szjjdb1 /u01/software]# /u01/app/11.2.0.4/grid/OPatch/opatch auto /u01/software/32495145 -oh /u01
/app/11.2.0.4/gridExecuting /u01/app/11.2.0.4/grid/perl/bin/perl /u01/app/11.2.0.4/grid/OPatch/crs/patch11203.pl -patchdi
r /u01/software -patchn 32495145 -oh /u01/app/11.2.0.4/grid -paramfile /u01/app/11.2.0.4/grid/crs/install/crsconfig_params
This is the main log file: /u01/app/11.2.0.4/grid/cfgtoollogs/opatchauto2021-05-08_09-42-32.log

This file will show your detected configuration and all the steps that opatchauto attempted to do on yo
ur system:/u01/app/11.2.0.4/grid/cfgtoollogs/opatchauto2021-05-08_09-42-32.report.log

2021-05-08 09:42:32: Starting Clusterware Patch Setup
Using configuration parameter file: /u01/app/11.2.0.4/grid/crs/install/crsconfig_params

Stopping CRS...
Stopped CRS successfully

patch /u01/software/32495145/29938455  apply successful for home  /u01/app/11.2.0.4/grid 
patch /u01/software/32495145/32328626  apply successful for home  /u01/app/11.2.0.4/grid 
patch /u01/software/32495145/29509309  apply successful for home  /u01/app/11.2.0.4/grid 

Starting CRS...
Installing Trace File Analyzer
CRS-4124: Oracle High Availability Services startup failed.
CRS-4000: Command Start failed, or completed with errors.
#补丁安装成功但是crs没有成功启动


Oracle Grid Infrastructure stack start initiated but failed to complete at /u01/software/32495145/29938
455/files/crs/install/crsconfig_lib.pm line 11821.
[root@szjjdb1 /u01/software]#

2、查看crs告警日志:
位置:<grid_home>/log/hostname/alerthostname.log

[+ASM1][grid@szjjdb1 /u01/app/11.2.0.4/grid/log/szjjdb1]$ ll
total 128
drwxr-x--- 2 grid oinstall  4096 May  7 14:03 acfslog
drwxr-x--- 2 grid oinstall  4096 May  7 14:03 acfsrepl
drwxr-x--- 2 root oinstall  4096 May  7 14:03 acfsreplroot
drwxr-xr-x 2 root oinstall  4096 May  7 14:03 acfssec
drwxr-x--- 2 grid oinstall  4096 May  7 14:03 admin
drwxrwxr-t 4 root oinstall  4096 May  7 14:03 agent
-rw-rw-r-- 1 grid oinstall 34155 May  8 10:31 alertszjjdb1.log
drwxrwxrwt 2 grid oinstall  4096 May  7 17:23 client
drwxr-x--- 2 root oinstall  4096 May  7 14:16 crflogd
drwxr-x--- 2 root oinstall  4096 May  7 14:16 crfmond
drwxr-x--- 2 root oinstall  4096 May  7 14:14 crsd
drwxr-x--- 2 grid oinstall  4096 May  7 14:13 cssd
drwxr-x--- 2 root oinstall  4096 May  7 14:13 ctssd
drwxr-x--- 4 grid oinstall  4096 May  7 14:03 cvu
drwxr-x--- 2 grid oinstall  4096 May  7 14:03 diskmon
drwxr-x--- 2 grid oinstall  4096 May  7 14:17 evmd
drwxr-x--- 2 grid oinstall  4096 May  8 06:26 gipcd
drwxr-x--- 2 root oinstall  4096 May  7 14:03 gnsd
drwxr-x--- 2 grid oinstall  4096 May  8 10:30 gpnpd
drwxr-x--- 2 grid oinstall  4096 May  7 14:13 mdnsd
drwxr-x--- 2 root oinstall  4096 May  7 14:13 ohasd
drwxrwxr-t 5 grid oinstall  4096 May  7 14:03 racg
drwxr-x--- 2 grid oinstall  4096 May  7 14:03 srvm
[+ASM1][grid@szjjdb1 /u01/app/11.2.0.4/grid/log/szjjdb1]$ 

# tail -f alertszjjdb1.log
...
[client(78335)]CRS-10001:08-May-21 09:49 ACFS-9201: Not Supported
[client(78459)]CRS-10001:CRS-10131: Failure to create named pipe /var/tmp/.oracle/npohasd. Details [mkf
ifo: cannot create fifo ‘/var/tmp/.oracle/npohasd’: File exists].[client(78610)]CRS-10001:CRS-10131: Failure to create named pipe /var/tmp/.oracle/npohasd. Details [mkf
ifo: cannot create fifo ‘/var/tmp/.oracle/npohasd’: File exists].[client(24182)]CRS-10001:CRS-10131: Failure to create named pipe /var/tmp/.oracle/npohasd. Details [mkf
ifo: cannot create fifo ‘/var/tmp/.oracle/npohasd’: File exists].[client(24488)]CRS-10001:CRS-10131: Failure to create named pipe /var/tmp/.oracle/npohasd. Details [mkf
ifo: cannot create fifo ‘/var/tmp/.oracle/npohasd’: File exists].[client(122675)]CRS-10001:CRS-10131: Failure to create named pipe /var/tmp/.oracle/npohasd. Details [mk
fifo: cannot create fifo ‘/var/tmp/.oracle/npohasd’: File exists].[client(122716)]CRS-10001:CRS-10131: Failure to create named pipe /var/tmp/.oracle/npohasd. Details [mk
fifo: cannot create fifo ‘/var/tmp/.oracle/npohasd’: File exists].2021-05-08 10:30:19.098: 
...

3、
报错:
cannot create fifo ‘/var/tmp/.oracle/npohasd’: File exists].[client(78610)]CRS-10001:CRS-10131: Failure to create named pipe /var/tmp/.oracle/npohasd. Details
原因: npohasd文件的存在导致重新创建失败。

[root@szjjdb1 /var/tmp/.oracle]# ll
total 8
srwxr-xr-x 1 grid oinstall 0 May  7 16:45 mdnsd
-rw-r--r-- 1 grid oinstall 6 May  7 16:45 mdnsd.pid
-rw-r--r-- 1 root root     7 May  8 10:24 npohasd
...

解决:安装补丁后要重新创建npohasd文件,删除老npohasd文件启动crs

[root@szjjdb1 /var/tmp/.oracle]# rm -rf npohasd
[root@szjjdb1 /var/tmp/.oracle]# ll
total 7
srwxr-xr-x 1 grid oinstall 0 May  7 16:45 mdnsd
-rw-r--r-- 1 grid oinstall 6 May  7 16:45 mdnsd.pid
...

4、重新启动crs

[root@szjjdb1 /var/tmp/.oracle]# /u01/app/11.2.0.4/grid/bin/crsctl start crs
CRS-4123: Oracle High Availability Services has been started. 	 #crs启动成功
[root@szjjdb1 /var/tmp/.oracle]# 

#输出日志:
...
[ohasd(122256)]CRS-2112:The OLR service started on node szjjdb1.
2021-05-08 10:30:19.103: 
[ohasd(122256)]CRS-1301:Oracle High Availability Service started on node szjjdb1.
...

至此结束,有什么问题欢迎留言,谢谢。

  • 3
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值