GI root.sh "PROT-1: Failed to initialize ocrconfig" due to existing OCR (Doc ID 2158865.1)

Last updated on JULY 15, 2016

Applies to:

Oracle Database - Enterprise Edition - Version 12.1.0.2 and later
Information in this document applies to any platform.

Symptoms

Grid Infrastructure root.sh fails: 

PROT-1: Failed to initialize ocrconfig
PROC-26: Error while accessing the physical storage
2016/07/06 19:13:51 CLSRSC-157: Failed to create Oracle Cluster Registry configuration

2016/07/06 19:13:52 CLSRSC-259: Oracle Clusterware Repository configuration failed

Died at /local0/app/12.1.0/grid/crs/install/crsinstall.pm line 2024.

From the trace rootcrs_<node>_2016-07-06_07-09-43PM.log

2016-07-06 19:13:50: Creating or upgrading OCR keys
2016-07-06 19:13:50: Executing /local0/app/12.1.0/grid/bin/ocrconfig -upgrade grid oinstall
2016-07-06 19:13:50: Executing cmd: /local0/app/12.1.0/grid/bin/ocrconfig -upgrade grid oinstall
2016-07-06 19:13:51: Command output:
> PROT-1: Failed to initialize ocrconfig
> PROC-26: Error while accessing the physical storage
>End Command output
2016-07-06 19:13:51: ocrconfig -upgrade failed with status 255
2016-07-06 19:13:51: Executing cmd: /local0/app/12.1.0/grid/bin/clsecho -p has -f clsrsc -m 157
2016-07-06 19:13:51: Command output:
> CLSRSC-157: Failed to create Oracle Cluster Registry configuration
>End Command output
2016-07-06 19:13:51: Executing cmd: /local0/app/12.1.0/grid/bin/clsecho -p has -f clsrsc -m 157
2016-07-06 19:13:51: Command output:
> CLSRSC-157: Failed to create Oracle Cluster Registry configuration
>End Command output
2016-07-06 19:13:51: CLSRSC-157: Failed to create Oracle Cluster Registry configuration

Trace ocrconfig_12067.trc

2016-07-06 19:13:50.959343 : default: a_init:7!: Backend init unsuccessful : [26]
2016-07-06 19:13:50.959809 : OCRCONF: OCR is not in latest version. Upgrade is required.
2016-07-06 19:13:50.959884 : OCRCONF: Exporting OCR data to [OCRUPGRADEFILE]
2016-07-06 19:13:51.011873 : OCRAPI: a_init:7!: Backend init unsuccessful : [33]
2016-07-06 19:13:51.012240 : OCRCONF: There was no previous version of OCR. error:[PROC-33: Oracle Cluster Registry is not configured]
2016-07-06 19:13:51.012330 : OCRCONF: Verifying if OCR is already in latest version.
2016-07-06 19:13:51.012330*:kgfn.c@1868: kgfnEnvCreateInt: env=0xffffffff7ffea8d8 gp=0x10059c658 heap=0x1005a6108
ocienv0=0x10059c010 skgp=0x0 trclvl=2 flags=0x10 tag=0xffffffee
2016-07-06 19:13:51.012330*:kgfn.c@1979: kgfnEnvCreate: UTS tracing
2016-07-06 19:13:51.065057 : OCRRAW: kgfnInitEnv env=ffffffff7ffea8d8 flags=0x0

2016-07-06 19:13:51.065057*:kgfn.c@1728: kgfnInitEnv: env=0xffffffff7ffea8d8 flags=0x0
2016-07-06 19:13:51.106898 : GPNP: clsgpnp_dbmsGetItem_profile: [at clsgpnp_dbms.c:345] Result: (0) CLSGPNP_OK. (:GPNP00401:)got ASM-Profile.Mode='legacy'
2016-07-06 19:13:51.155093 : GPNP: clsgpnp_dbmsGetItem_profile: [at clsgpnp_dbms.c:345] Result: (0) CLSGPNP_OK. (:GPNP00401:)got ASM-Profile.Mode='legacy'
2016-07-06 19:13:51.284920 : OCRRAW: utiid:problem validating header for owner db phy_addr=0
2016-07-06 19:13:51.285043 : OCRRAW: proprinit:problem reading the bootblock or superbloc 26

2016-07-06 19:13:51.289677 : default: a_init:7!: Backend init unsuccessful : [26]
2016-07-06 19:13:51.290062 : OCRCONF: OCR was not previously formatted. OCRCONFIG will now attempt to format OCR.
2016-07-06 19:13:51.290062*:kgfn.c@1868: kgfnEnvCreateInt: env=0xffffffff7ffea8d8 gp=0x10059c658 heap=0x1005a6108
ocienv0=0x10059c010 skgp=0x0 trclvl=2 flags=0x10 tag=0xffffffee
2016-07-06 19:13:51.290062*:kgfn.c@1979: kgfnEnvCreate: UTS tracing
2016-07-06 19:13:51.343367 : OCRRAW: kgfnInitEnv env=ffffffff7ffea8d8 flags=0x0

2016-07-06 19:13:51.343367*:kgfn.c@1728: kgfnInitEnv: env=0xffffffff7ffea8d8 flags=0x0
2016-07-06 19:13:51.380729 : GPNP: clsgpnp_dbmsGetItem_profile: [at clsgpnp_dbms.c:345] Result: (0) CLSGPNP_OK. (:GPNP00401:)got ASM-Profile.Mode='legacy'
2016-07-06 19:13:51.428345 : GPNP: clsgpnp_dbmsGetItem_profile: [at clsgpnp_dbms.c:345] Result: (0) CLSGPNP_OK. (:GPNP00401:)got ASM-Profile.Mode='legacy'
2016-07-06 19:13:51.562684 : OCRRAW: utiid:problem validating header for owner db phy_addr=0
2016-07-06 19:13:51.562848 : OCRRAW: proprinit:problem reading the bootblock or superbloc 26

2016-07-06 19:13:51.566950 : OCRAPI: a_init:6b!: Backend init unsuccessful : [26]
2016-07-06 19:13:51.567313 : OCRCONF: Failed to initialize OCR context. Error:[PROC-26: Error while accessing the physical storage]
2016-07-06 19:13:51.567617 : OCRCONF: Exiting [status=failed]...

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms