RAC添加OCR 位置
RAC添加OCR 位置对OCR的修改会同步到节点上OCR的配置文件:ocr.loc。即使在另一个节点的crs关闭的情况下,在启动的时候也会自动更新OCR的变化。
添加语法如下:# ocrconfig -add +asm_disk_group | file_name
添加完成之后,使用命令验证#ocrcheck
查看ocr的位置[root@rac2 ~]# ocrcheckStatus of Oracle Cluster Registry is as follows :Version : 3Total space (kbytes) : 262120Used space (kbytes) : 3352Available space (kbytes) : 258768ID : 2129345179Device/File Name : +CRSDevice/File integrity check succeededDevice/File not configuredDevice/File not configuredDevice/File not configuredDevice/File not configuredCluster registry integrity check succeeded
查看磁盘组[grid@rac1 ~]$ kfod op=groups--------------------------------------------------------------------------------Group Size Free Redundancy Name===============================================1: 10236 Mb 922 Mb EXTERN OGG2: 5114 Mb 4784 Mb EXTERN FRA3: 20473 Mb 18208 Mb EXTERN DATA4: 5114 Mb 4718 Mb EXTERN CRS
将ocr添加到fra[root@rac1 ~]# ocrconfig -add +fra
验证[root@rac1 ~]# ocrcheckStatus of Oracle Cluster Registry is as follows :Version : 3Total space (kbytes) : 262120Used space (kbytes) : 3352Available space (kbytes) : 258768ID : 2129345179Device/File Name : +CRSDevice/File integrity check succeededDevice/File Name : +fraDevice/File integrity check succeededDevice/File not configuredDevice/File not configuredDevice/File not configuredCluster registry integrity check succeeded
查看配置文件是否跟新[root@rac1 ~]# cd /etc/oracle/[root@rac1 oracle]# cat ocr.loc#Device/file getting replaced by device +fraocrconfig_loc=+CRSocrmirrorconfig_loc=+fra
节点2验证[root@rac2 oracle]# cat ocr.loc#Device/file getting replaced by device +fraocrconfig_loc=+CRSocrmirrorconfig_loc=+fra
--检查ASM 文件是否存在[grid@rac1 ~]$ asmcmd -pASMCMD [+fra/rac-cluster/ocrfile] > lsREGISTRY.255.971178369
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。