OEL 11.2.0.2 RAC 資料庫停電導致has程式無法啟動OLR檔案損壞

muxinqing發表於2014-01-14

 

[root@his1 ~]#cat/app/grid/product/11.2.0/grid/log/his1/ohasd/ohasd.log

[ohasd(28152)]CRS-0704:Oracle High Availability Service aborted due to Oracle Local Registry error
[PROCL-26: Error while accessing the physical storage Operating System error [No such file or directory] [2]].
Details at (:OHAS00106:) in /app/11.2.0/grid/log/host-db01/ohasd/ohasd.log.
[client(28167)]CRS-10001:CRS-10132: No msg for has:crs-10132 [10][50]
 

 

[root@his1 ~]# cat /app/grid/product/11.2.0/grid/log/his1/crsd/crsdOUT.log

2012-10-26 18:10:47.097: [ default][65483168] OHASD Daemon Starting. Command string :restart
2012-10-26 18:10:47.097: [ default][65483168] Initializing OLR
2012-10-26 18:10:47.098: [  OCROSD][65483168]
utopen:6m': failed in stat OCR file/disk /app/11.2.0/grid/cdata/host-db01.olr, errno=2, os err string=No such file or directory
2012-10-26 18:10:47.098: [  OCROSD][65483168]utopen:7: failed to open any OCR file/disk, errno=2, os err s
tring=No such file or directory
2012-10-26 18:10:47.099: [  OCRRAW][65483168]proprinit: Could not open raw device
2012-10-26 18:10:47.099: [  OCRAPI][65483168]a_init:16!: Backend init unsuccessful : [26]
2012-10-26 18:10:47.099: [  CRSOCR][65483168] OCR context init failure.  Error:
PROCL-26: Error while accessing the physical storage Operating System error [No such file or directory] [2]
2012-10-26 18:10:47.099: [ default][65483168] Created alert : (:OHAS00106:) :  OLR initialization failed,
error: PROCL-26: Error while accessing the physical storage Operating System error [No such file or directory] [2]
2012-10-26 18:10:47.099: [ default][65483168][PANIC] OHASD exiting; Could not init OLR
2012-10-26 18:10:47.099: [ default][65483168] Done.
 

[root@his1 ~]# cd /app/grid/product/11.2.0/grid/cdata/his1.olr
看到olr檔案損壞
用以下命令,可以重建OLR檔案:


[root@his1 ~]#ocrcheck -config -local
Oracle Local Registry configuration is :
         Device/File Name         : /app/grid/product/11.2.0/grid/cdata/his1.olr
 
[root@his1 ~]#touch /app/grid/product/11.2.0/grid/cdata/his1.olr 建立olr檔案
 
[root@his1 ~]#/app/11.2.0/grid/bin/ocrconfig -local -restore /app/grid/product/11.2.0/grid/cdata/backup_20120810_102624.olr
 
用手動備份檔案還原

[root@his1 ~]# cat /etc/oracle/olr.loc
olrconfig_loc=/app/grid/product/11.2.0/grid/cdata/his1.olr
crs_home=/app/grid
 

OLR: Oracle Local Registry


OCR manages Oracle Clusterware and Oracle RAC database configuration information
 OLR resides on every node in the cluster and manages Oracle Clusterware
configuration information for each particular node
 
Voting disks manage information about node membership. Each voting disk must be
accessible by all nodes in the cluster for nodes to be members of the cluster
 
OLR is a registry similar to OCR located on each node in a cluster,
but contains information specific to each node.
It contains manageability information about Oracle Clusterware,
including dependencies between various services.
Oracle High Availability Services uses this information.
OLR is located on local storage on each node in a cluster.
Its default location is in the path Grid_home/cdata/host_name.olr,
where Grid_home is the Oracle Grid Infrastructure home,
and host_name is the host name of the node.

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

相關文章