"rootcrs.pl -downgrade -lastnode" Fails if Current Directory Can not be Accessed by Grid User (Doc ID 1917922.1)

Last updated on SEPTEMBER 03, 2014

Applies to:

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

Symptoms

Upgraded 2-node Grid Infrastructure from 11.2.0.3 to 12.1.0.2 successfully. While downgrading, the following failed on last node(node1):

 

Screen output

# <NEW_GI_HOME>/crs/install/rootcrs.pl -downgrade -lastnode
Using configuration parameter file: /oragrid/product/12.1.0.2/crs/install/crsconfig_params
2014-08-14 12:09:03.376
CLSD: An error occurred while attempting to generate a full name. Logging may not be active for this process
Additional diagnostics: CLSU-00100: operating system function: sclsdgcwd failed with error data: -1
CLSU-00103: error location: sclsdgcwd5
(:CLSD00183:)
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'racnode1'
....
ASM downgrade operation succeeded
....
CRS-2676: Start of 'ora.asm' on 'racnode1' succeeded
sh: line 1: CLSD:: command not found
sh: line 2: Additional: command not found
sh: line 3: CLSU-00103:: command not found
sh: line 4: :CLSD00183:: command not found
sh: line 5: +FRA:/oraclust-actt03/OCRBACKUP/oraclust-actt03_backup11.2.0.3.0.ocr.1788.855076863: No such file or directory
Name:
ocrconfig - Configuration tool for Oracle Cluster/Local Registry.

Synopsis:
ocrconfig [option]
option:
[-local] -export <filename>
- Export OCR/OLR contents to a file
[-local] -import <filename> - Import OCR/OLR contents from a file
[-local] -upgrade [<user> [<group>]]
- Upgrade OCR from previous version
-downgrade [-version <version string>]
- Downgrade OCR to the specified version
[-local] -backuploc <dirname> - Configure OCR/OLR backup location
[-local] -showbackup [auto|manual] - Show OCR/OLR backup information
[-local] -manualbackup - Perform OCR/OLR backup
[-local] -restore <filename> - Restore OCR/OLR from physical backup
-replace <current filename> -replacement <new filename>
- Replace a OCR device/file <filename1> with <filename2>
-add <filename> - Add a new OCR device/file
-delete <filename> - Remove a OCR device/file
-overwrite - Overwrite OCR configuration on disk
-repair -add <filename> | -delete <filename> | -replace <current filename> -replacement <new filename>
- Repair OCR configuration on the local node
-help - Print out this help information

Note:
* A log file will be created in
$ORACLE_HOME/log/<hostname>/client/ocrconfig_<pid>.log. Please ensure you have file creation privileges in the above directory before running this tool.
* Only -local -showbackup [manual] is supported.
* Use option '-local' to indicate that the operation is to be performed on the Oracle Local Registry.

2014/08/14 12:17:28 CLSRSC-338: Successfully downgraded OCR to version 11.2.0.3.0

2014/08/14 12:17:29 CLSRSC-361: The Oracle Cluster Repository (OCR) check failed

Died at /oragrid/product/12.1.0.2/crs/install/crsdeconfig.pm line 2506.

 

<NEW_GI_HOME>/cfgtoollogs/crsconfig/rootcrs_<node>_<timestamp>.log 

2014-08-14 12:08:52: The current working directory: /root
....
2014-08-14 12:17:28: Start to restore OCR using the OCR backup file.
2014-08-14 12:17:28: leftVersion=11.2.0.3.0; rightVersion=11.2.0.3.0
2014-08-14 12:17:28: [11.2.0.3.0] is same as [11.2.0.3.0]
2014-08-14 12:17:28: OCR backup file name is 2014-08-14 12:16:05.260
CLSD: An error occurred while attempting to generate a full name. Logging may not be active for this process
Additional diagnostics: CLSU-00100: operating system function: sclsdgcwd failed with error data: -1
CLSU-00103: error location: sclsdgcwd5
(:CLSD00183:)
+FRA:/oraclust-actt03/OCRBACKUP/oraclust-actt03_backup11.2.0.3.0.ocr.1788.855076863

2014-08-14 12:17:28: leftVersion=11.2.0.3.0; rightVersion=11.2.0.3.0
2014-08-14 12:17:28: [11.2.0.3.0] is same as [11.2.0.3.0]
2014-08-14 12:17:28: Executing /oragrid/product/11.2.0.3/bin/ocrconfig -restore 2014-08-14 12:16:05.260
CLSD: An error occurred while attempting to generate a full name. Logging may not be active for this process
Additional diagnostics: CLSU-00100: operating system function: sclsdgcwd failed with error data: -1
CLSU-00103: error location: sclsdgcwd5
(:CLSD00183:)
+FRA:/oraclust-actt03/OCRBACKUP/oraclust-actt03_backup11.2.0.3.0.ocr.1788.855076863

2014-08-14 12:17:28: Executing cmd: /oragrid/product/11.2.0.3/bin/ocrconfig -restore 2014-08-14 12:16:05.260
CLSD: An error occurred while attempting to generate a full name. Logging may not be active for this process
Additional diagnostics: CLSU-00100: operating system function: sclsdgcwd failed with error data: -1
CLSU-00103: error location: sclsdgcwd5
(:CLSD00183:)
+FRA:/oraclust-actt03/OCRBACKUP/oraclust-actt03_backup11.2.0.3.0.ocr.1788.855076863

2014-08-14 12:17:28: Command output:
> Name:
> ocrconfig - Configuration tool for Oracle Cluster/Local Registry.
.... 
>End Command output
2014-08-14 12:17:28: Executing cmd: /oragrid/product/12.1.0.2/bin/clsecho -p has -f clsrsc -m 338 "11.2.0.3.0"
2014-08-14 12:17:28: Command output:
> CLSRSC-338: Successfully downgraded OCR to version 11.2.0.3.0
>End Command output
2014-08-14 12:17:28: CLSRSC-338: Successfully downgraded OCR to version 11.2.0.3.0
2014-08-14 12:17:28: Remove the local OCR backup file and the OCR backup file on shared storage
2014-08-14 12:17:28: Removing file /oragrid/product/12.1.0.2/cdata/ocr11.2.0.3.0
2014-08-14 12:17:28: Successfully removed file: /oragrid/product/12.1.0.2/cdata/ocr11.2.0.3.0
....
2014-08-14 12:17:28: Check if the OCR is properly configured
2014-08-14 12:17:28: Executing cmd: /oragrid/product/11.2.0.3/bin/ocrcheck -debug
2014-08-14 12:17:29: Command output:
> PROT-602: Failed to retrieve data from the cluster registry
> PROC-26: Error while accessing the physical storage
>
>End Command output
2014-08-14 12:17:29: checkOCR rc=255
2014-08-14 12:17:29: OCR check: failed
2014-08-14 12:17:29: Executing cmd: /oragrid/product/12.1.0.2/bin/clsecho -p has -f clsrsc -m 361
2014-08-14 12:17:29: Command output:
> CLSRSC-361: The Oracle Cluster Repository (OCR) check failed
>End Command output
2014-08-14 12:17:29: CLSRSC-361: The Oracle Cluster Repository (OCR) check failed
2014-08-14 12:17:29: ###### Begin DIE Stack Trace ######
2014-08-14 12:17:29: Package File Line Calling
2014-08-14 12:17:29: --------------- -------------------- ---- ----------
2014-08-14 12:17:29: 1: main rootcrs.pl 267 crsutils::dietrap
2014-08-14 12:17:29: 2: crsdeconfig crsdeconfig.pm 2506 main::__ANON__
2014-08-14 12:17:29: 3: crsdeconfig crsdeconfig.pm 2319 crsdeconfig::crsDowngrade_DowngradeOCR
2014-08-14 12:17:29: 4: crsdeconfig crsdeconfig.pm 328 crsdeconfig::crsDowngrade
2014-08-14 12:17:29: 5: crsdeconfig crsdeconfig.pm 210 crsdeconfig::CRSDeconfig
2014-08-14 12:17:29: 6: main rootcrs.pl 276 crsdeconfig::new
2014-08-14 12:17:29: ####### End DIE Stack Trace #######

 

 

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