Failed to upgrade Oracle Cluster Registry configuration (root. sh), clusterroot. sh

Source: Internet
Author: User

Failed to upgrade Oracle Cluster Registry configuration (root. sh), clusterroot. sh
Recently, we have installed Oracle 10g RAC on Suse 11 sp3. After installing clusterware, run/u01/app/crs/root. sh received an error message, Failed to upgrade Oracle Cluster Registry configuration because the current environment uses a multi-path, from the Oracle description, this is an Oracle Bug (4679769 ), if you have the same problem, go on to the next step.

I. Fault symptom
Suse11a:/u01/app/crs #/u01/app/crs/root. sh
WARNING: directory '/u01/app' 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
Failed to upgrade Oracle Cluster Registry configuration # error message

# When the clsfmt command is used, the following error is prompted, indicating that the value of/u01/app/crs is ORA_CRS_HOME.
Suse11a: // #/u01/app/crs/bin/clsfmt ocr/dev/raw/raw1
Clsfmt: pinned ed unexpected error 4 from skgfifi
Skgfifi: Additional information:-2
Additional information: 1073741824

# The following are specific error logs.
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,200 5 Oracle. All rights reserved.
11:52:14. 993: [OCRCONF] [2176517888] ocrconfig starts...
11:52:14. 994: [OCRCONF] [2176517888] Upgrading OCR data
11:52:15. 100: [OCRRAW] [2176517888] propriogid: 1: INVALID FORMAT
11:52:15. 101: [OCRRAW] [2176517888] ibctx: 1: ERROR: INVALID FORMAT
11:52:15. 101: [OCRRAW] [2176517888] proprinit: problem reading the bootblock or superbloc 22

11:52:15. 102: [default] [2176517888] a_init: 7! : Backend init unsuccessful: [22]
11:52:15. 102: [OCRCONF] [2176517888] Exporting OCR data to [OCRUPGRADEFILE]
11:52:15. 102: [OCRAPI] [2176517888] a_init: 7! : Backend init unsuccessful: [33]
11:52:15. 102: [OCRCONF] [2176517888] There was no previous version of OCR. error: [PROC-33: Oracle Cluster Registry is not configured]
11:52:15. 108: [OCRRAW] [2176517888] propriogid: 1: INVALID FORMAT
11:52:15. 108: [OCRRAW] [2176517888] ibctx: 1: ERROR: INVALID FORMAT
11:52:15. 108: [OCRRAW] [2176517888] proprinit: problem reading the bootblock or superbloc 22

11:52:15. 108: [default] [2176517888] a_init: 7! : Backend init unsuccessful: [22]
11:52:15. 113: [OCRRAW] [2176517888] propriogid: 1: INVALID FORMAT
11:52:15. 113: [OCRRAW] [2176517888] ibctx: 1: ERROR: INVALID FORMAT
11:52:15. 113: [OCRRAW] [2176517888] proprinit: problem reading the bootblock or superbloc 22

11:52:15. 118: [OCRRAW] [2176517888] propriogid: 1: INVALID FORMAT
11:52:15. 126: [OCRRAW] [2176517888] propriowv: Vote information on disk 0 [/dev/raw/raw1] is adjusted from [0/0] to [2/2]
11:52:15. 137: [OCRRAW] [2176517888] propriniconfig: No 92 configuration
11:52:15. 137: [OCRAPI] [2176517888] a_init: 6a: Backend init successful
11:52:15. 165: [OCRCONF] [2176517888] Initialized DATABASE keys in OCR
11:52:15. 176: [OCRCONF] [2176517888] csetskgfrblock0: clsfmt returned with error [4].
11:52:15. 176: [OCRCONF] [2176517888] Failure in setting block0 [-1]
11:52:15. 176: [OCRCONF] [2176517888] OCR block 0 is not set!
11:52:15. 176: [OCRCONF] [2176517888] Exiting [status = failed]...

Ii. troubleshooting
# Because this fault is a Bug generated when multiple paths are used, you can directly solve it by referring to DocID 466673.1.
# The following steps are taken after the patch 4679769 is downloaded

Suse11a:/robin # unzip p4679769_10201_Linux-x86-64.zip # unzip the patch
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 # overwrite the original file (note that this operation can only be performed on the installation node)
Suse11a:/robin # chmod 755/u01/app/crs/bin/clsfmt. bin # grant permissions
Suse11a:/robin #/u01/app/crs/bin/clsfmt. bin ocr/dev/raw/raw1 # Use clsfmt. bin to verify success
# Author: Leshami
# Blog: http://blog.csdn.net/leshami

# Run the dd command to clear the ocr and votingdisk disks (the current size of the two bare devices is 1 GB)
# Note that dd is required; otherwise, root. sh will still fail.
Suse11a :~ # Dd if =/dev/zero of =/dev/raw/raw1 bs = 1024 k 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 = 1024 k count = 800
800 + 0 records in
800 + 0 records out
838860800 bytes (839 MB) copied, 3.21852 s, 261 MB/s

# Use clsfmt. bin again to verify success
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

# Self-built root. sh again
Suse11a:/robin #/u01/app/crs/root. sh

Iii. DocID 466673.1
Applies:

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 is 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 be tracked down to clsfmt command:

./Clsfmt ocr/dev/raw/raw1
Clsfmt: pinned ed unexpected error 4 from skgfifi
Skgfifi: Additional information:-2
Additional information: 1000718336

CHANGES

It has been found that the following changes can cause this problem to occur:

1. Use Mutiple Path (MP) disk configuration, may hit this issue.
2. Use EMC device (powerpath **) may hit this issue.

But it was not confirmed that these are the only things that can cause this problem to occur, as it has been found that on other hardware and configuration the problem might occur, the key change in this issue is that if the disk size presented from the storage to the cluster nodes are not dividable by 4 K the problem shocould occur.

CAUSE

This issue is addressed in Bug: 4679769 which states that this is a known issue with the clusterware installation on platforms: Linux x86, x86-64 and "IBM Power Based Linux ".

SOLUTION

Before running the root. sh on the first node in 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 be replaced on the 1st node of 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 are correct:
#
# % Chmod 755 $ ORACLE_HOME/bin/clsfmt. bin

3. Run the root. sh script and proceed with the installation.



The expert instructed me to install ORACLE 11g rac and finally executed the rootsh script on the two nodes to report an error solution. I am grateful for the solution.

The cluster is not successfully installed!
The ora. crsd component is not started!

Pay attention to your partition during installation

After reinstalling the backup partition, you must format it again!

Otherwise, the grid component fails to be installed.

Obviously, your cluster fails to be installed.

Run
Tail-500/u01/app/11.2.0/grid/export toollogs/crsconfig/rootcrs_rac1.log

Post information

What is Oracle Cluster Registry?

Cluster Registry (Oracle Cluster Registry: OCR): maintains the Cluster configuration information and the configuration information of any Cluster database in the Cluster. OCR also manages information about processes controlled by Oracle Clusterware. OCR stores configuration information in a key-value Pair in a directory tree structure ). OCR must be located in the shared disk that all nodes in the cluster can access at the same time. Oracle Clusterware can use multiple OCR (multiplex or multiplexing ). Oracle recommends using this feature to ensure high availability. You can replace a faulty OCR when going online. You can update OCR by using supported APIs (such as Enterprise Manager, srvctl, and dbca.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.