Summary of Common commands for OCR and votedisk in CRS

Source: Internet
Author: User
View the storage information of votedisk:

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 ).

Back up votedisk:Dd If =/dev/raw/votediskcopied of =/dev/raw/raw1
Restore votedisk:Dd If =/dev/raw/raw1 of =/dev/raw/votediskcopied

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 and Import
You can use raw commands to back up and restore data. However, ocrconfig provides dedicated commands to export and import data and provides image methods.

Manual export with OCR:Ocrconfig-export/tmp/ocr_bak
Manual OCR import:Ocrconfig-import/tmp/ocr_bak
Restore OCROcrconfig-Restore/opt/product/10.2.0.1/CRS/CDATA/CRS/backup01.ocr
Add an OCR image Disk:

Create raw device for image OCRFor example:/dev/raw/ocrcopied
Use ocrconfig-export to export OCR Information
Edit the/etc/Oracle/OCR. Loc File, Add ocrw.config_loc row
$ Cat OCR. Loc
Ocrconfig_loc =/dev/raw/raw2
Ocrw.config_loc =/dev/raw/ocrcopied
Local_only = false
Use ocrconfig-import to import OCR Information

 

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.