Failed to upgrade Oracle Cluster Registry configuration

安装10gR2 RAC,安装clusterware的时候,执行脚本root.sh报错:

[root@rac1 product]# /u01/app/oracle/product/10.2.0/db_1/root.sh 
Checking to see if Oracle CRS stack is already configured

Setting the permissions on OCR backup directory
Setting up NS directories
Failed to upgrade Oracle Cluster Registry configuration

466673.1


[root@rac1 product]# cd /u01/app/oracle/product/10.2.0/db_1/bin
[root@rac1 bin]# ./clsfmt ocr /dev/raw/raw1
clsfmt: Received unexpected error 4 from skgfifi
skgfifi: Additional information: -2
Additional information: 1073741824


下载补丁程序并在节点一部署:

补丁程序4679769: FAILED TO FORMAT OCR DISK USING EMC POWERPATH
		
	 

[root@rac1 4679769]# su - oracle
[oracle@rac1 ~]$ cd /opt/bug/4679769/
[oracle@rac1 4679769]$ cp $ORACLE_HOME/bin/clsfmt.bin $ORACLE_HOME/bin/clsfmt.bin.bak
[oracle@rac1 4679769]$ cp clsfmt.bin $ORACLE_HOME/bin/clsfmt.bin
[oracle@rac1 ~]$ chmod 755 $ORACLE_HOME/bin/clsfmt.bin

再次执行还是报错:

[root@rac1 4679769]# /u01/app/oracle/product/10.2.0/db_1/root.sh
WARNING: directory '/u01/app/oracle/product/10.2.0' is not owned by root
WARNING: directory '/u01/app/oracle/product' is not owned by root
WARNING: directory '/u01/app/oracle' is not owned by root
Checking to see if Oracle CRS stack is already configured

Setting the permissions on OCR backup directory
Setting up NS directories
Failed to upgrade Oracle Cluster Registry configuration
[root@rac1 4679769]# cd
[root@rac1 ~]#  cd /u01/app/oracle/product/10.2.0/db_1/bin
[root@rac1 bin]# ./clsfmt ocr /dev/raw/raw1
clsfmt: successfully initialized file /dev/raw/raw1

检查日志:

Oracle Database 10g CRS Release 10.2.0.1.0 Production Copyright 1996, 2005 Oracl
e.  All rights reserved.
2015-12-19 15:27:34.462: [ OCRCONF][537025408]ocrconfig starts...
2015-12-19 15:27:34.463: [ OCRCONF][537025408]Upgrading OCR data
2015-12-19 15:27:34.837: [ OCRCONF][537025408]OCR already in current version.
2015-12-19 15:27:34.871: [ OCRCONF][537025408]Failed to call clsssinit (21)
2015-12-19 15:27:34.871: [ OCRCONF][537025408]Failed to make a backup copy of OC
R
2015-12-19 15:27:34.871: [ OCRCONF][537025408]Exiting [status=failed]...

清一下ocr等磁盘

[root@rac1 client]# dd if=/dev/zero of=/dev/raw/raw1 bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 10.8194 seconds, 99.2 MB/s
[root@rac1 client]# dd if=/dev/zero of=/dev/raw/raw2 bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 11.7409 seconds, 91.5 MB/s
[root@rac1 client]# dd if=/dev/zero of=/dev/raw/raw3 bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 9.81996 seconds, 109 MB/s
[root@rac1 client]# dd if=/dev/zero of=/dev/raw/raw4 bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 10.6041 seconds, 101 MB/s
[root@rac1 client]# dd if=/dev/zero of=/dev/raw/raw5 bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 10.8144 seconds, 99.3 MB/s
[root@rac1 client]# dd if=/dev/zero of=/dev/raw/raw6 bs=1M count=2048
2048+0 records in
2048+0 records out
2147483648 bytes (2.1 GB) copied, 21.5431 seconds, 99.7 MB/s
[root@rac1 client]# dd if=/dev/zero of=/dev/raw/raw6 bs=1M count=3072
dd: writing `/dev/raw/raw6': No space left on device
2049+0 records in
2048+0 records out
2147483648 bytes (2.1 GB) copied, 20.6082 seconds, 104 MB/s

[root@rac1 client]# /u01/app/oracle/product/10.2.0/db_1/root.sh
WARNING: directory '/u01/app/oracle/product/10.2.0' is not owned by root
WARNING: directory '/u01/app/oracle/product' is not owned by root
WARNING: directory '/u01/app/oracle' is not owned by root
Checking to see if Oracle CRS stack is already configured

Setting the permissions on OCR backup directory
Setting up NS directories
Oracle Cluster Registry configuration upgraded successfully
WARNING: directory '/u01/app/oracle/product/10.2.0' is not owned by root
WARNING: directory '/u01/app/oracle/product' is not owned by root
WARNING: directory '/u01/app/oracle' is not owned by root
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: rac1 rac1-priv rac1
node 2: rac2 rac2-priv rac2
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
Now formatting voting device: /dev/raw/raw3
Now formatting voting device: /dev/raw/raw4
Now formatting voting device: /dev/raw/raw5
Format of 3 voting devices complete.
Startup will be queued to init within 90 seconds.
Adding daemons to inittab
Expecting the CRS daemons to be up within 600 seconds.
CSS is active on these nodes.
        rac1
CSS is inactive on these nodes.
        rac2
Local node checking complete.
Run root.sh on remaining nodes to start CRS daemons.

搞定!!

但是在节点2执行root.sh脚本的时候又报错了:

/u01/app/oracle/product/10.2.0/db_1/jdk/jre/bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory

但是再次重新执行一次的时候:

[root@rac2 client]#  /u01/app/oracle/product/10.2.0/db_1/root.sh
WARNING: directory '/u01/app/oracle/product/10.2.0' is not owned by root
WARNING: directory '/u01/app/oracle/product' is not owned by root
WARNING: directory '/u01/app/oracle' is not owned by root
Checking to see if Oracle CRS stack is already configured
Oracle CRS stack is already configured and will be running under init(1M)

好吧,那就继续安装,看看后续会有什么问题。

发现,是vip配置问题。忽略了上面的问题,会出现vip配置的问题。

解决:

运行vipca,但是报错:

/u01/app/oracle/product/10.2.0/db_1/jdk/jre/bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory

修改vipca

set nu 在第 120 行左右的 IF 语句之后,添加一条 unset 命令,从而确保 LD_ASSUME_KERNEL 未经过设置,

if [ "$arch" = "i686" -o "$arch" = "ia64" ]
then
LD_ASSUME_KERNEL=2.4.19
export LD_ASSUME_KERNEL
unset LD_ASSUME_KERNEL
fi

执行vipca成功。



你可能感兴趣的:(TO,failed,upgrade,or)