Summary of OPERATIONAL commands for OCR and votedisk commonly used in CRS

Source: Internet
Author: User
to view Votedisk storage information:

Erpdb1$[/home/oracle]crsctl Query CSS Votedisk
0.0/dev/jcerp_vote_disk3
1.0/dev/jcerp_vote_disk1
2.0/dev/jcerp_vote_disk2

Located 3 Votedisk (s).

backup votedisk: DD if=/dev/raw/votediskcopied OF=/DEV/RAW/RAW1
restore Votedisk: dd if=/dev/raw/raw1 of=/dev/raw/votediskcopied

to view OCRs information:
Erpdb1$[/home/oracle]ocrcheck
Status of Oracle Cluster Registry is as follows:
Version:2
Total Space (Kbytes): 261916
Used Space (Kbytes): 4368
Available Space (Kbytes): 257548
id:1501608293
Device/file Name:/dev/jcerp_ocr_disk1
Device/file Integrity Check Succeeded
Device/file Name:/dev/jcerp_ocr_disk2
Device/file Integrity Check Succeeded

Cluster Registry Integrity Check succeeded

Export Import
You can use raw commands to back up and restore, but Ocrconfig provides a special command to export and import also provides a way to mirror

OCR Manual export:ocrconfig-export/tmp/ocr_bak
OCR manual import:Ocrconfig-import/tmp/ocr_bak
Restore OCR OCRCONFIG-RESTORE/OPT/PRODUCT/10.2.0.1/CRS/CDATA/CRS/BACKUP01.OCR
To add an OCR mirror disk:

Create a raw device for mirroring OCR , for example:/dev/raw/ocrcopied
Using Ocrconfig–export to export OCR information
edit/etc/oracle/ocr.loc file , add Ocrmirrorconfig_loc Line
$ cat Ocr.loc
Ocrconfig_loc=/dev/raw/raw2
Ocrmirrorconfig_loc=/dev/raw/ocrcopied
Local_only=false
To import OCR information with Ocrconfig–import

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.