CRS中常用的OCR和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).
備份votedisk: dd if=/dev/raw/votediskcopied of=/dev/raw/raw1
恢復votedisk: dd if=/dev/raw/raw1 of=/dev/raw/votediskcopied
查看ocrs的信息:
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
導出導入
可以用raw的命令來備份和恢復,不過ocrconfig提供了專門的命令來導出和導入還提供了鏡像的方法
OCR手動導出:ocrconfig -export /tmp/ocr_bak
OCR手動導入:ocrconfig -import /tmp/ocr_bak
恢復OCR ocrconfig -restore /opt/product/10.2.0.1/crs/cdata/crs/backup01.ocr
添加OCR鏡像盤:
創(chuàng)建用于鏡像OCR的RAW設備,比如為:/dev/raw/ocrcopied
用ocrconfig –export 導出OCR的信息
編輯/etc/oracle/ocr.loc文件,添加ocrmirrorconfig_loc行
$ cat ocr.loc
ocrconfig_loc=/dev/raw/raw2
ocrmirrorconfig_loc=/dev/raw/ocrcopied
local_only=FALSE
用ocrconfig –import 導入OCR的信息
?
轉載于:https://www.cnblogs.com/snake-hand/archive/2011/10/09/2452248.html
總結
以上是生活随笔為你收集整理的CRS中常用的OCR和Votedisk的操作命令小结的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: shell提示符的个性化设定
- 下一篇: 解题报告 聚会