执行 root.sh 命令时出现【CRS-2101 :The OLR was formatted using version 3.】错误的解决方法

一、问题描述

两节点 Oracle 集群,节点2 宕机之后无法启动,启动集群时出现如下提示:

[root@his02 bin]# ./crsctl start cluster
CRS-4639: Could not contact Oracle High Availability Services
CRS-4000: Command Start failed, or completed with errors.

[root@his02 bin]# ./crsctl start crs
CRS-4124: Oracle High Availability Services startup failed.
CRS-4000: Command Start failed, or completed with errors.

执行如下命令进行修复:

[root@his02 install]# /u01/app/11.2.0/grid/perl/bin/perl ./roothas.pl -deconfig -force
Using configuration parameter file: ./crsconfig_params
CRS-4535: Cannot communicate with Cluster Ready Services
CRS-4000: Command Stop failed, or completed with errors.
CRS-4535: Cannot communicate with Cluster Ready Services
CRS-4000: Command Delete failed, or completed with errors.
CRS-4544: Unable to connect to OHAS
CRS-4000: Command Stop failed, or completed with errors.
Successfully deconfigured Oracle Restart stack

执行 root.sh 命令时查看日志,发现长时间无响应,并且出现如下问题:

[root@his02 ~]# cd /u01/app/11.2.0/grid/
[root@his02 grid]# ./root.sh
Check /u01/app/11.2.0/grid/install/root_his02_2022-08-21_14-44-24.log for the output of root script

查看日志信息:

[root@his02 ~]# tail -f /u01/app/11.2.0/grid/install/root_his02_2022-08-21_14-44-24.log
   Copying oraenv to /usr/local/bin ...
   Copying coraenv to /usr/local/bin ...

Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
User ignored Prerequisites during installation
Installing Trace File Analyzer
OLR initialization - successful
Adding Clusterware entries to inittab
ohasd failed to start
Failed to start the Clusterware. Last 20 lines of the alert log follow: 
2022-08-21 08:37:51.925: 
[cssd(99720)]CRS-1656:The CSS daemon is terminating due to a fatal error; Details at (:CSSSC00012:) in /u01/app/11.2.0/grid/log/his02/cssd/ocssd.log
2022-08-21 09:06:19.450: 
[ohasd(28054)]CRS-0715:Oracle High Availability Service has timed out waiting for init.ohasd to be started.
2022-08-21 09:32:00.550: 
[ohasd(25898)]CRS-0715:Oracle High Availability Service has timed out waiting for init.ohasd to be started.
[client(40767)]CRS-10001:21-Aug-22 09:57 ACFS-9459: ADVM/ACFS is not supported on this OS version: 'centos-release-7-3.1611.el7.centos.x86_64
'
[client(40769)]CRS-10001:21-Aug-22 09:57 ACFS-9201: Not Supported
2022-08-21 10:00:46.491: 
[client(44962)]CRS-2101:The OLR was formatted using version 3.
2022-08-21 10:11:10.004: 
[ohasd(46036)]CRS-0715:Oracle High Availability Service has timed out waiting for init.ohasd to be started.
2022-08-21 12:39:42.288: 
[ohasd(94803)]CRS-0715:Oracle High Availability Service has timed out waiting for init.ohasd to be started.
[client(137702)]CRS-10001:21-Aug-22 14:43 ACFS-9459: ADVM/ACFS is not supported on this OS version: 'centos-release-7-3.1611.el7.centos.x86_64
'
########################   问题   #########################################
[client(137704)]CRS-10001:21-Aug-22 14:43 ACFS-9201: Not Supported
2022-08-21 14:46:18.988: 
[client(141616)]CRS-2101:The OLR was formatted using version 3.
###########################################################################

二、解决方案

1、新开一个窗口,执行如下命令:
[root@his02 install]# cd /var/tmp/.oracle/

[root@his02 .oracle]# ls
npohasd

[root@his02 .oracle]# dd if=npohasd of=/dev/null bs=1024 count=1
2、查看 root.sh
[root@his02 ~]# tail -f /u01/app/11.2.0/grid/install/root_his02_2022-08-21_14-44-24.log
   Copying oraenv to /usr/local/bin ...
   Copying coraenv to /usr/local/bin ...

Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
User ignored Prerequisites during installation
Installing Trace File Analyzer
OLR initialization - successful
Adding Clusterware entries to inittab
ohasd failed to start
Failed to start the Clusterware. Last 20 lines of the alert log follow: 
2022-08-21 08:37:51.925: 
[cssd(99720)]CRS-1656:The CSS daemon is terminating due to a fatal error; Details at (:CSSSC00012:) in /u01/app/11.2.0/grid/log/his02/cssd/ocssd.log
2022-08-21 09:06:19.450: 
[ohasd(28054)]CRS-0715:Oracle High Availability Service has timed out waiting for init.ohasd to be started.
2022-08-21 09:32:00.550: 
[ohasd(25898)]CRS-0715:Oracle High Availability Service has timed out waiting for init.ohasd to be started.
[client(40767)]CRS-10001:21-Aug-22 09:57 ACFS-9459: ADVM/ACFS is not supported on this OS version: 'centos-release-7-3.1611.el7.centos.x86_64
'
[client(40769)]CRS-10001:21-Aug-22 09:57 ACFS-9201: Not Supported
2022-08-21 10:00:46.491: 
[client(44962)]CRS-2101:The OLR was formatted using version 3.
2022-08-21 10:11:10.004: 
[ohasd(46036)]CRS-0715:Oracle High Availability Service has timed out waiting for init.ohasd to be started.
2022-08-21 12:39:42.288: 
[ohasd(94803)]CRS-0715:Oracle High Availability Service has timed out waiting for init.ohasd to be started.
[client(137702)]CRS-10001:21-Aug-22 14:43 ACFS-9459: ADVM/ACFS is not supported on this OS version: 'centos-release-7-3.1611.el7.centos.x86_64
'
###################     错误    ########################################
[client(137704)]CRS-10001:21-Aug-22 14:43 ACFS-9201: Not Supported
2022-08-21 14:46:18.988: 
[client(141616)]CRS-2101:The OLR was formatted using version 3.
########################################################################

CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node his01, number 1, and is terminating
An active cluster was found during exclusive startup, restarting to join the cluster
PRKO-2190 : 节点 his02 存在 VIP, VIP 名称 his02-vip
Configure Oracle Grid Infrastructure for a Cluster ... succeeded

root.sh 命令执行成功!

3、重启服务器,然后执行如下命令:
[root@his02 ~]# cd /var/tmp/.oracle/

[root@his02 .oracle]# ll npohasd
prw-r--r-- 1 root root 0 821 14:46 npohasd

[root@his02 .oracle]# rm -rf  npohasd

[root@his02 .oracle]# touch  npohasd

[root@his02 .oracle]# chmod 755  npohasd

[root@his02 .oracle]# ll npohasd
-rwxr-xr-x 1 root root 0 821 15:02 npohasd
4、查看 IP 地址信息
[grid@his02 ~]$ ifconfig
bond1: flags=5187<UP,BROADCAST,RUNNING,MASTER,MULTICAST>  mtu 1500
        inet 192.168.0.2  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 fe80::72fd:45ff:fe6b:cfb7  prefixlen 64  scopeid 0x20<link>
        ether 70:fd:45:6b:cf:b7  txqueuelen 1000  (Ethernet)
        RX packets 35563  bytes 5357194 (5.1 MiB)
        RX errors 0  dropped 81  overruns 0  frame 66
        TX packets 9932  bytes 5122827 (4.8 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

bond1:1: flags=5187<UP,BROADCAST,RUNNING,MASTER,MULTICAST>  mtu 1500
        inet 192.168.0.102  netmask 255.255.255.0  broadcast 192.168.0.255
        ether 70:fd:45:6b:cf:b7  txqueuelen 1000  (Ethernet)

bond2: flags=5187<UP,BROADCAST,RUNNING,MASTER,MULTICAST>  mtu 1500
        inet 10.5.5.2  netmask 255.255.255.0  broadcast 10.5.5.255
        inet6 fe80::72fd:45ff:fe6b:cfb8  prefixlen 64  scopeid 0x20<link>
        ether 70:fd:45:6b:cf:b8  txqueuelen 1000  (Ethernet)
        RX packets 91363  bytes 82003203 (78.2 MiB)
        RX errors 0  dropped 88  overruns 0  frame 0
        TX packets 47561  bytes 28574173 (27.2 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

bond2:1: flags=5187<UP,BROADCAST,RUNNING,MASTER,MULTICAST>  mtu 1500
        inet 169.254.9.124  netmask 255.255.0.0  broadcast 169.254.255.255
        ether 70:fd:45:6b:cf:b8  txqueuelen 1000  (Ethernet)

5、查看集群信息
[grid@his02 ~]$ crs_stat -t
Name           Type           Target    State     Host        
------------------------------------------------------------
ora.BAK.dg     ora....up.type ONLINE    ONLINE    his01       
ora.DATA.dg    ora....up.type ONLINE    ONLINE    his01       
ora....ER.lsnr ora....er.type ONLINE    ONLINE    his01       
ora....N1.lsnr ora....er.type ONLINE    ONLINE    his01       
ora.OCR.dg     ora....up.type ONLINE    ONLINE    his01       
ora.asm        ora.asm.type   ONLINE    ONLINE    his01       
ora.cvu        ora.cvu.type   ONLINE    ONLINE    his01       
ora.gsd        ora.gsd.type   OFFLINE   OFFLINE               
ora....SM1.asm application    ONLINE    ONLINE    his01       
ora....01.lsnr application    ONLINE    ONLINE    his01       
ora.his01.gsd  application    OFFLINE   OFFLINE               
ora.his01.ons  application    ONLINE    ONLINE    his01       
ora.his01.vip  ora....t1.type ONLINE    ONLINE    his01       
ora....SM2.asm application    ONLINE    ONLINE    his02       
ora....02.lsnr application    ONLINE    ONLINE    his02       
ora.his02.gsd  application    OFFLINE   OFFLINE               
ora.his02.ons  application    ONLINE    ONLINE    his02       
ora.his02.vip  ora....t1.type ONLINE    ONLINE    his02       
ora.hisdb.db   ora....se.type ONLINE    ONLINE    his01       
ora....network ora....rk.type ONLINE    ONLINE    his01       
ora.oc4j       ora.oc4j.type  ONLINE    ONLINE    his01       
ora.ons        ora.ons.type   ONLINE    ONLINE    his01       
ora.scan1.vip  ora....ip.type ONLINE    ONLINE    his01    
问题解决!
Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐