ASM 仲裁盤OCR DG損壞,重建步驟
主機啟動後發現少了ocrsd.bin程式,檢查grid alert日誌,發現下面資訊。 ASM OCR DG 無法啟動。
-
GMON updating disk modes for group 2 at 10 for pid 27, osid 7121
-
ERROR: no read quorum in group: required 2, found 0 disks
-
Fri Jan 15 10:33:21 2016
-
NOTE: cache dismounting (not clean) group 2/0x676844DF (OCRDG)
-
NOTE: messaging CKPT to quiesce pins Unix process pid: 7124, image: oracle@cntl202 (B001)
-
Fri Jan 15 10:33:21 2016
-
NOTE: halting all I/Os to diskgroup 2 (OCRDG) >>>>>>>>>>>>>>>OCRDG有IO故障。
-
Fri Jan 15 10:33:21 2016
-
NOTE: LGWR doing non-clean dismount of group 2 (OCRDG)
-
NOTE: LGWR sync ABA=6.60 last written ABA 6.60
-
WARNING: Offline for disk OCRDG_0000 in mode 0x7f failed.
-
WARNING: Offline for disk OCRDG_0001 in mode 0x7f failed.
-
WARNING: Offline for disk OCRDG_0002 in mode 0x7f failed.
-
Fri Jan 15 10:33:21 2016
- NOTE: No asm libraries found in the system
ASM使用ASMLIB,"oracleasm listdisks" 發現少了一個ASM DISKS,
- --缺少了一個ASMDISK1
- [/root]# oracleasm listdisks
-
ASMDISK2
-
ASMDISK3
- DATADISK1
[/root]# oracleasm querydisk -v -p -d ASMDISK1
Disk "ASMDISK1" does not exist or is not instantiated
Disk "ASMDISK1" does not exist or is not instantiated
- --無法建立,提示已存在。
-
[/root]#oracleasm createdisk ASMDISK1 /dev/sdd1
-
Device "/dev/sdd1" is already labeled for ASM disk ""
-
-
[/root]#oracleasm deletedisk ASMDISK1
-
Disk "ASMDISK1" does not exist or is not instantiated
--清空磁碟頭。
-
[/root]#dd if=/dev/zero of=/dev/sdd1 bs=1024 count=100
-
100+0 records in
-
100+0 records out
-
102400 bytes (102 kB) copied, 0.0812539 s, 1.3 MB/s
-
-
[/root]#oracleasm createdisk ASMDISK1 /dev/sdd1
-
Writing disk header: done
- Instantiating disk: done
1. [ALL NODES]停止CRS,crsd.bin程式不存在,無法正常停,需要 "-f" 強制停止
-
[/root]#crsctl stop crs -f
-
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'cntl069'
-
CRS-2673: Attempting to stop 'ora.mdnsd' on 'cntl069'
-
CRS-2673: Attempting to stop 'ora.ctssd' on 'cntl069'
-
CRS-2673: Attempting to stop 'ora.asm' on 'cntl069'
-
CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'cntl069'
-
CRS-2677: Stop of 'ora.mdnsd' on 'cntl069' succeeded
-
CRS-2677: Stop of 'ora.asm' on 'cntl069' succeeded
-
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'cntl069'
-
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'cntl069' succeeded
-
CRS-2677: Stop of 'ora.drivers.acfs' on 'cntl069' succeeded
-
CRS-2677: Stop of 'ora.ctssd' on 'cntl069' succeeded
-
CRS-2673: Attempting to stop 'ora.cssd' on 'cntl069'
-
CRS-2677: Stop of 'ora.cssd' on 'cntl069' succeeded
-
CRS-2673: Attempting to stop 'ora.gipcd' on 'cntl069'
-
CRS-2677: Stop of 'ora.gipcd' on 'cntl069' succeeded
-
CRS-2673: Attempting to stop 'ora.gpnpd' on 'cntl069'
-
CRS-2677: Stop of 'ora.gpnpd' on 'cntl069' succeeded
-
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'cntl069' has completed
- CRS-4133: Oracle High Availability Services has been stopped.
2. 刪除CRS <--root user
-
[/root]#$CRS_HOME/crs/install/rootcrs.pl -deconfig -force >>>>>>>>>其他節點
-
Using configuration parameter file: /grid/11.2/product/crs/install/crsconfig_params
-
PRCR-1119 : Failed to look up CRS resources of ora.cluster_vip_net1.type type
-
PRCR-1068 : Failed to query resources
-
Cannot communicate with crsd
-
PRCR-1070 : Failed to check if resource ora.gsd is registered
-
Cannot communicate with crsd
-
PRCR-1070 : Failed to check if resource ora.ons is registered
-
Cannot communicate with crsd
- ...
-
-
[/root]#$CRS_HOME/crs/install/rootcrs.pl -deconfig -force -lastnode >>>>>>>>>最後一個節點
-
CRS-4535: Cannot communicate with Cluster Ready Services
-
CRS-4000: Command Stop failed, or completed with errors.
-
CRS-4544: Unable to connect to OHAS
-
CRS-4000: Command Stop failed, or completed with errors.
-
Removing Trace File Analyzer
-
error: package cvuqdisk is not installed
- Successfully deconfigured Oracle clusterware stack on this node
3. [ALL NODES] 執行root.sh 配置CS <-- root user
-
[/root]#CRS_HOME/root.sh
-
Performing root user operation for Oracle 11g
-
-
The following environment variables are set as:
-
ORACLE_OWNER= grid
-
ORACLE_HOME= /grid/11.2/product
-
-
Enter the full pathname of the local bin directory: [/usr/local/bin]:
-
The contents of "dbhome" have not changed. No need to overwrite.
-
The contents of "oraenv" have not changed. No need to overwrite.
-
The contents of "coraenv" have not changed. No need to overwrite.
-
-
Entries will be added to the /etc/oratab file as needed by
-
Database Configuration Assistant when a database is created
-
Finished running generic part of root script.
-
Now product-specific root actions will be performed.
-
Using configuration parameter file: /grid/11.2/product/crs/install/crsconfig_params
-
User ignored Prerequisites during installation
-
Installing Trace File Analyzer
-
OLR initialization - successful
-
Adding Clusterware entries to upstart
-
CRS-2672: Attempting to start 'ora.mdnsd' on 'cntl069'
-
CRS-2676: Start of 'ora.mdnsd' on 'cntl069' succeeded
-
CRS-2672: Attempting to start 'ora.gpnpd' on 'cntl069'
-
CRS-2676: Start of 'ora.gpnpd' on 'cntl069' succeeded
-
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'cntl069'
-
CRS-2672: Attempting to start 'ora.gipcd' on 'cntl069'
-
CRS-2676: Start of 'ora.cssdmonitor' on 'cntl069' succeeded
-
CRS-2676: Start of 'ora.gipcd' on 'cntl069' succeeded
-
CRS-2672: Attempting to start 'ora.cssd' on 'cntl069'
-
CRS-2672: Attempting to start 'ora.diskmon' on 'cntl069'
-
CRS-2676: Start of 'ora.diskmon' on 'cntl069' succeeded
-
CRS-2676: Start of 'ora.cssd' on 'cntl069' succeeded
-
-
ASM created and started successfully.
-
-
Disk Group CRS created successfully.
-
-
clscfg: -install mode specified
-
Successfully accumulated necessary OCR keys.
-
Creating OCR keys for user 'root', privgrp 'root'..
-
Operation successful.
-
Successful addition of voting disk 966344bb8c054f61bf7627175f0d53e8.
-
Successful addition of voting disk 3f3735b4d5f44f79bf27624845c0c81b.
-
Successful addition of voting disk 8bf524ee376b4ff1bf5c3b7e69e5c98b.
-
Successfully replaced voting disk group with +CRS.
-
CRS-4266: Voting file(s) successfully replaced
-
## STATE File Universal Id File Name Disk group
-
-- ----- ----------------- --------- ---------
-
1. ONLINE 966344bb8c054f61bf7627175f0d53e8 (ORCL:ASMDISK1) [CRS]
-
2. ONLINE 3f3735b4d5f44f79bf27624845c0c81b (ORCL:ASMDISK2) [CRS]
-
3. ONLINE 8bf524ee376b4ff1bf5c3b7e69e5c98b (ORCL:ASMDISK3) [CRS]
-
Located 3 voting disk(s).
-
CRS-2672: Attempting to start 'ora.asm' on 'cntl069'
-
CRS-2676: Start of 'ora.asm' on 'cntl069' succeeded
-
CRS-2672: Attempting to start 'ora.CRS.dg' on 'cntl069'
-
CRS-2676: Start of 'ora.CRS.dg' on 'cntl069' succeeded
-
Preparing packages for installation...
-
cvuqdisk-1.0.9-1
- Configure Oracle Grid Infrastructure for a Cluster ... succeeded
4. 檢查CRS配置正常。
-
[/grid/11.2/product]#crsctl status res -t
-
--------------------------------------------------------------------------------
-
NAME TARGET STATE SERVER STATE_DETAILS
-
--------------------------------------------------------------------------------
-
Local Resources
-
--------------------------------------------------------------------------------
-
ora.CRS.dg
-
ONLINE ONLINE cntl069
-
ONLINE ONLINE cntl070
-
ora.asm
-
ONLINE ONLINE cntl069 Started
-
ONLINE ONLINE cntl070 Started
-
ora.gsd
-
OFFLINE OFFLINE cntl069
-
OFFLINE OFFLINE cntl070
-
ora.net1.network
-
ONLINE ONLINE cntl069
-
ONLINE ONLINE cntl070
-
ora.ons
-
ONLINE ONLINE cntl069
-
ONLINE ONLINE cntl070
-
ora.registry.acfs
-
ONLINE ONLINE cntl069
-
ONLINE ONLINE cntl070
-
--------------------------------------------------------------------------------
-
Cluster Resources
-
--------------------------------------------------------------------------------
-
ora.LISTENER_SCAN1.lsnr
-
1 ONLINE ONLINE cntl069
-
ora.cntl069.vip
-
1 ONLINE ONLINE cntl069
-
ora.cntl070.vip
-
1 ONLINE ONLINE cntl070
-
ora.cvu
-
1 ONLINE ONLINE cntl069
-
ora.oc4j
-
1 ONLINE ONLINE cntl069
-
ora.scan1.vip
- 1 ONLINE ONLINE cntl069
5. 確實LISTENER資源,netca建立。
6. 如果已經有資料庫,可使用下面命令加入資源
-
新增資料庫(oracle使用者下執行)
-
[oracle@node1 ~]$ srvctl add database -d racdb -o /u01/product/oracle/11.2.0/db_1
-
[oracle@node1 ~]$
-
-
新增例項(oracle使用者下執行)
-
[oracle@node1 ~]$ srvctl add instance -d racdb -i racdb1 -n node1
-
[oracle@node1 ~]$ srvctl add instance -d racdb -i racdb2 -n node2
-
-
新增之前資料庫的服務(oracle使用者下執行)
- [oracle@node1 ~]$ srvctl add service -d racdb -s kettle -r racdb1 -a racdb2 -P BASIC
再次檢查CRS狀態
-
[/grid/11.2/product]#crsctl status res -t
-
--------------------------------------------------------------------------------
-
NAME TARGET STATE SERVER STATE_DETAILS
-
--------------------------------------------------------------------------------
-
Local Resources
-
--------------------------------------------------------------------------------
-
ora.CRS.dg
-
ONLINE ONLINE cntl069
-
ONLINE ONLINE cntl070
-
ora.DATA.dg
-
ONLINE ONLINE cntl069
-
ONLINE ONLINE cntl070
-
ora.LISTENER.lsnr
-
ONLINE ONLINE cntl069
-
ONLINE ONLINE cntl070
-
ora.asm
-
ONLINE ONLINE cntl069 Started
-
ONLINE ONLINE cntl070 Started
-
ora.gsd
-
OFFLINE OFFLINE cntl069
-
OFFLINE OFFLINE cntl070
-
ora.net1.network
-
ONLINE ONLINE cntl069
-
ONLINE ONLINE cntl070
-
ora.ons
-
ONLINE ONLINE cntl069
-
ONLINE ONLINE cntl070
-
ora.registry.acfs
-
ONLINE ONLINE cntl069
-
ONLINE ONLINE cntl070
-
--------------------------------------------------------------------------------
-
Cluster Resources
-
--------------------------------------------------------------------------------
-
ora.LISTENER_SCAN1.lsnr
-
1 ONLINE ONLINE cntl069
-
ora.cntl069.vip
-
1 ONLINE ONLINE cntl069
-
ora.cntl070.vip
-
1 ONLINE ONLINE cntl070
-
ora.cvu
-
1 ONLINE ONLINE cntl069
-
ora.ecard2pt.db
-
1 ONLINE ONLINE cntl069 Open
-
2 ONLINE ONLINE cntl070 Open
-
ora.oc4j
-
1 ONLINE ONLINE cntl069
-
ora.scan1.vip
- 1 ONLINE ONLINE cntl069
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/17086096/viewspace-1982031/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 物理DG從庫損壞後的重建
- oracle10g rac 表決盤損壞、ocr損壞處理Oracle
- ASM之OCR所在磁碟組損壞後的恢復ASM
- 重建ASM磁碟組的步驟 [ID 268481.1]ASM
- Steps to Re-Create ASM Diskgroups(重建asm 磁碟組步驟)ASM
- Oracle RAC CRS、OCR、Voting破壞重建Oracle
- Oracle重建awr步驟Oracle
- oracle 11gr2 針對ocr/vote asm diskgroup損壞的處理方法OracleASM
- 控制檔案損壞重建實驗(上)
- 控制檔案損壞重建實驗(下)
- ORACLE重建OEM的步驟Oracle
- DG物理standby,switchover步驟
- voting disk 損壞解決方法---重建crs
- DG物理standby,failover步驟AI
- oracle asm線上替換dg盤操作OracleASM
- oracle重建ocrOracle
- Oracle asm磁碟損壞異常恢復OracleASM
- RAC 11G ASM磁碟損壞恢復ASM
- ORACLE RAC重建OCROracle
- 存貯在asm中的ocr/votedisk/asm磁碟組損害的恢復ASM
- Oracle升級導致ocr檔案損壞一例Oracle
- u盤檔案損壞怎麼恢復資料 u盤恢復損壞資料的有效方法
- ASM磁碟頭資訊損壞和修復(kfed/dd)ASM
- Oracle 10G重建OEM 的簡單步驟Oracle 10g
- oracle 10g rac em重建實施步驟Oracle 10g
- win10鍵盤沒壞打不出字怎麼處理_win10鍵盤沒壞無法打字解決步驟Win10
- u盤檔案損壞怎麼恢復資料 u盤損壞無法讀取怎麼恢復資料
- Oracle Database 12c RAC損壞ocr和votedisk恢復實驗OracleDatabase
- Oracle database 11g rac損壞ocr和votedisk恢復實驗OracleDatabase
- oracle DG online_redolog新增步驟Oracle
- oracle DG資料庫切換步驟筆記Oracle資料庫筆記
- oracle 10g dg切換步驟記錄Oracle 10g
- oracle crs voting disk損壞一例(asm+rac)OracleASM
- hacmp 中一臺硬碟壞換硬碟步驟ACM硬碟
- Monitor ASM DG IOASM
- ORA-600 [12700]故障處理一則(線上重建損壞的索引)索引
- [20170303]dg環境下線上日誌損壞8.txt
- 記一次Oracle RAC for aix 儲存雙控鎖盤導致ASM控制檔案損壞恢復OracleAIASM