PROT-1: Failed to initialize ocrconfig错误的解决!

xiaoxiao2021-03-01  11

安装CRS后执行root.sh报错了

[root@rac10g1 crs]# ./root.shWARNING: directory '/app/oracle/product' is not owned by rootWARNING: directory '/app/oracle' is not owned by rootChecking to see if Oracle CRS stack is already configured

Setting the permissions on OCR backup directorySetting up NS directoriesPROT-1: Failed to initialize ocrconfigFailed to upgrade Oracle Cluster Registry configuration。

在另一个节点查看CRS。

[root@rac10g2 bin]# ./ocrcheckStatus of Oracle Cluster Registry is as follows : Version : 2 Total space (kbytes) : 297084 Used space (kbytes) : 312 Available space (kbytes) : 296772 ID : 1516147408 Device/File Name : /dev/raw/ocr1 Device/File integrity check succeeded Device/File Name : /dev/raw/ocr2 Device/File integrity check succeeded

Cluster registry integrity check succeeded正常呀。

看raw设备的状态:

[root@rac10g2 bin]# ls -lt /dev/rawtotal 0crw-r--r-- 1 oracle dba 162, 3 Sep 15 08:56 votedisk1crw-r--r-- 1 oracle dba 162, 5 Sep 15 08:56 votedisk3crw-r--r-- 1 oracle dba 162, 4 Sep 15 08:56 votedisk2crw-r----- 1 root dba 162, 2 Sep 15 08:17 ocr2crw-r----- 1 root dba 162, 1 Sep 15 08:17 ocr1

查看出错节点的祼设备状态:

[root@rac10g1 init.d]# ls -lrt /dev/rawtotal 0crw-rw---- 1 oracle dba 162, 1 Sep 15 03:56 raw1crw-r----- 1 root dba 162, 2 Sep 15 03:57 ocr2crw-r--r-- 1 oracle dba 162, 3 Sep 15 03:57 votedisk1crw-r--r-- 1 oracle dba 162, 4 Sep 15 03:57 votedisk2crw-r--r-- 1 oracle dba 162, 5 Sep 15 03:57 votedisk3-rw-r----- 1 root dba 0 Sep 15 08:36 ocr1

发现问题所在:

解决办法:

[root@rac10g1 init.d]# more /etc/rc.local #!/bin/sh## This script will be executed *after* all the other init scripts.# You can put your own initialization stuff in here if you don't# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local/sbin/modprobe hangcheck-timerraw /dev/raw/raw1 /dev/sdc1raw /dev/raw/raw2 /dev/sdc2raw /dev/raw/raw3 /dev/sdc3raw /dev/raw/raw4 /dev/sdc5raw /dev/raw/raw5 /dev/sdc6mv /dev/raw/raw1 /dev/raw/ocr1mv /dev/raw/raw2 /dev/raw/ocr2mv /dev/raw/raw3 /dev/raw/votedisk1mv /dev/raw/raw4 /dev/raw/votedisk2mv /dev/raw/raw5 /dev/raw/votedisk3

[root@rac10g1 init.d]# ls -lrt /dev/rawtotal 0crw-rw---- 1 oracle dba 162, 1 Sep 15 03:56 raw1crw-r----- 1 root dba 162, 2 Sep 15 03:57 ocr2crw-r--r-- 1 oracle dba 162, 3 Sep 15 03:57 votedisk1crw-r--r-- 1 oracle dba 162, 4 Sep 15 03:57 votedisk2crw-r--r-- 1 oracle dba 162, 5 Sep 15 03:57 votedisk3-rw-r----- 1 root dba 0 Sep 15 08:36 ocr1[root@rac10g1 init.d]# mv /dev/raw/raw1 /dev/raw/ocr1mv: overwrite `/dev/raw/ocr1'? y[root@rac10g1 init.d]# ls -lrt /dev/rawtotal 0crw-rw---- 1 oracle dba 162, 1 Sep 15 03:56 ocr1crw-r----- 1 root dba 162, 2 Sep 15 03:57 ocr2crw-r--r-- 1 oracle dba 162, 3 Sep 15 03:57 votedisk1crw-r--r-- 1 oracle dba 162, 4 Sep 15 03:57 votedisk2crw-r--r-- 1 oracle dba 162, 5 Sep 15 03:57 votedisk3

修正后再执行:

[root@rac10g1 crs]# ./root.sh WARNING: directory '/app/oracle/product' is not owned by rootWARNING: directory '/app/oracle' is not owned by rootChecking to see if Oracle CRS stack is already configured

Setting the permissions on OCR backup directorySetting up NS directoriesOracle Cluster Registry configuration upgraded successfullyWARNING: directory '/app/oracle/product' is not owned by rootWARNING: directory '/app/oracle' is not owned by rootclscfg: EXISTING configuration version 3 detected.clscfg: version 3 is 10G Release 2.assigning default hostname rac10g2 for node 1.assigning default hostname rac10g1 for node 2.Successfully accumulated necessary OCR keys.Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.node <nodenumber>: <nodename> <private interconnect name> <hostname>node 1: rac10g2 rac10g2prv rac10g2node 2: rac10g1 rac10g1prv rac10g1clscfg: Arguments check out successfully.

NO KEYS WERE WRITTEN. Supply -force parameter to override.-force is destructive and will destroy any previous clusterconfiguration.Oracle Cluster Registry for cluster has already been initializedStartup will be queued to init within 90 seconds.

相关资源:Office2016专业增强版中文免费正式版(附安装教程)64位
转载请注明原文地址: https://www.6miu.com/read-4200305.html

最新回复(0)