Management of Voting disk and OCR in Oracle 10g RAC

Source: Internet
Author: User

Voting disk ):
Voting disk records the node member information, such as the node members and Node Deletion records. The size is 20 MB.
View voting disk location: crsctl query css votedisk
$ Crsctl query css votedisk
0. 0/dev/rhdisk3
If the CRS installation process fails and you need to reinstall it, you need to initialize the voting disk, use the DD or recreate the volume.
Dd if =/dev/zero of =/dev/rhdisk3 bs = 8192 count = 2560
Back up votedisk: dd if =/dev/rhdisk3 of =/tmp/votedisk. bak
Restore votedisk: dd if =/tmp/votedisk. bak of =/dev/rhdisk3
Add a voting disk image disk:
Crsctl add css votedisk/dev/rhdisk7-force
Delete a voting disk image disk
Crsctl delete css votedisk/dev/rhdisk7-force


OCR
OCR records the configuration information of node members, such as database, ASM, instance, listener, VIP, and other CRS resource configuration information, which can be stored on bare devices or cluster file systems, the recommended size is 100 MB.
For example, RAW is used to divide a RAW file, for example,/dev/rhdisk2.
If the CRS installation process fails and you need to reinstall it, you need to initialize the OCR disk (RAW mode) and use DD or re-build the volume.
Dd if =/dev/zero of =/dev/rhdisk2 bs = 8192 count = 12800
Oracle automatically initiates a backup every four hours and saves three versions, but only one node exists.
$ Ocrconfig-showbackup
Poaisdb1 2008/04/10 22:53:29/opt/oracle/product/10.2.0/crs/cdata/crs
Poaisdb1 2008/04/10 18:53:28/opt/oracle/product/10.2.0/crs/cdata/crs
Poaisdb1 2008/04/10 14:53:27/opt/oracle/product/10.2.0/crs/cdata/crs
Poaisdb1 2008/04/09 06:53:20/opt/oracle/product/10.2.0/crs/cdata/crs
Poaisdb2 2008/04/03 03:31:28/opt/oracle/product/10.2.0/crs/cdata/crs
Restore OCR: ocrconfig-restore/opt/oracle/product/10.2.0/crs/cdata/crs/backup01.ocr
Manual export of OCR: ocrconfig-export/tmp/ocr_bak
Manual OCR import: ocrconfig-import/tmp/ocr_bak
Add an OCR image Disk:
1. Use crsctl stop crs to stop the CRS Service
2. Create a RAW device for image OCR, for example,/dev/rhdisk6.
3. Use ocrconfig-export to export OCR Information
4. Edit the/etc/oracle/ocr. loc file and add the ocrmirrorconfig_loc row.
$ Cat ocr. loc
Ocrconfig_loc =/dev/rhdisk2
Ocrw.config_loc =/dev/rhdisk6
Local_only = FALSE
5. Use ocrconfig-import to import OCR Information
6. Check ocr settings
$ Ocrcheck
Status of Oracle Cluster Registry is as follows:
Version: 2
Total space (kbytes): 103724
Used space (kbytes): 3824
Available space (kbytes): 99900
ID: 1086971606
Device/File Name:/dev/rhdisk2 Device/File integrity check succeeded
Device/File Name:/dev/rhdisk6 Device/File integrity check succeeded
Cluster registry integrity check succeeded
7. Use crsctl start crs to start the CRS service.

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.