溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶服務(wù)條款》

ocr磁盤(pán)組故障怎么辦

發(fā)布時(shí)間:2021-11-06 17:33:13 來(lái)源:億速云 閱讀:373 作者:柒染 欄目:建站服務(wù)器

本篇文章給大家分享的是有關(guān)ocr磁盤(pán)組故障怎么辦,小編覺(jué)得挺實(shí)用的,因此分享給大家學(xué)習(xí),希望大家閱讀完這篇文章后可以有所收獲,話不多說(shuō),跟著小編一起來(lái)看看吧。

ocr磁盤(pán)組故障
1,有自動(dòng)備份,恢復(fù)
dd命令復(fù)制
首先備份
 dd if=/dev/raw/raw1 of=/home/grid/voting.2017
恢復(fù)
 dd if=/home/oracle/voting.2017 of=/dev/raw/raw1
md_backup命令備份磁盤(pán)組
asmcmd -p
md_backup /home/grid/ocrvote2.bak -G OCR

手工導(dǎo)出
 ./ocrconfig -export /home/grid/ocr2.bak

2、模擬損壞
 dd if=/dev/zero of=/dev/raw/raw1 bs=8192 count=12800
 報(bào)錯(cuò)
 [grid@rac1 rac1]$ ocrcheck
PROT-602: Failed to retrieve data from the cluster registry
PROC-26: Error while accessing the physical storage
集群狀態(tài)正常
[grid@rac1 rac1]$ crsctl check crs
CRS-4638: Oracle High Availability Services is online
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
2017-10-07 16:19:38.269:
[/u01/app/11.2.0/grid/bin/orarootagent.bin(3040)]CRS-5822:Agent '/u01/app/11.2.0/grid/bin/orarootagent_root' disconnected from server. Details at (:CRSAGF00117:) {0:3:307} in /u01/app/11.2.0/grid/log/rac1/agent/crsd/orarootagent_root/orarootagent_root.log.
2017-10-07 16:19:38.274:
[/u01/app/11.2.0/grid/bin/scriptagent.bin(17425)]CRS-5822:Agent '/u01/app/11.2.0/grid/bin/scriptagent_grid' disconnected from server. Details at (:CRSAGF00117:) {0:13:3} in /u01/app/11.2.0/grid/log/rac1/agent/crsd/scriptagent_grid/scriptagent_grid.log.
2017-10-07 16:19:38.287:
[/u01/app/11.2.0/grid/bin/oraagent.bin(3036)]CRS-5822:Agent '/u01/app/11.2.0/grid/bin/oraagent_grid' disconnected from server. Details at (:CRSAGF00117:) {0:1:7} in /u01/app/11.2.0/grid/log/rac1/agent/crsd/oraagent_grid/oraagent_grid.log.
2017-10-07 16:19:38.298:
[/u01/app/11.2.0/grid/bin/oraagent.bin(3272)]CRS-5822:Agent '/u01/app/11.2.0/grid/bin/oraagent_oracle' disconnected from server. Details at (:CRSAGF00117:) {0:11:843} in /u01/app/11.2.0/grid/log/rac1/agent/crsd/oraagent_oracle/oraagent_oracle.log.
2017-10-07 16:19:38.305:
[ohasd(2103)]CRS-2765:Resource 'ora.crsd' has failed on server 'rac1'.
2017-10-07 16:19:39.738:
[crsd(17471)]CRS-1013:The OCR location in an ASM disk group is inaccessible. Details in /u01/app/11.2.0/grid/log/rac1/crsd/crsd.log.
2017-10-07 16:19:39.757:
[crsd(17471)]CRS-0804:Cluster Ready Service aborted due to Oracle Cluster Registry error [PROC-26: Error while accessing the physical storage
]. Details at (:CRSD00111:) in /u01/app/11.2.0/grid/log/rac1/crsd/crsd.log.
2017-10-07 16:19:44.785:
[ohasd(2103)]CRS-2765:Resource 'ora.crsd' has failed on server 'rac1'.
2017-10-07 16:19:46.138:
[crsd(17484)]CRS-1013:The OCR location in an ASM disk group is inaccessible. Details in /u01/app/11.2.0/grid/log/rac1/crsd/crsd.log.
2017-10-07 16:19:46.147:
[crsd(17484)]CRS-0804:Cluster Ready Service aborted due to Oracle Cluster Registry error [PROC-26: Error while accessing the physical storage
]. Details at (:CRSD00111:) in /u01/app/11.2.0/grid/log/rac1/crsd/crsd.log.
2017-10-07 16:19:48.171:
[ctssd(2629)]CRS-2407:The new Cluster Time Synchronization Service reference node is host rac1.
2017-10-07 16:19:51.185:
[ohasd(2103)]CRS-2765:Resource 'ora.crsd' has failed on server 'rac1'.
2017-10-07 16:19:51.303:
[cssd(2549)]CRS-1625:Node rac2, number 2, was manually shut down
查看自動(dòng)備份
 ./ocrconfig -showbackup
檢查
crsctl check crs
crsctl query css votedisk
ocrcheck

3、恢復(fù)(root用戶下)
所有節(jié)點(diǎn)停止crs
./crsctl stop crs -f
./crsctl stop has -f
./crsctl disable has
./crsctl disable crs--關(guān)閉開(kāi)機(jī)重啟

crsctl start crs -excl
以獨(dú)占的方式打開(kāi)crs
crsctl start crs -excl -nocrs
創(chuàng)建磁盤(pán)組
select name ,COMPATIBILITY from v$asm_diskgroup;
create diskgroup ocr external redundancy DISK '/dev/raw/raw1' ATTRIBUTE 'compatible.asm'='11.2.0.0.0';

drop diskgroup ocr force including contents;
ocrconfig -restore /u01/app/11.2.0/grid/cdata/rac-cluster/backup_20171007_153630.ocr
./ocrconfig -restore /u01/app/11.2.0/grid/cdata/rac-cluster/backup00.ocr

執(zhí)行ocrcheck

是否需要恢復(fù)votingdisk
恢復(fù)表決磁盤(pán)
./crsctl replace votedisk +OCR


停止獨(dú)占模式運(yùn)行的clusterware

crsctl stop crs -f

所有節(jié)點(diǎn)正常啟動(dòng)crs
crsctl start crs


CVU驗(yàn)證所有RAC節(jié)點(diǎn)OCR的完整性
 cluvfy comp ocr -n all -verbose


以上就是ocr磁盤(pán)組故障怎么辦,小編相信有部分知識(shí)點(diǎn)可能是我們?nèi)粘9ぷ鲿?huì)見(jiàn)到或用到的。希望你能通過(guò)這篇文章學(xué)到更多知識(shí)。更多詳情敬請(qǐng)關(guān)注億速云行業(yè)資訊頻道。

向AI問(wèn)一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

ocr
AI