具体报错如下:

[root@node1 install]# /u01/app/10g/grid/root.sh 
WARNING: directory '/u01/app/10g' is not owned by root
WARNING: directory '/u01/app' is not owned by root
WARNING: directory '/u01' 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/10g' is not owned by root
WARNING: directory '/u01/app' is not owned by root
WARNING: directory '/u01' 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: node1 node1-priv node1
node 2: node2 node2-priv node2
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
Now formatting voting device: /dev/raw/raw2
Format of 1 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.
Failure at final check of Oracle CRS stack.
10
[root@node1 install]# 

该错误相关的后台日志为:

[root@node1 node1]# pwd
/u01/app/10g/grid/log/node1
[root@node1 node1]# ls
admin  alertnode1.log  client  crsd  cssd  evmd  racg
[root@node1 node1]# 
[root@node1 node1]# cat alertnode1.log 
2015-04-25 22:56:17.862
[client(4563)]CRS-1006:The OCR location /dev/raw/raw1 is inaccessible. Details in /u01/app/10g/grid/log/node1/client/ocrconfig_4563.log.
2015-04-25 22:56:17.871
[client(4563)]CRS-1006:The OCR location /dev/raw/raw1 is inaccessible. Details in /u01/app/10g/grid/log/node1/client/ocrconfig_4563.log.
2015-04-25 22:56:17.880
[client(4563)]CRS-1006:The OCR location /dev/raw/raw1 is inaccessible. Details in /u01/app/10g/grid/log/node1/client/ocrconfig_4563.log.
2015-04-25 22:56:17.917
[client(4563)]CRS-1001:The OCR was formatted using version 2.
2015-04-25 22:59:25.937
[client(4613)]CRS-1801:Cluster crs configured with nodes node1 node2 .
2015-04-25 23:36:26.437
[client(5156)]CRS-1006:The OCR location /dev/raw/raw1 is inaccessible. Details in /u01/app/10g/grid/log/node1/client/ocrconfig_5156.log.
2015-04-25 23:36:26.449
[client(5156)]CRS-1006:The OCR location /dev/raw/raw1 is inaccessible. Details in /u01/app/10g/grid/log/node1/client/ocrconfig_5156.log.
2015-04-25 23:36:26.458
[client(5156)]CRS-1006:The OCR location /dev/raw/raw1 is inaccessible. Details in /u01/app/10g/grid/log/node1/client/ocrconfig_5156.log.
2015-04-25 23:36:26.516
[client(5156)]CRS-1001:The OCR was formatted using version 2.
2015-04-25 23:39:28.846
[client(5206)]CRS-1801:Cluster crs configured with nodes node1 node2 .
[root@node1 node1]# 
[root@node1 node1]# cat /u01/app/10g/grid/log/node1/client/ocrconfig_5156.log
Oracle Database 10g CRS Release 10.2.0.1.0 Production Copyright 1996, 2005 Oracle.  All rights reserved.
2015-04-25 23:36:26.428: [ OCRCONF][417421056]ocrconfig starts...
2015-04-25 23:36:26.428: [ OCRCONF][417421056]Upgrading OCR data
2015-04-25 23:36:26.437: [  OCRRAW][417421056]propriogid:1: INVALID FORMAT
2015-04-25 23:36:26.437: [  OCRRAW][417421056]ibctx:1:ERROR: INVALID FORMAT
2015-04-25 23:36:26.437: [  OCRRAW][417421056]proprinit:problem reading the bootblock or superbloc 22

2015-04-25 23:36:26.438: [ default][417421056]a_init:7!: Backend init unsuccessful : [22]
2015-04-25 23:36:26.438: [ OCRCONF][417421056]Exporting OCR data to [OCRUPGRADEFILE]
2015-04-25 23:36:26.438: [  OCRAPI][417421056]a_init:7!: Backend init unsuccessful : [33]
2015-04-25 23:36:26.438: [ OCRCONF][417421056]There was no previous version of OCR. error:[PROC-33: Oracle Cluster Registry is not configured]
2015-04-25 23:36:26.448: [  OCRRAW][417421056]propriogid:1: INVALID FORMAT
2015-04-25 23:36:26.449: [  OCRRAW][417421056]ibctx:1:ERROR: INVALID FORMAT
2015-04-25 23:36:26.449: [  OCRRAW][417421056]proprinit:problem reading the bootblock or superbloc 22

2015-04-25 23:36:26.449: [ default][417421056]a_init:7!: Backend init unsuccessful : [22]
2015-04-25 23:36:26.457: [  OCRRAW][417421056]propriogid:1: INVALID FORMAT
2015-04-25 23:36:26.458: [  OCRRAW][417421056]ibctx:1:ERROR: INVALID FORMAT
2015-04-25 23:36:26.458: [  OCRRAW][417421056]proprinit:problem reading the bootblock or superbloc 22

2015-04-25 23:36:26.468: [  OCRRAW][417421056]propriogid:1: INVALID FORMAT
2015-04-25 23:36:26.493: [  OCRRAW][417421056]propriowv: Vote information on disk 0 [/dev/raw/raw1] is adjusted from [0/0] to [2/2]
2015-04-25 23:36:26.516: [  OCRRAW][417421056]propriniconfig:No 92 configuration
2015-04-25 23:36:26.516: [  OCRAPI][417421056]a_init:6a: Backend init successful
2015-04-25 23:36:26.953: [ OCRCONF][417421056]Initialized DATABASE keys in OCR
2015-04-25 23:36:27.057: [ OCRCONF][417421056]Successfully set skgfr block 0
2015-04-25 23:36:27.057: [ OCRCONF][417421056]Exiting [status=success]...
[root@node1 node1]# 
[root@node1 node1]# 

该错误为Oracle的Bug。
需要打上补丁:Patch:4679769

Oracle官方(My Oracle Support)的说明文档:
Executing root.sh errors with “Failed To Upgrade Oracle Cluster Registry Configuration” (文档 ID 466673.1)

具体如下:

[grid@node1 software]$ ls
clusterware  p4679769_10201_Linux-x86-64.zip
[grid@node1 software]$ unzip p4679769_10201_Linux-x86-64.zip 
Archive:  p4679769_10201_Linux-x86-64.zip
   creating: 4679769/
  inflating: 4679769/README.txt      
  inflating: 4679769/clsfmt.bin      
[grid@node1 software]$ ls
4679769  clusterware  p4679769_10201_Linux-x86-64.zip
[grid@node1 software]$ 
[grid@node1 4679769]$ cat README.txt 
# 
#  WARNING: Failure to carefully read and understand these requirements may
#  result in your applying a patch that can cause  your Oracle Server to
#  malfunction, including interruption of service and/or loss of data. 
# 
#  If you do not meet all of the following requirements, please log an
#  iTAR, so that an Oracle Support Analyst may review your situation. The
#  Oracle analyst will help you determine if this patch is suitable for you
#  to apply to your system. We recommend that you avoid applying any
#  temporary patch unless directed by an Oracle Support Analyst who has
#  reviewed your system and determined that it is applicable. 
# 
#  Requirements: 
# 
#    - You must have located this patch via a Bug Database entry
#      and have the exact symptoms described in the bug entry. 
# 
#    - Your system configuration (Oracle Server version and patch
#      level, OS Version) must exactly match those in the bug
#      database entry - You must have NO OTHER PATCHES installed on
#      your Oracle Server since the latest patch set (or base release
#      x.y.z if you have no patch sets installed).
# 
#    - [Oracle 9.2.0.2 & above] You must have Perl 5.00503 (or later)
#      installed under the ORACLE_HOME, or elsewhere within the host
#      environment. OPatch is no longer included in patches as of 9.2.0.2.
#      Refer to the following link for details on Perl and OPatch:
#      http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=189489.1
# 
#    - [IBM AIX O/S & Java patches for Oracle 9.2] 
#      In order to apply java class updates to IBM AIX based systems using 
#      java_131, you must update your java if you are running a version prior 
#      to Service Refresh build date 20030630a. This is 
#      necessary to fix IBM Defect#60472. 
# 
#      To identify which java build date you are on, enter the following 
#      command ; 
# 
#      > $ORACLE_HOME/jdk/bin/java -fullversion 
#      ... example response ... 
#      java full version "J2RE 1.3.1 IBM AIX build ca131-20030630a" 
# 
#      The string ends in the date format YYYYMMDD or YYYYMMDDa where 'a' 
#      indicates an updated release to the original build. You should always 
#      apply the latest AIX Java SDK 1.3.1  Service Update available from IBM. 
#      As a minimum, the above service refresh can be found under 
#      APAR IY47055. The signature for the updated JVM is ca131-20030630a. 
#      Information on the latest available fixes, as well as how to apply 
#      the APARs to your AIX systems, is available at the IBM Java site.
# 
#      If you are running AIX 5L, you can safely ignore any comment against
#      the APAR that says (AIXV43 only). The APAR is applicable to 
#      both AIX 4.3 and AIX 5L. 
# 
#      Once you have updated your java installation you need to copy these 
#      updated files to Oracle's copies in $ORACLE_HOME/jdk. 
#      As the Oracle owner, simply issue the following commands; 
# 
#      > cd /usr/java131 
#      > cp -fpR * $ORACLE_HOME/jdk 
# 
#
#  If you do NOT meet these requirements, or are not certain that you meet
#  these requirements, please log an iTAR requesting assistance with this
#  patch and Support will make a determination about whether you should
#  apply this patch. 
# 
#-------------------------------------------------------------------------
#  Interim Patch for Base Bug:  4679769
#-------------------------------------------------------------------------
#
#  DATE:  November 9th 2005
#  ------------------------
#  Platform Patch for : Linux x86-64 (AMD64/EM64T) 
#  Product Version #  : 10.2.0.1
#  Product Patched    : RDBMS/RAC
#
#  Patch Installation Instructions:
#  --------------------------------
#  To apply the patch, unzip the PSE container file:
#
#  p4679769_10201_Linux-x86-64.zip
#
#  Set your current directory to the directory where the patch
#  is located:
#
#    % cd 4679769
#
#  Copy the clsfmt.bin binary to the $ORACLE_HOME/bin directory where
#  clsfmt is being run:
#
#    % cp $ORACLE_HOME/bin/clsfmt.bin $ORACLE_HOME/bin/clsfmt.bin.bak
#    % cp clsfmt.bin $ORACLE_HOME/bin/clsfmt.bin
#
#  Ensure permissions on the clsfmt.bin binary are correct:
#
#    % chmod 755 $ORACLE_HOME/bin/clsfmt.bin
#
[grid@node1 4679769]$ 
[grid@node1 4679769]$ cp $ORACLE_HOME/bin/clsfmt.bin $ORACLE_HOME/bin/clsfmt.bin.bak
[grid@node1 4679769]$ cp clsfmt.bin $ORACLE_HOME/bin/clsfmt.bin
[grid@node1 4679769]$ chmod 755 $ORACLE_HOME/bin/clsfmt.bin
[grid@node1 4679769]$ 

然后,执行root.sh(如果已经执行过,需要在二次执行前,用dd清空OCR):

[root@node1 ~]# /u01/app/10g/grid/root.sh
WARNING: directory '/u01/app/10g' is not owned by root
WARNING: directory '/u01/app' is not owned by root
WARNING: directory '/u01' is not owned by root
Checking to see if Oracle CRS stack is already configured
/etc/oracle does not exist. Creating it now.

Setting the permissions on OCR backup directory
Setting up NS directories
Oracle Cluster Registry configuration upgraded successfully
WARNING: directory '/u01/app/10g' is not owned by root
WARNING: directory '/u01/app' is not owned by root
WARNING: directory '/u01' is not owned by root
Successfully accumulated necessary OCR keys.
Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
node :   
node 1: node1 node1-priv node1
node 2: node2 node2-priv node2
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
Now formatting voting device: /dev/raw/raw2
Format of 1 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.
        node1
CSS is inactive on these nodes.
        node2
Local node checking complete.
Run root.sh on remaining nodes to start CRS daemons.
[root@node1 ~]# 

这样,就没问题了。
————————————————————————————
Done。

说点什么

avatar

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据

  Subscribe  
提醒