天天看點

Redhat 7.6 & RAC 12.2:CLSRSC-400

在一次測試中,發現在Redhat7.6上安裝Grid 12.2.0.1過程中,運作root.sh腳本時出現了CLSRSC-400的錯誤,通過本文來記錄一下解決過程。

異常描述

  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.

  • 下載下傳最新OPatch:p6880880更新檔 為了打最新的PSU,是以下載下傳了最新的OPatch
  • 下載下傳最新GI更新更新檔:p30920127_122010_Linux-x86-64 此處是為了修複ACFS的故障

2. 執行安裝腳本

./gridSetup.sh -applyPSU /u01/app/30920127

-silent -responseFile /home/grid/grid.rsp -skipPrereqs

3. 此處是為了修複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

  • 關閉selinux
  • 擴充shm
  • 修改配置檔案
  • vi

    /u01/app/12.2.0/grid/crs/install/crsconfig_params

  • AFD_CONF=false
Redhat 7.6 & RAC 12.2:CLSRSC-400

4. 運作 root.sh腳本

Redhat 7.6 & RAC 12.2:CLSRSC-400

5. 檢視狀态:成功

 [grid@node1 ~]$ crsctl stat res -t

 --------------------------------------------------------------------------------

 Name           Target State      

Server                   State

details      

 Local Resources

 ora.ASMNET1LSNR_ASM.lsnr

                ONLINE ONLINE  

    node1                

  STABLE

    node2                

 ora.LISTENER.lsnr

 ora.OCRVOTING.dg

 ora.net1.network

 ora.ons

 ora.proxy_advm

                OFFLINE OFFLINE  

  node1                  

STABLE

  node2                  

 Cluster Resources

 ora.LISTENER_SCAN1.lsnr

      1       ONLINE ONLINE      

node1                   STABLE

 ora.MGMTLSNR

      1       OFFLINE OFFLINE    

    STABLE

 ora.asm

node1                  

Started,STABLE

      2       ONLINE ONLINE      

node2                  

      3       OFFLINE OFFLINE    

 ora.cvu

 ora.node1.vip

 ora.node2.vip

node2                   STABLE

 ora.qosmserver

 ora.scan1.vip

至此,GRID終于成功預設安裝完成,建議大家還是使用19c吧,對比其它版本,的确要穩定許多,此次是為了搭建DG所做的操作,是以不得已進行了一次bug的攻克。

Redhat 7.6 & RAC 12.2:CLSRSC-400