檢視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
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鏡像盤:
建立用于鏡像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的資訊