'+CRS' in '/etc/oracle/ocr.loc' and '/dev/raw/raw1' does not match
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.
今天在做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]#
解決方法:
[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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- RHEL5 multipath多路徑聚合到RAC的RAW裝置繫結中不能用raw raw1 /dev/dm-*來實現dev
- Error:The specified shared raw partition /dev/raw/raw1...Errordev
- Waring: /dev/centos/swap does not existdevCentOS
- signer information does not match問題解決ORM
- ORA-01861: literal does not match format stringORM
- Library source does not match the bytecode for class 最佳解決方案
- Python執行報錯IndentationError: unindent does not match any outer indentation levelPythonError
- 記錄GitHub使用過程中的 error: src refspec master does not match anyGithubErrorAST
- 如何處理Eclipse錯誤訊息 The declared package does not match the expected packageEclipsePackage
- ValueError: Length of values (141) does not match length of index (4278)問題的解決ErrorIndex
- centos 7.2執行yum -y install報錯Metadata file does not match checksumCentOS
- 解除安裝ORACLE CRSOracle
- Java問題解決:Java compiler level does not match the version of the installed Java project facet.JavaCompileProject
- Oracle CRS/GI 程式介紹Oracle
- [Oracle] Raw device上Create TablespaceOracledev
- ORA-12537及ORA-00600 [spstp ORACLE_HOME uid does not match euid]異常處理OracleUI
- clean all Oracle 10gR2 CRS after a failed CRS installationOracle 10gAI
- python問題unindent does not match any outer indentation level在pycharm平臺的解決方法PythonPyCharm
- Oracle Rac crs無法啟動Oracle
- Oracle10g RAC管理 - CRSOracle
- 【轉】ORACLE CRS日常維護命令Oracle
- Oracle RAC 日常管理之CRS篇Oracle
- oracle10g crs 改IPOracle
- Match
- Oracle的raw資料型別Oracle資料型別
- Oracle 對RAW 的官方評價Oracle
- git push origin master 時出現報錯 error: src refspec master does not match any error: failed to push someGitASTErrorAI
- Failure at final check of Oracle CRS stack.AIOracle
- Oracle RAC 日常管理之CRS篇-3Oracle
- Oracle RAC 日常管理之CRS篇-2Oracle
- shut down and start crs for Oracle10GOracle
- Oracle10g CRS cluster 主要程式Oracle
- CRS-4124: Oracle High Availability Services startup failed. CRS-4000OracleAI
- Lack of interest sinking Oracle's Raw Iron?RESTOracle
- oracle靜默安裝raw裝置Oracle
- JavaScript match()JavaScript
- 沒有設定oracle的環境變數.recover until time會報文字上出錯ORA-01861: literal does not match format stringOracle變數ORM
- CRS-0184:CRS-4639: Could not contact Oracle High Availability ServicesOracleAI