In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Oracle Study-OCR disk failure under AIX RAC (PROT-602)
*
* Welcome to AIX Version 5.3! *
* *
* Please see the README file in / usr/lpp/bos for information pertinent to *
* this release of the AIX Operating System. *
*
Failure phenomenon:
[root@aix208 /] # crsctl check crs
Failure 1 contacting CSS daemon
Cannot communicate with CRS
EVM appears healthy
[root@aix208 /] # ocrcheck
PROT-602: Failed to retrieve data from the cluster registry
-OCR disk was mistakenly deleted by users!
Solution:
Restore through the ocrconfig tool:
[root@aix208 /] # ocrconfig
Name:
Ocrconfig-Configuration tool for Oracle Cluster Registry.
Synopsis:
Ocrconfig [option]
Option:
-export [- s online]
-Export cluster register contents to a file
-import-Import cluster registry contents from a file
-upgrade [[]]
-Upgrade cluster registry from previous version
-downgrade [- version]
-Downgrade cluster registry to the specified version
-backuploc-Configure periodic backup location
-showbackup-Show backup information
-restore-Restore from physical backup
-replace ocr | ocrmirror []-Add/replace/remove an OCR device/file
-overwrite-Overwrite OCR configuration on disk
-repair ocr | ocrmirror-Repair local OCR configuration
-help-Print out this help information
Note:
A log file will be created in
$ORACLE_HOME/log//client/ocrconfig_.log. Please ensure
You have file creation privileges in the above directory before
Running this tool.
1) repair via repair
[root@aix208 /] # ocrconfig-repair ocr
[root@aix208 /] # ocrcheck
PROT-601: Failed to initialize ocrcheck
View the ocr device file:
[root@aix208 /] # ls-l / dev | grep ocr
Brw-rw---- 1 oracle dba 123, 1 Feb 24 14:54 rac_ocr
Brw-rw---- 1 root system 123, 20 Feb 25 12:01 rac_ocr2
Crw-r- 1 root dba 123, 1 Feb 25 12:16 rrac_ocr
-rw-r--r-- 1 root system 139264000 Feb 22 13:50 rrac_ocr1
Crw-rw---- 1 oracle dba 123, 20 Feb 25 12:16 rrac_ocr2
[root@aix208 /] # ocrconfig-repair ocr / dev/rrac_ocr
[root@aix208 /] # ocrcheck
PROT-601: Failed to initialize ocrcheck
[root@aix208 /] # ocrconfig-replace ocr / dev/rrac_ocr
PROT-1: Failed to initialize ocrconfig
2) repair through ocr backup:
[root@aix208 /] # ocrconfig-showbackup
View backup data:
[root@aix208 /] # cd / u01/crs_1/cdata/crs
[root@aix208 crs] # ls
Backup00.ocr day.ocr week.ocr
[root@aix208 crs] # ls-l
Total 20256
-rw-r--r-- 1 root system 3457024 Feb 25 11:48 backup00.ocr
-rw-r--r-- 1 root system 3457024 Feb 25 11:48 day.ocr
-rw-r--r-- 1 root system 3457024 Feb 25 11:48 week.ocr
[root@aix208 crs] # ls-lt
Total 20256
-rw-r--r-- 1 root system 3457024 Feb 25 11:48 week.ocr
-rw-r--r-- 1 root system 3457024 Feb 25 11:48 day.ocr
-rw-r--r-- 1 root system 3457024 Feb 25 11:48 backup00.ocr
"from backup, use the restore tool to repair:"
[root@aix208 crs] # ocrconfig-restore / u01/crs_1/cdata/crs/day.ocr
[root@aix208 crs] # ocrcheck
Status of Oracle Cluster Registry is as follows:
Version: 2
Total space (kbytes): 130984
Used space (kbytes): 3252
Available space (kbytes): 127732
ID: 133619783
Device/File Name: / dev/rrac_ocr
Device/File integrity check succeeded
Device/File not configured
Cluster registry integrity check succeeded
[root@aix208 crs] # crsctl check crs
CSS appears healthy
CRS appears healthy
EVM appears healthy
[root@aix208 crs] # crs_stat-t
Name Type Target State Host
Ora....07.lsnr application ONLINE ONLINE aix207
Ora.aix207.gsd application ONLINE ONLINE aix207
Ora.aix207.ons application ONLINE ONLINE aix207
Ora.aix207.vip application ONLINE ONLINE aix207
Ora....08.lsnr application ONLINE ONLINE aix208
Ora.aix208.gsd application ONLINE ONLINE aix208
Ora.aix208.ons application ONLINE ONLINE aix208
Ora.aix208.vip application ONLINE ONLINE aix208
Ora.prod.db application ONLINE ONLINE aix207
Ora....d1.inst application ONLINE ONLINE aix207
Ora....d2.inst application ONLINE OFFLINE aix208
-repair succeeded!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.