Syntax for 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 a OCR device/file
-overwrite - Overwrite OCR configuration on disk
-repair ocr|ocrmirror - Repair local OCR configuration
-help - Print out this help information
Status of Oracle Cluster Registry is as follows :
Version : 2
Total space (kbytes) : 104336
Used space (kbytes) : 4580
Available space (kbytes) : 99756
ID : 1892429764
Device/File Name : /dev/raw/raw2
Device/File integrity check succeeded
Device/File Name : /dev/raw/raw5
Device/File integrity check succeeded
For PROT-16: Internal Error
When issuing ocrconfig -replace it checks first about the size of the new OCR before making the replacement.
If it is acceptable then it will replace to the new OCR.
The acceptable size is either 128Mb or 256Mb and so on.
If the original OCR size was less than 128Mb, please make the new OCR as 128Mb or 256Mb.
If the original OCR size was less than 256Mb and greater than 128Mb,
please make the new OCR as 256Mb.
grid@rac1:/u01/app/11.2.0/grid/bin> ./ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 3088
Available space (kbytes) : 259032
ID : 761107597
Device/File Name : +OCR1
Device/File integrity check succeeded
Device/File not configured
Device/File not configured
Device/File not configured
Device/File not configured
Cluster registry integrity check succeeded
Logical corruption check bypassed due to non-privileged user