保证OCR可用性的最好方法就是消除单点,对OCR的冗余操作便是对OCR的镜像操作。
本文介绍如何完成OCR的镜像。
1.确认CRS的版本并检查OCR的配置情况
[root@rac1 ~]# crsctl query crs softwareversion
CRS software version on node [rac1] is [10.2.0.2.0]
[root@rac1 ~]# /u01/crs1020/bin/ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 2
Total space (kbytes) : 104216
Used space (kbytes) : 2848
Available space (kbytes) : 101368
ID : 1206524489
Device/File Name : /dev/raw/raw1
Device/File integrity check succeeded
Device/File not configured
Cluster registry integrity check succeeded
[root@rac1 ~]# cat /etc/oracle/ocr.loc
ocrconfig_loc=/dev/raw/raw1
local_only=FALSE
2.使用/dev/raw/raw2镜像OCR
注意需要使用root权限来完成。
[root@rac1 ~]# /u01/crs1020/bin/ocrconfig -replace ocrmirror /dev/raw/raw2
3.重新检查OCR的配置信息,确定调整是否成功
[root@rac1 ~]# /u01/crs1020/bin/ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 2
Total space (kbytes) : 104216
Used space (kbytes) : 2848
Available space (kbytes) : 101368
ID : 1206524489
Device/File Name : /dev/raw/raw1
Device/File integrity check succeeded
Device/File Name : /dev/raw/raw2
Device/File integrity check succeeded
Cluster registry integrity check succeeded
[root@rac1 ~]# cat /etc/oracle/ocr.loc
#Device/file getting replaced by device /dev/raw/raw2
ocrconfig_loc=/dev/raw/raw1
ocrmirrorconfig_loc=/dev/raw/raw2
可见/dev/raw/raw2已经作为OCR的镜像存在。
4.小结
为防止OCR出现单点,我们可以使用OCR的镜像技术来完成。
Good luck.
secooler
10.11.03
-- The End --
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/28389881/viewspace-1251201/
,如需转载,请注明出处,否则将追究法律责任。