异常描述

  1. 环境描述

• 系统:Redhat 7.6
• RAC:12.2.0.1

  1. 问题描述 当我们在静默安装GRID后,运行root.sh脚本时,会报出如下异常

  2. 异常输出
2020/04/18 05:01:17 CLSRSC-594: Executing installation step 14 of 19: 'InstallACFS'.
 CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'node1'
 CRS-2673: Attempting to stop 'ora.mdnsd' on 'node1'
 CRS-2673: Attempting to stop 'ora.evmd' on 'node1'
 CRS-2673: Attempting to stop 'ora.gpnpd' on 'node1'
 CRS-2677: Stop of 'ora.gpnpd' on 'node1' succeeded
 CRS-2677: Stop of 'ora.mdnsd' on 'node1' succeeded
 CRS-2677: Stop of 'ora.evmd' on 'node1' succeeded
 CRS-2673: Attempting to stop 'ora.driver.afd' on 'node1'
 CRS-2673: Attempting to stop 'ora.gipcd' on 'node1'
 CRS-2677: Stop of 'ora.driver.afd' on 'node1' succeeded
 CRS-2677: Stop of 'ora.gipcd' on 'node1' succeeded
 CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'node1' has completed
 CRS-4133: Oracle High Availability Services has been stopped.
 CRS-4123: Oracle High Availability Services has been started.
 2020/04/18 05:03:05 CLSRSC-400: A system reboot is required to continue installing.
 The command '/u01/app/12.2.0/grid/perl/bin/perl -I/u01/app/12.2.0/grid/perl/lib -I/u01/app/12.2.0/grid/crs/install /u01/app/12.2.0/grid/crs/install/rootcrs.pl ' execution failed

参考文档

• 参考一:http://www.xifenfei.com/2017/06/rac-12-2-root-sh-clsrsc-400.html
Redhat使用7.6以后,验证的结果与描述有些不相符,重启后故障会重现,不过却告知了我异常的原因,给了我解决方向
Redhat 7.6 & RAC 12.2:CLSRSC-400

• 参考二: https://blog.csdn.net/johnyiyang/article/details/103006627
也许是PSU问题,也许是OPatch的原因,总之故障如下,不过却提供给了我打PSU的方向
Redhat 7.6 & RAC 12.2:CLSRSC-400

• Installation Grid Infrastructure 12c Release 2 – root.sh, CLSRSC-184, CLSRSC-258 (Doc ID 2289380.1)

• The root.sh Fails with ORA-29783:GPnP Attribute SET Failed With Error [CLSGPNP_NOT_FOUND] (文档 ID 2180883.1)

解决方案

随着PSU、OPatch 和 Redhat的版本提升,虽然单独一个文档未能解决该问题,但参考各位大神的方案建议,最终还是攻克了这个难关,如下是我整理的解决方案

  1. 如下是为了解决最初遇到的bug:ACFS 导致 root.sh 执行失败所进行的步骤
    CLSRSC-400: A system reboot is required to continue installing.

a. 下载最新OPatch:p6880880补丁 为了打最新的PSU,所以下载了最新的OPatch
b. 下载最新GI升级补丁:p30920127_122010_Linux-x86-64 此处是为了修复ACFS的故障

  1. 执行安装脚本
    ./gridSetup.sh -applyPSU /u01/app/30920127 -silent -responseFile /home/grid/grid.rsp -skipPrereqs

  2. 此处是为了修复ASM启动失败的bug
    ASM failed to start. Check /u01/app/oracle/cfgtoollogs/asmca/asmca-200419AM113741.log for details.
 2020/04/19 11:38:16 CLSRSC-184: Configuration of ASM failed
 2020/04/19 11:38:23 CLSRSC-258: Failed to configure and start ASM
 Died at /u01/app/12.2.0/grid/crs/install/crsinstall.pm line 2112.
 The command '/u01/app/12.2.0/grid/perl/bin/perl -I/u01/app/12.2.0/grid/perl/lib -I/u01/app/12.2.0/grid/crs/install /u01/app/12.2.0/grid/crs/install/rootcrs.pl ' execution failed

a. 关闭selinux
b. 扩展shm
c. 修改配置文件
vi /u01/app/12.2.0/grid/crs/install/crsconfig_params
AFD_CONF=false
Redhat 7.6 & RAC 12.2:CLSRSC-400_第1张图片

  1. 运行 root.sh脚本
    Redhat 7.6 & RAC 12.2:CLSRSC-400_第2张图片
  2. 查看状态:成功
    [grid@node1 ~]$ crsctl stat res -t
    --------------------------------------------------------------------------------
    Name           Target State       Server                   State details      
    --------------------------------------------------------------------------------
    Local Resources
    --------------------------------------------------------------------------------
    ora.ASMNET1LSNR_ASM.lsnr
                ONLINE ONLINE       node1                   STABLE
                ONLINE ONLINE       node2                   STABLE
    ora.LISTENER.lsnr
                ONLINE ONLINE       node1                   STABLE
                ONLINE ONLINE       node2                   STABLE
    ora.OCRVOTING.dg
                ONLINE ONLINE       node1                   STABLE
                ONLINE ONLINE       node2                   STABLE
    ora.net1.network
                ONLINE ONLINE       node1                   STABLE
                ONLINE ONLINE       node2                   STABLE
    ora.ons
                ONLINE ONLINE       node1                   STABLE
                ONLINE ONLINE       node2                   STABLE
    ora.proxy_advm
                OFFLINE OFFLINE     node1                   STABLE
                OFFLINE OFFLINE     node2                   STABLE
    --------------------------------------------------------------------------------
    Cluster Resources
    --------------------------------------------------------------------------------
    ora.LISTENER_SCAN1.lsnr
      1       ONLINE ONLINE       node1                   STABLE
    ora.MGMTLSNR
      1       OFFLINE OFFLINE                               STABLE
    ora.asm
      1       ONLINE ONLINE       node1                   Started,STABLE
      2       ONLINE ONLINE       node2                   Started,STABLE
      3       OFFLINE OFFLINE                               STABLE
    ora.cvu
      1       ONLINE ONLINE       node1                   STABLE
    ora.node1.vip
      1       ONLINE ONLINE       node1                   STABLE
    ora.node2.vip
      1       ONLINE ONLINE       node2                   STABLE
    ora.qosmserver
      1       ONLINE ONLINE       node1                   STABLE
    ora.scan1.vip
      1       ONLINE ONLINE       node1                   STABLE
    --------------------------------------------------------------------------------

至此,GRID终于成功默认安装完成,建议大家还是使用19c吧,对比其它版本,的确要稳定许多,此次是为了搭建DG所做的操作,所以不得已进行了一次bug的攻克。
Redhat 7.6 & RAC 12.2:CLSRSC-400_第3张图片