暂无图片
RAC1的GI安装运行脚本root.sh出现错误
我来答
分享
苟(£利
2021-12-01
RAC1的GI安装运行脚本root.sh出现错误

小白想找大佬排查教授一下解决方法,用的是asmlib方式建立的asm磁盘(udev和多路径建立不起来,只能用asmlib了)

以下是运行内容:

[root@ADG ~]# /opt/app/12.2.0/grid/root.sh
Performing root user operation.

The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /opt/app/12.2.0/grid

Enter the full pathname of the local bin directory: [/usr/local/bin]:
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.

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.
Relinking oracle with rac_on option
Using configuration parameter file: /opt/app/12.2.0/grid/crs/install/crsconfig_params
The log of current session can be found at:
/opt/app/grid/crsdata/adg/crsconfig/rootcrs_adg_2021-12-01_04-51-55PM.log
2021/12/01 16:52:04 CLSRSC-594: Executing installation step 1 of 19: 'SetupTFA'.
2021/12/01 16:52:04 CLSRSC-4001: Installing Oracle Trace File Analyzer (TFA) Collector.
2021/12/01 16:53:45 CLSRSC-4002: Successfully installed Oracle Trace File Analyzer (TFA) Collector.
2021/12/01 16:53:45 CLSRSC-594: Executing installation step 2 of 19: 'ValidateEnv'.
2021/12/01 16:53:54 CLSRSC-363: User ignored prerequisites during installation
2021/12/01 16:53:54 CLSRSC-594: Executing installation step 3 of 19: 'CheckFirstNode'.
2021/12/01 16:54:07 CLSRSC-594: Executing installation step 4 of 19: 'GenSiteGUIDs'.
2021/12/01 16:54:07 CLSRSC-594: Executing installation step 5 of 19: 'SaveParamFile'.
2021/12/01 16:54:28 CLSRSC-594: Executing installation step 6 of 19: 'SetupOSD'.
2021/12/01 16:54:29 CLSRSC-594: Executing installation step 7 of 19: 'CheckCRSConfig'.
2021/12/01 16:54:30 CLSRSC-594: Executing installation step 8 of 19: 'SetupLocalGPNP'.
2021/12/01 16:54:47 CLSRSC-594: Executing installation step 9 of 19: 'ConfigOLR'.
2021/12/01 16:55:07 CLSRSC-594: Executing installation step 10 of 19: 'ConfigCHMOS'.
2021/12/01 16:55:07 CLSRSC-594: Executing installation step 11 of 19: 'CreateOHASD'.
2021/12/01 16:55:21 CLSRSC-594: Executing installation step 12 of 19: 'ConfigOHASD'.
2021/12/01 16:55:38 CLSRSC-330: Adding Clusterware entries to file 'oracle-ohasd.conf'
2021/12/01 16:56:35 CLSRSC-594: Executing installation step 13 of 19: 'InstallAFD'.
2021/12/01 16:56:48 CLSRSC-594: Executing installation step 14 of 19: 'InstallACFS'.
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'adg'
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'adg' has completed
CRS-4133: Oracle High Availability Services has been stopped.
CRS-4123: Oracle High Availability Services has been started.
2021/12/01 16:58:24 CLSRSC-594: Executing installation step 15 of 19: 'InstallKA'.
2021/12/01 16:58:38 CLSRSC-594: Executing installation step 16 of 19: 'InitConfig'.
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'adg'
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'adg' has completed
CRS-4133: Oracle High Availability Services has been stopped.
CRS-4123: Oracle High Availability Services has been started.
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'adg'
CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'adg'
CRS-2677: Stop of 'ora.drivers.acfs' on 'adg' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'adg' has completed
CRS-4133: Oracle High Availability Services has been stopped.
2021/12/01 16:59:13 CLSRSC-594: Executing installation step 17 of 19: 'StartCluster'.
CRS-4123: Starting Oracle High Availability Services-managed resources
CRS-2672: Attempting to start 'ora.mdnsd' on 'adg'
CRS-2672: Attempting to start 'ora.evmd' on 'adg'
CRS-2676: Start of 'ora.evmd' on 'adg' succeeded
CRS-2676: Start of 'ora.mdnsd' on 'adg' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'adg'
CRS-2676: Start of 'ora.gpnpd' on 'adg' succeeded
CRS-2672: Attempting to start 'ora.gipcd' on 'adg'
CRS-2676: Start of 'ora.gipcd' on 'adg' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'adg'
CRS-2676: Start of 'ora.cssdmonitor' on 'adg' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'adg'
CRS-2672: Attempting to start 'ora.diskmon' on 'adg'
CRS-2676: Start of 'ora.diskmon' on 'adg' succeeded
CRS-2883: Resource 'ora.cssdmonitor' failed during Clusterware stack start.
CRS-4406: Oracle High Availability Services synchronous start failed.
CRS-4000: Command Start failed, or completed with errors.
2021/12/01 17:09:45 CLSRSC-378: Failed to get the configured node role for the local node
CRS-4535: Cannot communicate with Cluster Ready Services
CRS-4000: Command Status failed, or completed with errors.
2021/12/01 17:09:49 CLSRSC-117: Failed to start Oracle Clusterware stack
Died at /opt/app/12.2.0/grid/crs/install/crsinstall.pm line 1494.
[root@ADG ~]# The command '/opt/app/12.2.0/grid/perl/bin/perl -I/opt/app/12.2.0/grid/perl/lib -I/opt/app/12.2.0/grid/crs/install /opt/app/12.2.0/grid/crs/install/rootcrs.pl ' execution failed


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

能看到报错:CRS-2883: Resource 'ora.cssdmonitor' failed during Clusterware stack start. 

但是不清楚解决思路,知识点太贫乏了。

这不是第一次运行root.sh,之前有成功过,不过因为mt磁盘问题导致安装失败(具体什么问题也清楚,连日志都没什么有用的内容)

以下是之前成功的内容,不知道能不能作为参考:

[root@ADG opt]# /opt/app/12.2.0/grid/root.sh
Performing root user operation.

The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /opt/app/12.2.0/grid

Enter the full pathname of the local bin directory: [/usr/local/bin]:
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.

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.
Relinking oracle with rac_on option
Using configuration parameter file: /opt/app/12.2.0/grid/crs/install/crsconfig_params
The log of current session can be found at:
/opt/app/grid/crsdata/adg/crsconfig/rootcrs_adg_2021-11-29_04-13-38PM.log
2021/11/29 16:13:51 CLSRSC-594: Executing installation step 1 of 19: 'SetupTFA'.
2021/11/29 16:13:51 CLSRSC-4001: Installing Oracle Trace File Analyzer (TFA) Collector.
2021/11/29 16:15:29 CLSRSC-4002: Successfully installed Oracle Trace File Analyzer (TFA) Collector.
2021/11/29 16:15:29 CLSRSC-594: Executing installation step 2 of 19: 'ValidateEnv'.
2021/11/29 16:15:41 CLSRSC-363: User ignored prerequisites during installation
2021/11/29 16:15:41 CLSRSC-594: Executing installation step 3 of 19: 'CheckFirstNode'.
2021/11/29 16:15:51 CLSRSC-594: Executing installation step 4 of 19: 'GenSiteGUIDs'.
2021/11/29 16:15:53 CLSRSC-594: Executing installation step 5 of 19: 'SaveParamFile'.
2021/11/29 16:16:19 CLSRSC-594: Executing installation step 6 of 19: 'SetupOSD'.
2021/11/29 16:16:20 CLSRSC-594: Executing installation step 7 of 19: 'CheckCRSConfig'.
2021/11/29 16:16:22 CLSRSC-594: Executing installation step 8 of 19: 'SetupLocalGPNP'.
2021/11/29 16:18:43 CLSRSC-594: Executing installation step 9 of 19: 'ConfigOLR'.
2021/11/29 16:19:10 CLSRSC-594: Executing installation step 10 of 19: 'ConfigCHMOS'.
2021/11/29 16:19:10 CLSRSC-594: Executing installation step 11 of 19: 'CreateOHASD'.
2021/11/29 16:19:29 CLSRSC-594: Executing installation step 12 of 19: 'ConfigOHASD'.
2021/11/29 16:19:46 CLSRSC-330: Adding Clusterware entries to file 'oracle-ohasd.conf'
2021/11/29 16:20:47 CLSRSC-594: Executing installation step 13 of 19: 'InstallAFD'.
2021/11/29 16:21:16 CLSRSC-594: Executing installation step 14 of 19: 'InstallACFS'.
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'adg'
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'adg' has completed
CRS-4133: Oracle High Availability Services has been stopped.
CRS-4123: Oracle High Availability Services has been started.
2021/11/29 16:23:31 CLSRSC-594: Executing installation step 15 of 19: 'InstallKA'.
2021/11/29 16:23:57 CLSRSC-594: Executing installation step 16 of 19: 'InitConfig'.
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'adg'
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'adg' has completed
CRS-4133: Oracle High Availability Services has been stopped.
CRS-4123: Oracle High Availability Services has been started.
CRS-2672: Attempting to start 'ora.evmd' on 'adg'
CRS-2672: Attempting to start 'ora.mdnsd' on 'adg'
CRS-2676: Start of 'ora.mdnsd' on 'adg' succeeded
CRS-2676: Start of 'ora.evmd' on 'adg' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'adg'
CRS-2676: Start of 'ora.gpnpd' on 'adg' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'adg'
CRS-2672: Attempting to start 'ora.gipcd' on 'adg'
CRS-2676: Start of 'ora.cssdmonitor' on 'adg' succeeded
CRS-2676: Start of 'ora.gipcd' on 'adg' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'adg'
CRS-2672: Attempting to start 'ora.diskmon' on 'adg'
CRS-2676: Start of 'ora.diskmon' on 'adg' succeeded
CRS-2676: Start of 'ora.cssd' on 'adg' succeeded

Disk groups created successfully. Check /opt/app/grid/cfgtoollogs/asmca/asmca-211129PM042517.log for details.


2021/11/29 16:26:38 CLSRSC-482: Running command: '/opt/app/12.2.0/grid/bin/ocrconfig -upgrade grid oinstall'
CRS-2672: Attempting to start 'ora.crf' on 'adg'
CRS-2672: Attempting to start 'ora.storage' on 'adg'
CRS-2676: Start of 'ora.storage' on 'adg' succeeded
CRS-2676: Start of 'ora.crf' on 'adg' succeeded
CRS-2672: Attempting to start 'ora.crsd' on 'adg'
CRS-2676: Start of 'ora.crsd' on 'adg' succeeded
CRS-4256: Updating the profile
Successful addition of voting disk 602cbc04a2644f96bfa74dc707e75608.
Successfully replaced voting disk group with +OCRVOTE.
CRS-4256: Updating the profile
CRS-4266: Voting file(s) successfully replaced
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE 602cbc04a2644f96bfa74dc707e75608 (/dev/oracleasm/disks/OCRVOTE) [OCRVOTE]
Located 1 voting disk(s).
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'adg'
CRS-2673: Attempting to stop 'ora.crsd' on 'adg'
CRS-2677: Stop of 'ora.crsd' on 'adg' succeeded
CRS-2673: Attempting to stop 'ora.storage' on 'adg'
CRS-2673: Attempting to stop 'ora.crf' on 'adg'
CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'adg'
CRS-2673: Attempting to stop 'ora.gpnpd' on 'adg'
CRS-2673: Attempting to stop 'ora.mdnsd' on 'adg'
CRS-2677: Stop of 'ora.drivers.acfs' on 'adg' succeeded
CRS-2677: Stop of 'ora.gpnpd' on 'adg' succeeded
CRS-2677: Stop of 'ora.storage' on 'adg' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'adg'
CRS-2677: Stop of 'ora.mdnsd' on 'adg' succeeded
CRS-2677: Stop of 'ora.crf' on 'adg' succeeded
CRS-2677: Stop of 'ora.asm' on 'adg' succeeded
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'adg'
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'adg' succeeded
CRS-2673: Attempting to stop 'ora.ctssd' on 'adg'
CRS-2673: Attempting to stop 'ora.evmd' on 'adg'
CRS-2677: Stop of 'ora.evmd' on 'adg' succeeded
CRS-2677: Stop of 'ora.ctssd' on 'adg' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'adg'
CRS-2677: Stop of 'ora.cssd' on 'adg' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'adg'
CRS-2677: Stop of 'ora.gipcd' on 'adg' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'adg' has completed
CRS-4133: Oracle High Availability Services has been stopped.
2021/11/29 16:28:48 CLSRSC-594: Executing installation step 17 of 19: 'StartCluster'.
CRS-4123: Starting Oracle High Availability Services-managed resources
CRS-2672: Attempting to start 'ora.evmd' on 'adg'
CRS-2672: Attempting to start 'ora.mdnsd' on 'adg'
CRS-2676: Start of 'ora.evmd' on 'adg' succeeded
CRS-2676: Start of 'ora.mdnsd' on 'adg' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'adg'
CRS-2676: Start of 'ora.gpnpd' on 'adg' succeeded
CRS-2672: Attempting to start 'ora.gipcd' on 'adg'
CRS-2676: Start of 'ora.gipcd' on 'adg' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'adg'
CRS-2676: Start of 'ora.cssdmonitor' on 'adg' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'adg'
CRS-2672: Attempting to start 'ora.diskmon' on 'adg'
CRS-2676: Start of 'ora.diskmon' on 'adg' succeeded
CRS-2676: Start of 'ora.cssd' on 'adg' succeeded
CRS-2672: Attempting to start 'ora.cluster_interconnect.haip' on 'adg'
CRS-2672: Attempting to start 'ora.ctssd' on 'adg'
CRS-2676: Start of 'ora.ctssd' on 'adg' succeeded
CRS-2676: Start of 'ora.cluster_interconnect.haip' on 'adg' succeeded
CRS-2672: Attempting to start 'ora.asm' on 'adg'
CRS-2676: Start of 'ora.asm' on 'adg' succeeded
CRS-2672: Attempting to start 'ora.storage' on 'adg'
CRS-2676: Start of 'ora.storage' on 'adg' succeeded
CRS-2672: Attempting to start 'ora.crf' on 'adg'
CRS-2676: Start of 'ora.crf' on 'adg' succeeded
CRS-2672: Attempting to start 'ora.crsd' on 'adg'
CRS-2676: Start of 'ora.crsd' on 'adg' succeeded
CRS-6023: Starting Oracle Cluster Ready Services-managed resources
CRS-6017: Processing resource auto-start for servers: adg
CRS-6016: Resource auto-start has completed for server adg
CRS-6024: Completed start of Oracle Cluster Ready Services-managed resources
CRS-4123: Oracle High Availability Services has been started.
2021/11/29 16:31:18 CLSRSC-343: Successfully started Oracle Clusterware stack
2021/11/29 16:31:19 CLSRSC-594: Executing installation step 18 of 19: 'ConfigNode'.
CRS-2672: Attempting to start 'ora.ASMNET1LSNR_ASM.lsnr' on 'adg'
CRS-2676: Start of 'ora.ASMNET1LSNR_ASM.lsnr' on 'adg' succeeded
CRS-2672: Attempting to start 'ora.asm' on 'adg'
CRS-2676: Start of 'ora.asm' on 'adg' succeeded
CRS-2672: Attempting to start 'ora.OCRVOTE.dg' on 'adg'
CRS-2676: Start of 'ora.OCRVOTE.dg' on 'adg' succeeded
2021/11/29 16:50:25 CLSRSC-594: Executing installation step 19 of 19: 'PostConfig'.



2021/11/29 16:59:47 CLSRSC-325: Configure Oracle Grid Infrastructure for a Cluster ... succeeded


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

刚刚开始用论坛,没多少积蓄,希望能有大佬帮帮忙

我来答
添加附件
收藏
分享
问题补充
3条回答
默认
最新
苟(£利

已经解决了,是卸载不干净的问题,这边贴上我卸载的步骤,主要参考资料https://www.cnblogs.com/jyzhao/p/7305195.html

除了第2步时grid用户执行,其他都是在root下执行的


1、执行脚本

/opt/app/12.2.0/grid/crs/install/rootcrs.pl -deconfig -force -verbose

/opt/app/12.2.0/grid/crs/install/rootcrs.pl -deconfig -lastnode -verbose -force

2、执行deinstall脚本

参考网址:https://blog.csdn.net/qq_36815190/article/details/80074659 ,deinstall脚本要进行一些数据清除的选择确认,具体如何选择这个链接会提供内容

切换grid用户执行脚本

$ORACLE_HOME/deinstall/deinstall

3、删除Oracle Restart

/opt/app/12.2.0/grid/crs/install/roothas.pl -deconfig -verbose -force

4、清理文件

一般来说删除这几个文件即可:
PS:因为本机的u01空间不足,grid文件是解压在opt下的
rm -rf /opt/app/grid/*
rm -rf /etc/oraInst.loc
rm -rf /opt/app/oraInventory/*
rm -rf /etc/oracle/ocr.loc


 如果无意间删了什么其他东西导致GI安装的图形界面打不开,建议把grid的整个压缩包内容都删了重新解压(一般是ORACLE_HOME下的所有文件),注意解压后权限要改回来

rm -rf $ORACLE_HOME/*
重新解压后修改文件属组
chown -R grid:oinstall /opt
chown -R oracle:oinstall /opt/app/oracle
chmod -R 775 /opt

5、卸载asm磁盘,清除磁盘头

我是用asmlib方式创建的asm磁盘

[root@ADG ~]# oracleasm deletedisk OCRVOTE
[root@ADG ~]#oracleasm deletedisk DATADG
[root@ADG ~]#oracleasm deletedisk ARCHDG
[root@ADG ~]#oracleasm deletedisk MTMGDG 


for i in c d e f

do
dd if=/dev/zero of=/dev/sd$i1 bs=10M count=2
done

如果for循环还是清理不干净建议直接一个个清理(具体为什么我也不清楚)

暂无图片 评论
暂无图片 有用 0
暂无图片
侯志恒

我觉得是不是共享盘没做好呢,你用的是虚拟机自己做的测试么

暂无图片 评论
暂无图片 有用 0
苟(£利
题主
2021-12-02
对,是自己的测试,共享磁盘的话,应该没太大问题,脚本执行成功和失败的方法是一样的。不过我这个是没有在GI安装过程中执行脚本,所以不清楚这样直接执行脚本可不可以用来排错
苟(£利

对了补充以下,我安装GI失败后清理数据的方式是直接执行语句:

/opt/app/12.2.0/grid/crs/install/rootcrs.pl -deconfig -force -verbose
/opt/app/12.2.0/grid/crs/install/rootcrs.pl -deconfig -lastnode -verbose -force
/opt/app/12.2.0/grid/crs/install/roothas.pl -deconfig -verbose -force

因为没找到其他的清理方式资料,就用了这个

大概就是执行完语句后删除asm磁盘,清理磁盘头,再创建asm磁盘,最后重新安装

暂无图片 评论
暂无图片 有用 0
回答交流
提交
问题信息
请登录之后查看
邀请回答
暂无人订阅该标签,敬请期待~~
暂无图片墨值悬赏