[root@dbserver2 ~]# /u01/app/19.10.0/grid/bin/crsctl start has
CLSU-00107: operating system function: opendir; failed with error data: 2; at location: scrsearch1
CLSU-00101: operating system error message: No such file or directory
CLSU-00104: additional error information: cant open scr home dir scls_scr_getval
CRS-4000: Command Start failed, or completed with errors.
解决办法:
1)移除旧主机名相关的配置信息
cd /u01/app/19.10.0/grid/crs/install
[root@dbserver2 install]# perl roothas.sh -deconfig -force
Using configuration parameter file: /u01/app/19.10.0/grid/crs/install/crsconfig_params
The log of current session can be found at:
/u01/app/grid/crsdata/dbserver2/crsconfig/hadeconfig.log
PRCR-1070 : Failed to check if resource ora.asm is registered
CRS-5168 : unable to communicate with ohasd
2021/02/24 18:30:09 CLSRSC-180: An error occurred while executing the command '/u01/app/19.10.0/grid/bin/srvctl remove asm -force'
PRCR-1070 : Failed to check if resource ora.ons is registered
CRS-5168 : unable to communicate with ohasd
2021/02/24 18:30:09 CLSRSC-180: An error occurred while executing the command '/u01/app/19.10.0/grid/bin/srvctl config ons'
CLSU-00107: operating system function: opendir; failed with error data: 2; at location: scrsearch1
CLSU-00101: operating system error message: No such file or directory
CLSU-00104: additional error information: cant open scr home dir scls_scr_getval
CRS-4639: Could not contact Oracle High Availability Services
CRS-4000: Command Stop failed, or completed with errors.
Redirecting to /bin/systemctl restart rsyslog.service
2021/02/24 18:30:11 CLSRSC-337: Successfully deconfigured Oracle Restart stack
2)运行root脚本重新配置css服务
[root@dbserver2 install]# cd /u01/app/19.10.0/grid
[root@dbserver2 grid]# ./root.sh
Performing root user operation.
The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /u01/app/19.10.0/grid
Copying dbhome to /usr/local/bin ...
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...
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.
Using configuration parameter file: /u01/app/19.10.0/grid/crs/install/crsconfig_params
The log of current session can be found at:
/u01/app/grid/crsdata/dbserver2/crsconfig/roothas_2021-02-24_06-31-25PM.log
Redirecting to /bin/systemctl restart rsyslog.service
LOCAL ADD MODE
Creating OCR keys for user 'grid', privgrp 'oinstall'..
Operation successful.
LOCAL ONLY MODE
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
CRS-4664: Node dbserver2 successfully pinned.
2021/02/24 18:31:33 CLSRSC-330: Adding Clusterware entries to file 'oracle-ohasd.service'
dbserver2 2021/02/24 18:32:18 /u01/app/grid/crsdata/dbserver2/olr/backup_20210224_183218.olr 363229741
2021/02/24 18:32:18 CLSRSC-327: Successfully configured Oracle Restart for a standalone server
[grid@dbserver2 ~]$ crsctl stat res -t
--------------------------------------------------------------------------------
Name Target State Server State details
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.ons
OFFLINE OFFLINE dbserver2 STABLE
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.cssd
1 ONLINE ONLINE dbserver2 STABLE
ora.diskmon
1 OFFLINE OFFLINE STABLE
ora.evmd
1 ONLINE ONLINE dbserver2 STABLE
--------------------------------------------------------------------------------