In the near future, install Oracle 10g RAC on the customer based on SuSE SP3, and receive an error message when the Clusterware runs/u01/app/crs/root.sh is installed. Failed to upgrade Oracle Cluster Registry configuration because the current environment uses multipathing, as described in Oracle's descriptive narrative. This is an Oracle Bug (4679769), so if you have the same problem, go ahead and look down.
first, the phenomenon of fault
Suse11a:/u01/app/crs #/u01/app/crs/root.sh
Warning:directory '/u01/app ' isn't owned by root
Checking to see if the 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
Failed to upgrade Oracle Cluster Registry configuration#此处为错误提示
#以下使用clsfmt命令时提示Received Unexpected error. Note. /u01/app/crs for Ora_crs_home.
suse11a:/#/u01/app/crs/bin/clsfmt OCR/DEV/RAW/RAW1
Clsfmt:received unexpected error 4 from Skgfifi
Skgfifi:additional Information:-2
Additional information:1073741824
#以下是详细的错误日志
Suse11a:/u01/app/crs/log/suse11a/client # pwd
/u01/app/crs/log/suse11a/client
Suse11a:/u01/app/crs/log/suse11a/client # more Ocrconfig_24066.log
Oracle Database 10g CRS Release 10.2.0.1.0 Production Copyright 1996, 2005 Oracle. All rights reserved.
2014-08-11 11:52:14.993: [Ocrconf][2176517888]ocrconfig starts ...
2014-08-11 11:52:14.994: [ocrconf][2176517888]upgrading OCR data
2014-08-11 11:52:15.100: [ocrraw][2176517888]propriogid:1: INVALID FORMAT
2014-08-11 11:52:15.101: [Ocrraw][2176517888]ibctx:1:error:invalid FORMAT
2014-08-11 11:52:15.101: [Ocrraw][2176517888]proprinit:problem reading the bootblock or Superbloc 22
2014-08-11 11:52:15.102: [default][2176517888]a_init:7!: Backend init unsuccessful: [22]
2014-08-11 11:52:15.102: [ocrconf][2176517888]exporting OCR data to [Ocrupgradefile]
2014-08-11 11:52:15.102: [ocrapi][2176517888]a_init:7!: Backend init unsuccessful: [33]
2014-08-11 11:52:15.102: [Ocrconf][2176517888]there was no previous version of OCR. Error:[proc-33:oracle Cluster Registry is not configured]
2014-08-11 11:52:15.108: [ocrraw][2176517888]propriogid:1: INVALID FORMAT
2014-08-11 11:52:15.108: [Ocrraw][2176517888]ibctx:1:error:invalid FORMAT
2014-08-11 11:52:15.108: [Ocrraw][2176517888]proprinit:problem reading the bootblock or Superbloc 22
2014-08-11 11:52:15.108: [default][2176517888]a_init:7!: Backend init unsuccessful: [22]
2014-08-11 11:52:15.113: [ocrraw][2176517888]propriogid:1: INVALID FORMAT
2014-08-11 11:52:15.113: [Ocrraw][2176517888]ibctx:1:error:invalid FORMAT
2014-08-11 11:52:15.113: [Ocrraw][2176517888]proprinit:problem reading the bootblock or Superbloc 22
2014-08-11 11:52:15.118: [ocrraw][2176517888]propriogid:1: INVALID FORMAT
2014-08-11 11:52:15.126: [ocrraw][2176517888]propriowv:vote information on Disk 0 [/DEV/RAW/RAW1] was adjusted from [0/0 ] to [2/2]
2014-08-11 11:52:15.137: [Ocrraw][2176517888]propriniconfig:no Configuration
2014-08-11 11:52:15.137: [ocrapi][2176517888]a_init:6a:backend init successful
2014-08-11 11:52:15.165: [ocrconf][2176517888]initialized DATABASE keys in OCR
2014-08-11 11:52:15.176: [ocrconf][2176517888]csetskgfrblock0:clsfmt returned with error [4].
2014-08-11 11:52:15.176: [Ocrconf][2176517888]failure in setting Block0 [-1]
2014-08-11 11:52:15.176: [OCRCONF][2176517888]OCR block 0 is not set!
2014-08-11 11:52:15.176: [ocrconf][2176517888]exiting [status=failed] ...
second, solve the problem
#因为该故障是使用多路径时产生的一个Bug. So direct reference docid 466673.1 to solve
#以下是下载补丁4679769之后步骤
Suse11a:/robin # Unzip P4679769_10201_linux-x86-64.zip#解压补丁
Archive:p4679769_10201_linux-x86-64.zip
creating:4679769/
Inflating:4679769/readme.txt
Inflating:4679769/clsfmt.bin
Suse11a:/robin # Cp/u01/app/crs/bin/clsfmt.bin/u01/app/crs/bin/clsfmt.bin.bak
Suse11a:/robin # CP./4679769/clsfmt.bin/u01/app/crs/bin/clsfmt.bin#覆盖原文件 (Note that the operation is only possible if the installation node is running)
Suse11a:/robin # chmod 755/u01/app/crs/bin/clsfmt.bin#授予权限
Suse11a:/robin #/u01/app/crs/bin/clsfmt.bin OCR/DEV/RAW/RAW1#使用clsfmt. Bin validation succeeded
# Author:leshami
# Blog:Http://blog.csdn.net/leshami
#以下使用dd命令清除ocr with Votingdisk disk (current 2 bare device size is 1G)
#注意一定要dd, or root.sh still not succeed.
suse11a:~ # dd If=/dev/zero of=/dev/raw/raw1 bs=1024k count=800
800+0 Records in
800+0 Records out
838860800 bytes (839 MB) copied, 2.64104 s, 318 MB/s
suse11a:~ # dd If=/dev/zero of=/dev/raw/raw2 bs=1024k count=800
800+0 Records in
800+0 Records out
838860800 bytes (839 MB) copied, 3.21852 s, 261 MB/s
#再次使用clsfmt. Bin validation succeeded
clsfmt:successfully initialized FILE/DEV/RAW/RAW1
Suse11a:/robin #/u01/app/crs/bin/clsfmt.bin OCR/DEV/RAW/RAW2
clsfmt:successfully initialized FILE/DEV/RAW/RAW2
#再次自行root. SH Success
Suse11a:/robin #/u01/app/crs/root.sh
third, DocID 466673.1
Applies To:
Oracle database-enterprise edition-version 10.2.0.1 and later
Linux x86
Ibm:linux on POWER Systems
Linux x86-64
Linux Itanium
Checked for relevance on 11-mar-2013***
Symptoms
On a new Clusterware installation on Linux root.sh script are failing with the following error while running root.sh on the First node:
PROT-1: Failed to initialize Ocrconfig
Failed to upgrade Oracle Cluster Registry configuration
The problem can tracked down to clsfmt command:
./clsfmt OCR/DEV/RAW/RAW1
Clsfmt:received unexpected error 4 from Skgfifi
Skgfifi:additional Information:-2
Additional information:1000718336
Changes
It has been found so the following changes can cause this problem to occur:
1. Use mutiple Path (MP) disk configuration, may hits this issue.
2. Use the EMC device (powerpath**) may hits this issue.
But it wasn't confirmed that these is the only things that can cause this problem to occur, as it had been found that on Other hardware and configuration The problem might occur, the key change in this issue is if the disk size presented From the storage to the cluster nodes is not dividable by 4K the problem should occur.
Cause
This issue are addressed in bug:4679769 which states, that's a known issue with the Clusterware installation on PLATFO Rms:linux x86, x86-64 and "IBM Power Based Linux".
Solution
Before running the root.sh on the first node of the cluster do the following:
1. Download patch:4679769 from Metalink (contains a patched version of Clsfmt.bin).
2. Do the following steps as stated in the patch README to fix the problem:
Note:clsfmt.bin need only being replaced on the 1st node of the the cluster
# Patch Installation Instructions:
# --------------------------------
# to apply the patch, unzip the PSE container file:
#
# P4679769_10201_linux.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 is correct:
#
#% chmod 755 $ORACLE _home/bin/clsfmt.bin
3. Run the root.sh script and proceed with the installation.
Failed to upgrade Oracle Cluster Registry configuration (root.sh)