'+CRS' in '/etc/oracle/ocr.loc' and '/dev/raw/raw1' does not match

urgel_babay發表於2016-02-29
2014.12.05
   
         今天在做10gR2 rac的時候遇見了下面這個問題:
[root@zhanglin2 oraInventory]# /u01/app/oracle/product/10.2.0/crs_1/root.sh
WARNING: directory '/u01/app/oracle/product/10.2.0' is not owned by root
WARNING: directory '/u01/app/oracle/product' is not owned by root
WARNING: directory '/u01/app/oracle' is not owned by root
WARNING: directory '/u01/app' is not owned by root
WARNING: directory '/u01' is not owned by root
Checking to see if Oracle CRS stack is already configured
Current Oracle Cluster Registry location '+CRS' in '/etc/oracle/ocr.loc' and '/dev/raw/raw1' does not match
Update either '/etc/oracle/ocr.loc' to use '/dev/raw/raw1' or variable CRS_OCR_LOCATIONS in rootconfig.sh with '+CRS' then rerun rootconfig.sh
[root@zhanglin2 oraInventory]# 

我是使用裸裝置來存放ocr和votingdisk。這個問題是因為oracle找不到存放OCR的位置。

解決方法:
[root@rac1 ~]# cat /etc/oracle/ocr.loc
ocrconfig_loc=+OCR 
local_only=FALSE

[root@rac1 oracle]# cat ocr.loc
ocrconfig_loc=/dev/raw/raw1  ---- 修改為裸裝置的位置
local_only=FALSE

然後再次執行第二個指令碼:
[root@zhanglin2 oracle]# /u01/app/oracle/product/10.2.0/crs_1/root.sh
WARNING: directory '/u01/app/oracle/product/10.2.0' is not owned by root
WARNING: directory '/u01/app/oracle/product' is not owned by root
WARNING: directory '/u01/app/oracle' is not owned by root
WARNING: directory '/u01/app' is not owned by root
WARNING: directory '/u01' is not owned by root
Checking to see if Oracle CRS stack is already configured

Setting the permissions on OCR backup directory
Setting up NS directories
Oracle Cluster Registry configuration upgraded successfully
WARNING: directory '/u01/app/oracle/product/10.2.0' is not owned by root
WARNING: directory '/u01/app/oracle/product' is not owned by root
WARNING: directory '/u01/app/oracle' is not owned by root
WARNING: directory '/u01/app' is not owned by root
WARNING: directory '/u01' is not owned by root
Successfully accumulated necessary OCR keys.
Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
node <nodenumber>: <nodename> <private interconnect name> <hostname>
node 1: rac2 rac2-priv rac2
node 2: rac1 rac1-priv rac1
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/30936525/viewspace-2016681/,如需轉載,請註明出處,否則將追究法律責任。

相關文章