暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

安装oracle 12.2.0.1 rac第一个节点执行root.sh时报错"failed to get the list of configured diskgroups"

Leo 2025-03-08
30

问题描述:安装oracle 12.2.0.1 rac第一个节点执行root.sh时报错"failed to get the list of configured diskgroups",如下所示:

系统:rhel 7.9 64位

数据库:oracle 12.2.0.1(rac两节点)

1、异常重现

[root@cjtpssb01 ~]# /u01/app/oraInventory/orainstRoot.sh

Changing permissions of /u01/app/oraInventory.

Adding read,write permissions for group.

Removing read,write,execute permissions for world.

 

Changing groupname of /u01/app/oraInventory to oinstall.

The execution of the script is complete.

[root@cjtpssb01 ~]# /u01/app/12.2.0.1/grid/root.sh

Performing root user operation.

 

The following environment variables are set as:

    ORACLE_OWNER= grid

    ORACLE_HOME=  /u01/app/12.2.0.1/grid

 

Enter the full pathname of the local bin directory: [/usr/local/bin]:

   Copying dbhome to /usr/local/bin ...

   Copying oraenv to /usr/local/bin ...

   Copying coraenv to /usr/local/bin ...

 

 

Creating /etc/oratab file...

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: /u01/app/12.2.0.1/grid/crs/install/crsconfig_params

The log of current session can be found at:

  /u01/app/grid/crsdata/cjtpssb01/crsconfig/rootcrs_cjtpssb01_2025-03-07_10-38-23PM.log

2025/03/07 22:38:25 CLSRSC-594: Executing installation step 1 of 19: 'SetupTFA'.

2025/03/07 22:38:25 CLSRSC-4001: Installing Oracle Trace File Analyzer (TFA) Collector.

2025/03/07 22:39:23 CLSRSC-4002: Successfully installed Oracle Trace File Analyzer (TFA) Collector.

2025/03/07 22:39:23 CLSRSC-594: Executing installation step 2 of 19: 'ValidateEnv'.

2025/03/07 22:39:27 CLSRSC-363: User ignored prerequisites during installation

2025/03/07 22:39:27 CLSRSC-594: Executing installation step 3 of 19: 'CheckFirstNode'.

2025/03/07 22:39:29 CLSRSC-594: Executing installation step 4 of 19: 'GenSiteGUIDs'.

2025/03/07 22:39:30 CLSRSC-594: Executing installation step 5 of 19: 'SaveParamFile'.

2025/03/07 22:39:35 CLSRSC-594: Executing installation step 6 of 19: 'SetupOSD'.

2025/03/07 22:39:36 CLSRSC-594: Executing installation step 7 of 19: 'CheckCRSConfig'.

2025/03/07 22:39:36 CLSRSC-594: Executing installation step 8 of 19: 'SetupLocalGPNP'.

2025/03/07 22:39:55 CLSRSC-594: Executing installation step 9 of 19: 'ConfigOLR'.

2025/03/07 22:40:01 CLSRSC-594: Executing installation step 10 of 19: 'ConfigCHMOS'.

2025/03/07 22:40:01 CLSRSC-594: Executing installation step 11 of 19: 'CreateOHASD'.

2025/03/07 22:40:05 CLSRSC-594: Executing installation step 12 of 19: 'ConfigOHASD'.

2025/03/07 22:40:21 CLSRSC-330: Adding Clusterware entries to file 'oracle-ohasd.conf'

2025/03/07 22:40:38 CLSRSC-594: Executing installation step 13 of 19: 'InstallAFD'.

2025/03/07 22:40:42 CLSRSC-594: Executing installation step 14 of 19: 'InstallACFS'.

CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'cjtpssb01'

CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'cjtpssb01' has completed

CRS-4133: Oracle High Availability Services has been stopped.

CRS-4123: Oracle High Availability Services has been started.

2025/03/07 22:41:01 CLSRSC-594: Executing installation step 15 of 19: 'InstallKA'.

2025/03/07 22:41:05 CLSRSC-594: Executing installation step 16 of 19: 'InitConfig'.

CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'cjtpssb01'

CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'cjtpssb01' 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 'cjtpssb01'

CRS-2672: Attempting to start 'ora.mdnsd' on 'cjtpssb01'

CRS-2676: Start of 'ora.evmd' on 'cjtpssb01' succeeded

CRS-2676: Start of 'ora.mdnsd' on 'cjtpssb01' succeeded

CRS-2672: Attempting to start 'ora.gpnpd' on 'cjtpssb01'

CRS-2676: Start of 'ora.gpnpd' on 'cjtpssb01' succeeded

CRS-2672: Attempting to start 'ora.cssdmonitor' on 'cjtpssb01'

CRS-2672: Attempting to start 'ora.gipcd' on 'cjtpssb01'

CRS-2676: Start of 'ora.cssdmonitor' on 'cjtpssb01' succeeded

CRS-2676: Start of 'ora.gipcd' on 'cjtpssb01' succeeded

CRS-2672: Attempting to start 'ora.cssd' on 'cjtpssb01'

CRS-2672: Attempting to start 'ora.diskmon' on 'cjtpssb01'

CRS-2676: Start of 'ora.diskmon' on 'cjtpssb01' succeeded

CRS-2676: Start of 'ora.cssd' on 'cjtpssb01' succeeded

 

Disk groups created successfully. Check /u01/app/grid/cfgtoollogs/asmca/asmca-250307PM104136.log for details.

 

 

2025/03/07 22:42:17 CLSRSC-482: Running command: '/u01/app/12.2.0.1/grid/bin/ocrconfig -upgrade grid oinstall'

CRS-2672: Attempting to start 'ora.crf' on 'cjtpssb01'

CRS-2672: Attempting to start 'ora.storage' on 'cjtpssb01'

CRS-2676: Start of 'ora.storage' on 'cjtpssb01' succeeded

CRS-2676: Start of 'ora.crf' on 'cjtpssb01' succeeded

CRS-2672: Attempting to start 'ora.crsd' on 'cjtpssb01'

CRS-2676: Start of 'ora.crsd' on 'cjtpssb01' succeeded

CRS-4256: Updating the profile

Successful addition of voting disk b8a09c28b2db4f60bf004fd10468c1eb.

Successfully replaced voting disk group with +OCR.

CRS-4256: Updating the profile

CRS-4266: Voting file(s) successfully replaced

##  STATE    File Universal Id                File Name Disk group

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

 1. ONLINE   b8a09c28b2db4f60bf004fd10468c1eb (/dev/asm-vote01) [OCR]

Located 1 voting disk(s).

CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'cjtpssb01'

CRS-2673: Attempting to stop 'ora.crsd' on 'cjtpssb01'

CRS-2677: Stop of 'ora.crsd' on 'cjtpssb01' succeeded

CRS-2673: Attempting to stop 'ora.storage' on 'cjtpssb01'

CRS-2673: Attempting to stop 'ora.crf' on 'cjtpssb01'

CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'cjtpssb01'

CRS-2673: Attempting to stop 'ora.gpnpd' on 'cjtpssb01'

CRS-2673: Attempting to stop 'ora.mdnsd' on 'cjtpssb01'

CRS-2677: Stop of 'ora.drivers.acfs' on 'cjtpssb01' succeeded

CRS-2677: Stop of 'ora.crf' on 'cjtpssb01' succeeded

CRS-2677: Stop of 'ora.gpnpd' on 'cjtpssb01' succeeded

CRS-2677: Stop of 'ora.storage' on 'cjtpssb01' succeeded

CRS-2673: Attempting to stop 'ora.asm' on 'cjtpssb01'

CRS-2677: Stop of 'ora.mdnsd' on 'cjtpssb01' succeeded

CRS-2677: Stop of 'ora.asm' on 'cjtpssb01' succeeded

CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'cjtpssb01'

CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'cjtpssb01' succeeded

CRS-2673: Attempting to stop 'ora.ctssd' on 'cjtpssb01'

CRS-2673: Attempting to stop 'ora.evmd' on 'cjtpssb01'

CRS-2677: Stop of 'ora.ctssd' on 'cjtpssb01' succeeded

CRS-2677: Stop of 'ora.evmd' on 'cjtpssb01' succeeded

CRS-2673: Attempting to stop 'ora.cssd' on 'cjtpssb01'

CRS-2677: Stop of 'ora.cssd' on 'cjtpssb01' succeeded

CRS-2673: Attempting to stop 'ora.gipcd' on 'cjtpssb01'

CRS-2677: Stop of 'ora.gipcd' on 'cjtpssb01' succeeded

CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'cjtpssb01' has completed

CRS-4133: Oracle High Availability Services has been stopped.

2025/03/07 22:43:39 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 'cjtpssb01'

CRS-2672: Attempting to start 'ora.evmd' on 'cjtpssb01'

CRS-2676: Start of 'ora.mdnsd' on 'cjtpssb01' succeeded

CRS-2676: Start of 'ora.evmd' on 'cjtpssb01' succeeded

CRS-2672: Attempting to start 'ora.gpnpd' on 'cjtpssb01'

CRS-2676: Start of 'ora.gpnpd' on 'cjtpssb01' succeeded

CRS-2672: Attempting to start 'ora.gipcd' on 'cjtpssb01'

CRS-2676: Start of 'ora.gipcd' on 'cjtpssb01' succeeded

CRS-2672: Attempting to start 'ora.cssdmonitor' on 'cjtpssb01'

CRS-2676: Start of 'ora.cssdmonitor' on 'cjtpssb01' succeeded

CRS-2672: Attempting to start 'ora.cssd' on 'cjtpssb01'

CRS-2672: Attempting to start 'ora.diskmon' on 'cjtpssb01'

CRS-2676: Start of 'ora.diskmon' on 'cjtpssb01' succeeded

CRS-2676: Start of 'ora.cssd' on 'cjtpssb01' succeeded

CRS-2672: Attempting to start 'ora.cluster_interconnect.haip' on 'cjtpssb01'

CRS-2672: Attempting to start 'ora.ctssd' on 'cjtpssb01'

CRS-2676: Start of 'ora.ctssd' on 'cjtpssb01' succeeded

CRS-2676: Start of 'ora.cluster_interconnect.haip' on 'cjtpssb01' succeeded

CRS-2672: Attempting to start 'ora.asm' on 'cjtpssb01'

CRS-2676: Start of 'ora.asm' on 'cjtpssb01' succeeded

CRS-2672: Attempting to start 'ora.storage' on 'cjtpssb01'

CRS-2676: Start of 'ora.storage' on 'cjtpssb01' succeeded

CRS-2672: Attempting to start 'ora.crf' on 'cjtpssb01'

CRS-2676: Start of 'ora.crf' on 'cjtpssb01' succeeded

CRS-2672: Attempting to start 'ora.crsd' on 'cjtpssb01'

CRS-2676: Start of 'ora.crsd' on 'cjtpssb01' succeeded

CRS-6023: Starting Oracle Cluster Ready Services-managed resources

CRS-6017: Processing resource auto-start for servers: cjtpssb01

CRS-6016: Resource auto-start has completed for server cjtpssb01

CRS-6024: Completed start of Oracle Cluster Ready Services-managed resources

CRS-4123: Oracle High Availability Services has been started.

2025/03/07 22:45:29 CLSRSC-343: Successfully started Oracle Clusterware stack

2025/03/07 22:45:29 CLSRSC-594: Executing installation step 18 of 19: 'ConfigNode'.

CRS-2672: Attempting to start 'ora.ASMNET1LSNR_ASM.lsnr' on 'cjtpssb01'

CRS-2676: Start of 'ora.ASMNET1LSNR_ASM.lsnr' on 'cjtpssb01' succeeded

CRS-2672: Attempting to start 'ora.asm' on 'cjtpssb01'

CRS-2676: Start of 'ora.asm' on 'cjtpssb01' succeeded

CRS-2672: Attempting to start 'ora.OCR.dg' on 'cjtpssb01'

CRS-2676: Start of 'ora.OCR.dg' on 'cjtpssb01' succeeded

2025/03/07 22:46:47 CLSRSC-594: Executing installation step 19 of 19: 'PostConfig'.

2025/03/07 22:51:52 CLSRSC-614: failed to get the list of configured diskgroups

Died at /u01/app/12.2.0.1/grid/crs/install/oraasm.pm line 2069.

The command '/u01/app/12.2.0.1/grid/perl/bin/perl -I/u01/app/12.2.0.1/grid/perl/lib -I/u01/app/12.2.0.1/grid/crs/install /u01/app/12.2.0.1/grid/crs/install/rootcrs.pl ' execution failed

 

2、解决方案

[root@cjtpssb01 ~]# export ORACLE_HOME=/u01/app/12.2.0.1/grid

[root@cjtpssb01 ~]# cd /u01/app/12.2.0.1/grid/rdbms/lib

[root@cjtpssb01 lib]# /usr/bin/make -f ins_rdbms.mk client_sharedlib libasmclntsh12.ohso libasmperl12.ohso ORACLE_HOME=$ORACLE_HOME

 

参考网址:https://blog.csdn.net/m0_37625564/article/details/124465373

「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论