点击“蓝字”关注我们
安装补丁导致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告警日志:
位置:
[+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.
...
至此结束,有什么问题欢迎留言,谢谢。
推荐阅读
2021-04-08
2021-04-13
点击“阅读原文”
文章转载自晟数学院,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。