在部署 Oracle11gR2 执行 root.sh 脚本时,遇上bug导致 [client(16400)]CRS-2101:The OLR was formatted using version 3 问题,然后就卡着不动,过程如下:
[root@qsyxdb1 home]# /u01/app/11.2.0/grid/root.sh Performing root user operation for Oracle 11g The following environment variables are set as: ORACLE_OWNER= grid ORACLE_HOME= /u01/app/11.2.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. Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params Creating trace directory User ignored Prerequisites during installation Installing Trace File Analyzer OLR initialization - successful root wallet root wallet cert root cert export peer wallet profile reader wallet pa wallet peer wallet keys pa wallet keys peer cert request pa cert request peer cert pa cert peer root cert TP profile reader root cert TP pa root cert TP peer pa cert TP pa peer cert TP profile reader pa cert TP profile reader peer cert TP peer user cert pa user cert Adding Clusterware entries to inittab ohasd failed to start Failed to start the Clusterware. Last 20 lines of the alert log follow: 2018-08-16 16:16:59.741: [client(16400)]CRS-2101:The OLR was formatted using version 3.
提示错误并卡在此处,遇上了就不多说,直接另开一个会话窗口,在 root 用户下执行 /bin/dd if=/var/tmp/.oracle/npohasd of=/dev/null bs=1024 count=1( 注:根据操作系统版本不同, npohasd 文件目录可能不同,更改目录路径即可 ) 继续监控 root.sh 执行输出日志,如下所示,顺利完成。
CRS-2672: Attempting to start 'ora.mdnsd' on 'qsyxdb1' CRS-2676: Start of 'ora.mdnsd' on 'qsyxdb1' succeeded CRS-2672: Attempting to start 'ora.gpnpd' on 'qsyxdb1' CRS-2676: Start of 'ora.gpnpd' on 'qsyxdb1' succeeded CRS-2672: Attempting to start 'ora.cssdmonitor' on 'qsyxdb1' CRS-2672: Attempting to start 'ora.gipcd' on 'qsyxdb1' CRS-2676: Start of 'ora.cssdmonitor' on 'qsyxdb1' succeeded CRS-2676: Start of 'ora.gipcd' on 'qsyxdb1' succeeded CRS-2672: Attempting to start 'ora.cssd' on 'qsyxdb1' CRS-2672: Attempting to start 'ora.diskmon' on 'qsyxdb1' CRS-2676: Start of 'ora.diskmon' on 'qsyxdb1' succeeded CRS-2676: Start of 'ora.cssd' on 'qsyxdb1' succeeded 已成功创建并启动 ASM。 已成功创建磁盘组OCR。 clscfg: -install mode specified Successfully accumulated necessary OCR keys. Creating OCR keys for user 'root', privgrp 'root'.. Operation successful. CRS-4256: Updating the profile Successful addition of voting disk ada400ba18eb4f92bf9bdaa9171a7775. Successful addition of voting disk 2308ef593a784fb7bff13436b84c61a3. Successful addition of voting disk 3e882c78f43c4f32bff9e12e71de3866. 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 ada400ba18eb4f92bf9bdaa9171a7775 (/dev/asmdiskb) [OCR] 2. ONLINE 2308ef593a784fb7bff13436b84c61a3 (/dev/asmdiskc) [OCR] 3. ONLINE 3e882c78f43c4f32bff9e12e71de3866 (/dev/asmdiskd) [OCR] Located 3 voting disk(s). CRS-2672: Attempting to start 'ora.asm' on 'qsyxdb1' CRS-2676: Start of 'ora.asm' on 'qsyxdb1' succeeded CRS-2672: Attempting to start 'ora.OCR.dg' on 'qsyxdb1' CRS-2676: Start of 'ora.OCR.dg' on 'qsyxdb1' succeeded Configure Oracle Grid Infrastructure for a Cluster ... succeeded [root@qsyxdb1 home]#
在节点 2 执行 root.sh 的时候,依然出现了这种情况,如法炮制即可,过程如下。
[root@qsyxdb2 ~]# /u01/app/11.2.0/grid/root.sh Performing root user operation for Oracle 11g The following environment variables are set as: ORACLE_OWNER= grid ORACLE_HOME= /u01/app/11.2.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. Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params Creating trace directory User ignored Prerequisites during installation Installing Trace File Analyzer OLR initialization - successful Adding Clusterware entries to inittab ohasd failed to start Failed to start the Clusterware. Last 20 lines of the alert log follow: 2018-08-16 16:51:44.453: [client(15563)]CRS-2101:The OLR was formatted using version 3. CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node qsyxdb1, number 1, and is terminating An active cluster was found during exclusive startup, restarting to join the cluster Configure Oracle Grid Infrastructure for a Cluster ... succeeded [root@qsyxdb2 ~]#
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/31403259/viewspace-2200234/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/31403259/viewspace-2200234/