./gridSetup.sh -silent -responseFile /home/grid/dba_scripts/grid.12.2.rsp -ignorePrereqFailure |tee -a /home/grid/dba_scripts/grid.install.log
## 介质安装完成,开始配置集群(提示需要依次执行下面3个脚本) As a root user, execute the following script(s): 1. /u01/app/oraInventory/orainstRoot.sh 2. /u01/app/12.2.0/grid/root.sh
Execute /u01/app/oraInventory/orainstRoot.sh on the following nodes: [node01, node02] Execute /u01/app/12.2.0/grid/root.sh on the following nodes: [node01, node02]
Run the script on the local node first. After successful completion, you can start the script in parallel on all other nodes.
Successfully Setup Software. As install user, execute the following command to complete the configuration. /u01/app/12.2.0/grid/gridSetup.sh -executeConfigTools -responseFile /home/grid/dba_scripts/grid.12.2.rsp [-silent]
1. 执行/u01/app/12.2.0/grid/root.sh报错:CLSRSC-400: A system reboot is required to continue installing.
2020/09/25 15:57:43 CLSRSC-594: Executing installation step 13 of 19: 'InstallAFD'. 2020/09/25 15:57:46 CLSRSC-594: Executing installation step 14 of 19: 'InstallACFS'. CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'node01' CRS-2673: Attempting to stop 'ora.gpnpd' on 'node01' CRS-2673: Attempting to stop 'ora.evmd' on 'node01' CRS-2673: Attempting to stop 'ora.mdnsd' on 'node01' CRS-2677: Stop of 'ora.gpnpd' on 'node01' succeeded CRS-2677: Stop of 'ora.evmd' on 'node01' succeeded CRS-2677: Stop of 'ora.mdnsd' on 'node01' succeeded CRS-2673: Attempting to stop 'ora.gipcd' on 'node01' CRS-2677: Stop of 'ora.gipcd' on 'node01' succeeded CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'node01' has completed CRS-4133: Oracle High Availability Services has been stopped. CRS-4123: Oracle High Availability Services has been started. 2020/09/25 16:00:38 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
## 注意: 第14步开始失败过不去,安装acfs时候,CLSRSC-400: A system reboot ## 我重启后继续执行root.sh,依然失败,开始谷歌。
6. node01执行root.sh,19步执行完成最后post操作报错,检查点写入失败: /u01/app/12.2.0/grid/root.sh ########################################################################################## CLSRSC-175: Failed to write the checkpoint 'ROOTCRS_FIRSTNODE' with status 'SUCCESS' (error code 1) Died at /u01/app/12.2.0/grid/crs/install/crsutils.pm line 13413. 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 ########################################################################################## 根据提示日志,查看/u01/app/12.2.0/grid/crs/install/crsutils.pm line 13413,这段代码是关于写入transfile检查点,不知道是bug还是由于gridSetup安装后,在执行root.sh之前安装PSU后影响了grid_home的完整性校验导致。 再分析安装session日志:/u01/app/grid/crsdata/node02/crsconfig/rootcrs_node02_2020-09-28_03-55-35PM.log,发现有2个检查点报错:crs_asmbackup和transfile检查点。 继续查看这个日志中涉及的2个检查点报错日志和检查点文件,发现12c有2个检查点文件,一个是global,一个是本地node01的,crs_asmbackup检查点成功写在了global,但是本地node01检查点文件没有导致安装日志里面显示crs_asmbackup检查点报错,估计不影响可以忽略,主要问题估计还是那个transfile检查点导致,谷歌和mos无果,尝试node01再次执行root.sh。
8. node02执行root.sh,报错: ########################################################################################## 2020/09/28 15:55:44 CLSRSC-594: Executing installation step 1 of 19: 'SetupTFA'. 2020/09/28 15:55:45 CLSRSC-4001: Installing Oracle Trace File Analyzer (TFA) Collector. 2020/09/28 15:55:45 CLSRSC-4004: Failed to install Oracle Trace File Analyzer (TFA) Collector. Grid Infrastructure operations will continue. 2020/09/28 15:55:45 CLSRSC-594: Executing installation step 2 of 19: 'ValidateEnv'. 2020/09/28 15:55:46 CLSRSC-363: User ignored prerequisites during installation 2020/09/28 15:55:46 CLSRSC-594: Executing installation step 3 of 19: 'CheckFirstNode'. 2020/09/28 15:55:52 CLSRSC-507: The root script cannot proceed on this node node02 because either the first-node operations have not completed on node node01 or there was an error in obtaining the status of the first-node operations. Died at /u01/app/12.2.0/grid/crs/install/crsutils.pm line 4119. 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 ########################################################################################## # 没办法,虽然node01再次执行root.sh显示成功,但是node02执行root.sh校验node01节点依然不通过 # 谷歌和mos未解决,想着修改node02校验也不太好,尝试另一种方法,不管node02,先把node01安装完成,然后通过del和add把node02重新添加进入cluster。 9. node01执行最后配置成功: /u01/app/12.2.0/grid/gridSetup.sh -silent -executeConfigTools -responseFile home/grid/dba_scripts/grid.12.2.rsp # 这一步会配置mgmt db。
1. node01执行root.sh配置olr报错:CLSRSC-169: Failed to create or upgrade OLR
1 2 3 4 5 6 7 8 9 10
2020/09/27 14:50:29 CLSRSC-594: Executing installation step 8 of 19: 'SetupLocalGPNP'. 2020/09/27 14:50:53 CLSRSC-594: Executing installation step 9 of 19: 'ConfigOLR'. PROTL-4: Failed to retrieve data from the local registry 2020/09/27 14:51:01 CLSRSC-169: Failed to create or upgrade OLR Died at /u01/app/12.2.0/grid/crs/install/oraolr.pm line 496. 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
# 解决: cd /u01/app/12.2.0/grid/crs/install ./rootcrs.sh -deconfig -force
1. node01执行root.sh最后post报错:CLSRSC-614: failed to get the list of configured diskgroups
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
2020/09/27 16:20:25 CLSRSC-594: Executing installation step 18 of 19: 'ConfigNode'. CRS-2672: Attempting to start 'ora.ASMNET1LSNR_ASM.lsnr' on 'node01' CRS-2672: Attempting to start 'ora.ASMNET2LSNR_ASM.lsnr' on 'node01' CRS-2676: Start of 'ora.ASMNET1LSNR_ASM.lsnr' on 'node01' succeeded CRS-2676: Start of 'ora.ASMNET2LSNR_ASM.lsnr' on 'node01' succeeded CRS-2672: Attempting to start 'ora.asm' on 'node01' CRS-2676: Start of 'ora.asm' on 'node01' succeeded CRS-2672: Attempting to start 'ora.OCRDG.dg' on 'node01' CRS-2676: Start of 'ora.OCRDG.dg' on 'node01' succeeded 2020/09/27 16:21:39 CLSRSC-594: Executing installation step 19 of 19: 'PostConfig'. 2020/09/27 16:27:13 CLSRSC-614: failed to get the list of configured diskgroups Died at /u01/app/12.2.0/grid/crs/install/oraasm.pm line 2069. 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