The restoration of RAC when the OCR disk is faulty and there is a backup, racocr

Source: Internet
Author: User

The restoration of RAC when the OCR disk is faulty and there is a backup, racocr

Problem description:


CRS startup failed, and all RAC processes quit.


View the messages log:
......
Apr 10 15:58:31 node74 logger: Cluster Ready Services waiting on dependencies. Diagnostics in/tmp/crsctl.7510.
Apr 10 15:58:31 node74 logger: Cluster Ready Services waiting on dependencies. Diagnostics in/tmp/crsctl.4244.
Apr 10 15:58:31 node74 logger: Cluster Ready Services waiting on dependencies. Diagnostics in/tmp/crsctl.7174.
Apr 10 15:59:31 node74 su: (to oracle) root on none
Apr 10 15:59:31 node74 su: (to oracle) root on none
Apr 10 15:59:31 node74 su: (to oracle) root on none
Apr 10 15:59:31 node74 logger: Cluster Ready Services waiting on dependencies. Diagnostics in/tmp/crsctl.7510.
Apr 10 15:59:31 node74 logger: Cluster Ready Services waiting on dependencies. Diagnostics in/tmp/crsctl.7174.
Apr 10 15:59:31 node74 logger: Cluster Ready Services waiting on dependencies. Diagnostics in/tmp/crsctl.4244.
Apr 10 16:00:26 node74su: (to oracle) root on/dev/pts/0
Apr 10 16:00:31 node74 su: (to oracle) root on none
Apr 10 16:00:31 node74 su: (to oracle) root on none
Apr 10 16:00:31 node74 su: (to oracle) root on none
Apr 10 16:00:31 node74 logger: Cluster Ready Services waiting on dependencies. Diagnostics in/tmp/crsctl.4244.
Apr 10 16:00:31 node74 logger: Cluster Ready Services waiting on dependencies. Diagnostics in/tmp/crsctl.7510.
Apr 10 16:00:31 node74 logger: Cluster Ready Services waiting on dependencies. Diagnostics in/tmp/crsctl.7174.
......

Take one of the files,/tmp/crsctl.7174:

Oracle Cluster Registry initialization failed with invalid format: The OCR backend has an invalid format

It is suspected that OCR is damaged. Run the crsctl check boot command, which is consistent with the preceding log error:

Oracle @ node74: ~> Crsctl check boot
Oracle Cluster Registry initialization failed with invalid format: The OCR backend has an invalid format

Troubleshooting:

Check whether there is an OCR automatic backup. Unfortunately, there is no result output:

Oracle @ node74: ~> Ocrconfig-showbackup
--- Null

Fortunately, there was a manual backup for OCR during the OCR migration experiment.

Node74:/home/database/oracle/Hangzhou RS/bin # ll/home/oracle/ocr. exp
-Rw-r -- 1 root 87246 Dec 29 16:45/home/oracle/ocr. exp


Import the pre-Backup OCR:

Node74:/home/database/oracle/Hangzhou RS/bin #./ocrconfig-import/home/oracle/ocr. exp


Check OCR:

Node74:/home/database/oracle/javasrs/bin #./ocrcheck
Status of Oracle Cluster Registry is as follows:
Version: 2
Total space (kbytes): 975584
Used space (kbytes): 3844
Available space (kbytes): 971740
ID: 811637621
Device/File Name:/dev/raw/raw1
Device/File integrity check succeeded

Device/File not configured

Cluster registry integrity check succeeded

Logical upload uption check succeeded

--- Repair successful


Start CRS:

Node74:/home/database/oracle/clustered RS/bin #/etc/init. d/init. crs start

All RAC processes started successfully:

Node74 :~ # Su-oracle
Oracle @ node74: ~> Crs_stat-t
Name Type Target State Host
------------------------------------------------------------
Ora... SM1.asm application ONLINE node74
Ora... 74. lsnr application ONLINE node74
Ora. node74.gsd application ONLINE node74
Ora. node74.ons application ONLINE node74
Ora. node74.vip application ONLINE node74
Ora... SM2.asm application ONLINE node76
Ora... 76. lsnr application ONLINE node76
Ora. node76.gsd application ONLINE node76
Ora. node76.ons application ONLINE node76
Ora. node76.vip application ONLINE node76
Ora. orcl. db application ONLINE node74
Ora... l1.inst application ONLINE node74

Ora... l2.inst application ONLINE node76


-- Problem Solving



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.