合 grid跑root.sh报错:libcrs.so: cannot read file data
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | [root@raclhr-21c-n1 grid]# /u01/app/21.3.0/grid/root.sh Performing root user operation. The following environment variables are set as: ORACLE_OWNER= grid ORACLE_HOME= /u01/app/21.3.0/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/21.3.0/grid/crs/install/crsconfig_params 2021-08-19 16:41:02: Got permissions of file /u01/app/grid/crsdata/raclhr-21c-n1/crsconfig: 0775 2021-08-19 16:41:02: Got permissions of file /u01/app/grid/crsdata: 0775 2021-08-19 16:41:02: Got permissions of file /u01/app/grid/crsdata/raclhr-21c-n1: 0775 The log of current session can be found at: /u01/app/grid/crsdata/raclhr-21c-n1/crsconfig/rootcrs_raclhr-21c-n1_2021-08-19_04-41-02PM.log 2021/08/19 16:41:10 CLSRSC-594: Executing installation step 1 of 19: 'SetupTFA'. 2021/08/19 16:41:10 CLSRSC-594: Executing installation step 2 of 19: 'ValidateEnv'. 2021/08/19 16:41:10 CLSRSC-594: Executing installation step 3 of 19: 'CheckFirstNode'. 2021/08/19 16:41:12 CLSRSC-594: Executing installation step 4 of 19: 'GenSiteGUIDs'. 2021/08/19 16:41:13 CLSRSC-594: Executing installation step 5 of 19: 'SetupOSD'. Redirecting to /bin/systemctl restart rsyslog.service 2021/08/19 16:41:14 CLSRSC-594: Executing installation step 6 of 19: 'CheckCRSConfig'. /u01/app/21.3.0/grid/bin/crsctl query crs releaseversion ... failed rc=127 with message: /u01/app/21.3.0/grid/bin/crsctl.bin: error while loading shared libraries: /u01/app/21.3.0/grid/lib/libcrs.so: cannot read file data 2021/08/19 16:41:14 CLSRSC-594: Executing installation step 7 of 19: 'SetupLocalGPNP'. 2021/08/19 16:41:26 CLSRSC-594: Executing installation step 8 of 19: 'CreateRootCert'. 2021/08/19 16:41:30 CLSRSC-594: Executing installation step 9 of 19: 'ConfigOLR'. /u01/app/21.3.0/grid/bin/crsctl.bin: error while loading shared libraries: /u01/app/21.3.0/grid/lib/libcrs.so: cannot read file data 2021/08/19 16:41:47 CLSRSC-331: Failure initializing entries in file '/etc/oracle/scls_scr/raclhr-21c-n1' Died at /u01/app/21.3.0/grid/crs/install/s_crsutils.pm line 1294. |
原因:文件/u01/app/21.3.0/grid/lib/libcrs.so
不全,通过校验MD5值来检查文件的完整性。
解决:可以将db下的该文件拷贝到grid目录下,也可以从原压缩包重新拷贝该文件: