Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3127113
  • 博文数量: 710
  • 博客积分: 14546
  • 博客等级: 上将
  • 技术积分: 6738
  • 用 户 组: 普通用户
  • 注册时间: 2007-03-30 10:20
文章分类

全部博文(710)

文章存档

2016年(1)

2014年(7)

2013年(22)

2012年(227)

2011年(322)

2009年(119)

2008年(12)

分类: Oracle

2011-08-03 16:35:31

env:oracle10.2.0.1 rhel5.3_32 
  1. [root@rac1 rac1]# /u01/app/oracle/oracle/product/10.2.0/crs_1/root.sh
  2. WARNING: directory '/u01/app/oracle/oracle/product/10.2.0' is not owned by root
  3. WARNING: directory '/u01/app/oracle/oracle/product' is not owned by root
  4. WARNING: directory '/u01/app/oracle/oracle' is not owned by root
  5. WARNING: directory '/u01/app/oracle' is not owned by root
  6. WARNING: directory '/u01/app' is not owned by root
  7. WARNING: directory '/u01' is not owned by root
  8. Checking to see if Oracle CRS stack is already configured

  9. Setting the permissions on OCR backup directory
  10. Setting up NS directories
  11. Failed to upgrade Oracle Cluster Registry configuration
http://blog.sina.com.cn/s/blog_6a3f00150100klfu.html

Failed To Upgrade Oracle Cluster Registry Configuration When Running Root.Sh [ID 367715.1]

 

Applies to:

Oracle Server - Enterprise Edition - Version: 10.2.2
Solaris Operating System (SPARC 64-bit)

Symptoms


Got the following error when trying to run  root.sh

Failed to upgrade Oracle Cluster Registry configuration


alertnodename.log shows
[client(1651)]CRS-1006:The OCR location /dev/rdsk/c4t0d2s0 is inaccessible.
Details in
/Oracle01/ufia/oracle/10.2.2/crs/log/haystack/client/ocrconfig_1651.log.
Which is the cluster registry location
ocrconfig_2308.log shows
2006-04-12 12:04:51.261: [ OCRCONF][1]ocrconfig starts...
2006-04-12 12:04:51.262: [ OCRCONF][1]Upgrading OCR data
2006-04-12 12:04:51.284: [ OCRCONF][1]OCR already in current version.
2006-04-12 12:04:51.317: [ OCRCONF][1]Failed to call clsssinit (21)
2006-04-12 12:04:51.317: [ OCRCONF][1]Failed to make a backup copy of OCR
2006-04-12 12:04:51.317: [ OCRCONF][1]Exiting [status=failed]...


.
ocrconfig_4804.log
Oracle Database 10g CRS Release 10.2.0.1.0 Production Copyright 1996, 2005
Oracle. All rights
reserved.
2006-04-18 12:17:16.407: [ OCRCONF][1]ocrconfig starts...
2006-04-18 12:17:16.409: [ OCRCONF][1]Upgrading OCR data
2006-04-18 12:17:16.498: [ OCRRAW][1]propriogid:1: INVALID FORMAT
2006-04-18 12:17:16.501: [ OCRRAW][1]ibctx:1:ERROR: INVALID FORMAT
2006-04-18 12:17:16.501: [ OCRRAW][1]proprinit:problem reading the bootblock
or superbloc 22

2006-04-18 12:17:16.501: [ default][1]a_init:7!: Backend init unsuccessful :
[22]
2006-04-18 12:17:16.502: [ OCRCONF][1]Exporting OCR data to [OCRUPGRADEFILE]
2006-04-18 12:17:16.503: [ OCRAPI][1]a_init:7!: Backend init unsuccessful :
[33]
2006-04-18 12:17:16.504: [ OCRCONF][1]There was no previous version of OCR.
error:[PROC-33:
Oracle Cluster Registry is not
configured]
2006-04-18 12:17:16.507: [ OCRRAW][1]propriogid:1: INVALID FORMAT
2006-04-18 12:17:16.508: [ OCRRAW][1]ibctx:1:ERROR: INVALID FORMAT
2006-04-18 12:17:16.508: [ OCRRAW][1]proprinit:problem reading the bootblock
or superbloc 22

2006-04-18 12:17:16.508: [ default][1]a_init:7!: Backend init unsuccessful :
[22]
2006-04-18 12:17:16.512: [ OCRRAW][1]propriogid:1: INVALID FORMAT
2006-04-18 12:17:16.512: [ OCRRAW][1]ibctx:1:ERROR: INVALID FORMAT
2006-04-18 12:17:16.512: [ OCRRAW][1]proprinit:problem reading the bootblock
or superbloc 22

2006-04-18 12:17:16.515: [ OCRRAW][1]propriogid:1: INVALID FORMAT
2006-04-18 12:17:16.665: [ OCRRAW][1]propriowv: Vote information on disk 0
[/dev/rdsk/c4t0d3s0]
is adjusted from [0/0] to
[2/2]
2006-04-18 12:17:16.791: [ OCRRAW][1]propriniconfig:No 92 configuration
2006-04-18 12:17:16.791: [ OCRAPI][1]a_init:6a: Backend init successful
2006-04-18 12:17:17.396: [ OCRCONF][1]Initialized DATABASE keys in OCR
2006-04-18 12:17:17.482: [ OCRCONF][1]csetskgfrblock0: clsfmt returned with
error [4].
2006-04-18 12:17:17.482: [ OCRCONF][1]Failure in setting block0 [-1]
2006-04-18 12:17:17.482: [ OCRCONF][1]OCR block 0 is not set !
2006-04-18 12:17:17.483: [ OCRCONF][1]Exiting [status=failed]...

Cause

The reason we were not able to initialize the ocr voting disk is when the device was created, it didn't skip the first 1MB to avoid overwriting the disk VTOC.

Solution

To implement the solution, please execute the following steps:

Note: The following steps is for Sun Solaris


1. Determine which disk devices will be used store the OCR and voting disk file. Use the format
command to list the devices, and select the appropriate device. Create a 120 Mb partition and
label the disk. Note, the disk partition to be used must skip the first 1Mb to avoid overwriting
the disk VTOC.
Repeat this step for the voting disk, using 20Mb for the disk device.
2. Make sure the other nodes can see those devices. If the other nodes see those devices at a
different path, then common symbolic links or mknod command must be used to point to the same
location.

3. Initialize the devices using dd.
dd if=/dev/zero of=/dev/rdsk/c3t4d12s6 bs=125829120 \
count=1
dd if=/dev/zero of=/dev/rdsk/c3t4d15s6 bs=20971520 \
count=1

4. Change the permissions and ownership on the two devices.
OCR disk device
chown root:dba /dev/rdsk/c3t4d12s6
chmod 660 /dev/rdsk/c3t4d12s6
Voting disk
chown oracle:dba /dev/rdsk/c3t4d15s6
chmod 660 /dev/rdsk/c3t4d15s6

See  -Placement of voting and OCR disk files in 10gRAC for more detail on how create on different platform.


不使用硬盘的前1M.ocr,votedisk盘各分2个分区,每个分区前空10M.


阅读(5519) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~