otedisk OCR 檔案管理故障處理
otedisk OCR 檔案管理
votedisk 表決票完成步驟移動
增加votedisk
crsctl add css votedisk
移動VOTEDISK
[grid@his1 ~]$ crsctl replace votedisk +ORADATA
Successful addition of voting disk 1872e8b75a044f7ebff196ac40dcc659.
Successful deletion of voting disk 6977382452284f23bff811784304398d.
Successfully replaced voting disk group with +ORADATA.
CRS-4266: Voting file(s) successfully replaced
[grid@his1 ~]$ crsctl query css votedisk;
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE 1872e8b75a044f7ebff196ac40dcc659 (/dev/oracleasm/disks/DATVOL) [ORADATA]
Located 1 voting disk(s).
votedisk放在asm磁碟組上,我的的asm磁碟只有一份沒有辦法增加 刪除votedisk操作,想要增加冗餘份數,只能透過增加磁碟組的disk來實現,即依賴於磁碟組的冗餘
ocr要完成步驟
Synopsis:
ocrconfig [option]
option:
[-local] -export
- Export OCR/OLR contents to a file
[-local] -import - Import OCR/OLR contents from a file
[-local] -upgrade [ []]
- Upgrade OCR from previous version
-downgrade [-version ]
- Downgrade OCR to the specified version
[-local] -backuploc - Configure OCR/OLR backup location
[-local] -showbackup [auto|manual] - Show OCR/OLR backup information
[-local] -manualbackup - Perform OCR/OLR backup
[-local] -restore - Restore OCR/OLR from physical backup
-replace -replacement
- Replace a OCR device/file with
-add - Add a new OCR device/file
-delete - Remove a OCR device/file
-overwrite - Overwrite OCR configuration on disk
-repair -add | -delete | -replace -replacement
- Repair OCR configuration on the local node
-help - Print out this help information
匯出ocr檔案內容
[root@his1 bin]# ./ocrconfig -export /votedisk/ocr.log
匯入ocr檔案內容
[root@his1 bin]# ./ocrconfig -import /votedisk/ocr.log
線上增加ocr檔案
[root@his1 bin]# ./ocrconfig -add +oradata
[root@his1 bin]# ./crscheck
-bash: ./crscheck: No such file or directory
[root@his1 bin]# ./ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 2856
Available space (kbytes) : 259264
ID : 1198380549
Device/File Name : +ORACRS
Device/File integrity check succeeded
Device/File Name : +oradata
線上ocr檔案移動
[root@his1 bin]# ./ocrconfig -replace +oradata -replacement +oraarch
[root@his1 bin]# ./ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 2856
Available space (kbytes) : 259264
ID : 1198380549
Device/File Name : +ORACRS
Device/File integrity check succeeded
Device/File Name : +oraarch
Device/File integrity check succeeded
線上ocr檔案刪除
[root@his1 bin]# ./ocrconfig -delete +oraarch
[root@his1 bin]# ./ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 2856
Available space (kbytes) : 259264
ID : 1198380549
Device/File Name : +ORACRS
從備份恢復OCR檔案給
[root@his1 bin]# ./ocrconfig -restore /app/grid/product/11.2.0/grid/cdata/his-scan/backup00.ocr
檢視OCR檔案自動備份
[root@his1 bin]# ./ocrconfig -showbackup
his1 2014/02/27 11:49:42 /app/grid/product/11.2.0/grid/cdata/his-scan/backup00.ocr
his1 2014/02/27 07:49:41 /app/grid/product/11.2.0/grid/cdata/his-scan/backup01.ocr
his1 2014/02/27 03:49:41 /app/grid/product/11.2.0/grid/cdata/his-scan/backup02.ocr
his1 2014/02/26 03:49:39 /app/grid/product/11.2.0/grid/cdata/his-scan/day.ocr
his1 2014/02/17 19:49:07 /app/grid/product/11.2.0/grid/cdata/his-scan/week.ocr
PROT-25: Manual backups for the Oracle Cluster Registry are not available
OCR表決盤故障處理
強制停止CRS服務
[root@rac1 ~]# crsctl stop crs -f
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'rac1'
CRS-2673: Attempting to stop 'ora.crsd' on 'rac1'
CRS-4548: Unable to connect to CRSD
CRS-2675: Stop of 'ora.crsd' on 'rac1' failed
CRS-2679: Attempting to clean 'ora.crsd' on 'rac1'
CRS-4548: Unable to connect to CRSD
CRS-2678: 'ora.crsd' on 'rac1' has experienced an unrecoverable failure
CRS-0267: Human intervention required to resume its availability.
CRS-2795: Shutdown of Oracle High Availability Services-managed resources on 'rac1' has failed
CRS-4687: Shutdown command has completed with error(s).
發現無法停止,這裡我耽誤了很長時間,禁用crs自動啟動然後reboot電腦也不行,最後找到是由於
BUG:9011779 所致,透過下面的解決了
kill these processes: ohasd, gipcd, mdnsd, gpnpd, evmd, and crsd
然後以-excl的方式啟動Start Oracle Clusterware in exclusive mode,這裡與10g不同
[root@rac1 ~]# crsctl start crs -excl -nocrs
CRS-4123: Oracle High Availability Services has been started.
CRS-2673: Attempting to stop 'ora.gipcd' on 'rac1'
CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'rac1'
CRS-2673: Attempting to stop 'ora.crsd' on 'rac1'
CRS-2677: Stop of 'ora.crsd' on 'rac1' succeeded
CRS-2677: Stop of 'ora.gipcd' on 'rac1' succeeded
CRS-2677: Stop of 'ora.drivers.acfs' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.gipcd' on 'rac1'
CRS-2672: Attempting to start 'ora.mdnsd' on 'rac1'
CRS-2676: Start of 'ora.gipcd' on 'rac1' succeeded
CRS-2676: Start of 'ora.mdnsd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'rac1'
CRS-2676: Start of 'ora.gpnpd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'rac1'
CRS-2676: Start of 'ora.cssdmonitor' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'rac1'
CRS-2679: Attempting to clean 'ora.diskmon' on 'rac1'
CRS-2681: Clean of 'ora.diskmon' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.diskmon' on 'rac1'
CRS-2676: Start of 'ora.diskmon' on 'rac1' succeeded
CRS-2676: Start of 'ora.cssd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.ctssd' on 'rac1'
CRS-2672: Attempting to start 'ora.drivers.acfs' on 'rac1'
CRS-2676: Start of 'ora.drivers.acfs' on 'rac1' succeeded
CRS-2676: Start of 'ora.ctssd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.asm' on 'rac1'
CRS-2676: Start of 'ora.asm' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.crsd' on 'rac1'
CRS-2676: Start of 'ora.crsd' on 'rac1' succeeded
恢復COR磁碟 前面已經列出了備份在RAC2 /u01/grid/product/11.2.0/cdata/rac-cluster下
SQL> create diskgroup OCRDATA normal redundancy disk 'ORCL:OCR1','ORCL:OCR2','ORCL:OCR3' attribute 'COMPATIBLE.ASM'='11.2';
Diskgroup created.
rac1]# ocrconfig -restore /tmp/backup00.ocr
建立引數檔案
SQL> create spfile='+OCRDATA' from pfile='/tmp/asmbak.ora';
File created.
執行ocrcheck命令發現OCR磁碟已經恢復
[root@rac1 rac1]# ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 2720
Available space (kbytes) : 259400
ID : 2026562699
Device/File Name : +OCRDATA
Device/File integrity check succeeded
Device/File not configured
Device/File not configured
Device/File not configured
Device/File not configured
Cluster registry integrity check succeeded
Logical corruption check succeeded
檢視votedisk為空
[root@rac1 rac1]# crsctl query css votedisk
Located 0 voting disk(s).
votedisk恢復
[root@rac1 rac1]# crsctl replace votedisk +OCRDATA
Successful addition of voting disk afdbd9a7bce04fd9bfca848161db4ee5.
Successful addition of voting disk 939a58464f5a4f6cbfade37e83b7c729.
Successful addition of voting disk 3fc60f96eeca4faebf4b44700fc74897.
Successfully replaced voting disk group with +OCRDATA.
CRS-4266: Voting file(s) successfully replaced
[root@rac1 rac1]# crsctl query css votedisk
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE afdbd9a7bce04fd9bfca848161db4ee5 (ORCL:OCR1) [OCRDATA]
2. ONLINE 939a58464f5a4f6cbfade37e83b7c729 (ORCL:OCR2) [OCRDATA]
3. ONLINE 3fc60f96eeca4faebf4b44700fc74897 (ORCL:OCR3) [OCRDATA]
Located 3 voting disk(s).
重啟crs服務
[root@rac1 rac1]# crsctl stop crs -f
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'rac1'
CRS-2673: Attempting to stop 'ora.gpnpd' on 'rac1'
CRS-2673: Attempting to stop 'ora.cssdmonitor' on 'rac1'
CRS-2673: Attempting to stop 'ora.ctssd' on 'rac1'
CRS-2673: Attempting to stop 'ora.asm' on 'rac1'
CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'rac1'
CRS-2673: Attempting to stop 'ora.mdnsd' on 'rac1'
CRS-2677: Stop of 'ora.cssdmonitor' on 'rac1' succeeded
CRS-2677: Stop of 'ora.gpnpd' on 'rac1' succeeded
CRS-2677: Stop of 'ora.mdnsd' on 'rac1' succeeded
CRS-2677: Stop of 'ora.drivers.acfs' on 'rac1' succeeded
CRS-2677: Stop of 'ora.ctssd' on 'rac1' succeeded
CRS-2677: Stop of 'ora.asm' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'rac1'
CRS-2677: Stop of 'ora.cssd' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.diskmon' on 'rac1'
CRS-2673: Attempting to stop 'ora.gipcd' on 'rac1'
CRS-2677: Stop of 'ora.gipcd' on 'rac1' succeeded
CRS-2677: Stop of 'ora.diskmon' on 'rac1' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'rac1' has completed
CRS-4133: Oracle High Availability Services has been stopped.
[root@rac1 rac1]# crsctl start crs
CRS-4123: Oracle High Availability Services has been started.
[root@rac1 rac1]# crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora.DATA.dg ora....up.type ONLINE ONLINE rac1
ora.FRA.dg ora....up.type ONLINE ONLINE rac1
ora....ER.lsnr ora....er.type ONLINE ONLINE rac1
ora....N1.lsnr ora....er.type ONLINE ONLINE rac1
ora.OCRDATA.dg ora....up.type ONLINE ONLINE rac1
ora.asm ora.asm.type ONLINE ONLINE rac1
ora.eons ora.eons.type ONLINE ONLINE rac1
ora.gsd ora.gsd.type OFFLINE OFFLINE
ora....network ora....rk.type ONLINE ONLINE rac1
ora.oc4j ora.oc4j.type OFFLINE OFFLINE
ora.ons ora.ons.type ONLINE ONLINE rac1
ora....SM1.asm application ONLINE ONLINE rac1
ora....C1.lsnr application ONLINE ONLINE rac1
ora.rac1.gsd application OFFLINE OFFLINE
ora.rac1.ons application ONLINE ONLINE rac1
ora.rac1.vip ora....t1.type ONLINE ONLINE rac1
ora.rac2.vip ora....t1.type ONLINE ONLINE rac1
ora.ractest.db ora....se.type ONLINE OFFLINE
ora....ry.acfs ora....fs.type ONLINE ONLINE rac1
ora.scan1.vip ora....ip.type ONLINE ONLINE rac1
節點一已經恢復了,節點2重啟下crs服務就可以了
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29065182/viewspace-1095288/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 表空間資料檔案故障處理
- RAC 11.2.0.3 管理OCR檔案
- oracle 案例-控制檔案丟失故障處理過程Oracle
- 管理oracle叢集中的ocr檔案Oracle
- Linux檔案管理知識:文字處理Linux
- 測試環境控制檔案被誤刪的故障處理
- 【故障處理】一次RAC故障處理過程
- [R]檔案處理
- bat處理檔案BAT
- bat檔案處理BAT
- MongoDB故障處理MongoDB
- 故障分析 | Greenplum Segment 故障處理
- Linux學習之檔案處理命令(二)目錄處理命令 && 檔案處理命令Linux
- GPON網路故障如何處理?GPON網路故障處理流程
- 【故障處理】ORA-600:[13013],[5001]故障處理
- 【故障處理】ORA- 2730*,status 12故障分析與處理
- window 批處理檔案
- python處理檔案Python
- Go xml檔案處理GoXML
- python檔案處理Python
- python 檔案處理Python
- Python 檔案處理Python
- JAVA ZIP 處理檔案Java
- 批處理檔案命令
- 檔案處理函式函式
- Windows批處理檔案Windows
- bat批處理檔案BAT
- linux故障處理Linux
- ora-故障處理
- ORACLE伺服器異常斷電,控制檔案故障的處理步驟Oracle伺服器
- 11.9Linux檔案管理知識:文字處理Linux
- asm管理的dg資料檔案缺失的處理方法ASM
- java 檔案處理 工具類Java
- python處理txt檔案Python
- laravel處理檔案上傳Laravel
- Python 批量處理檔案Python
- node js 處理PDF檔案JS
- Python處理大檔案Python