设为首页 加入收藏

TOP

Oracle10g下ocr和votedisk的管理(六)
2015-07-24 11:24:03 来源: 作者: 【 】 浏览:14
Tags:Oracle10g ocr votedisk 管理
ucceeded Device/File Name : /dev/raw/raw4 Device/File integrity check succeeded Cluster registry integrity check succeeded [root@node1 bin]# ssh node2 cat /etc/oracle/ocr.loc root@node2's password: #Device/file /dev/raw/raw1 getting replaced by device /dev/raw/raw3 ocrconfig_loc=/dev/raw/raw3 ocrmirrorconfig_loc=/dev/raw/raw4 local_only=false

新增或者删除orc最好在所有节点都在线时进行,否则会出现节点信息不同步的情况,

例如:如果在节点node2关闭时,在节点node1进行ocr删除操作,结果如下

[root@node1 bin]# ssh node2 /u01/app/crs_home/bin/crsctl stop crs
root@node2's password: 
Permission denied, please try again.
root@node2's password: 
Stopping resources. This could take several minutes.
Successfully stopped CRS resources.
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.
[root@node1 bin]# ssh node2 /u01/app/crs_home/bin/crsctl check crs
root@node2's password: 
Failure 1 contacting CSS daemon
Cannot communicate with CRS
Cannot communicate with EVM 
[root@node1 bin]# ./ocrcheck
Status of Oracle Cluster Registry is as follows :
	 Version                  :          2
	 Total space (kbytes)     :    1125736
	 Used space (kbytes)      :       3852
	 Available space (kbytes) :    1121884
	 ID                       :  849560479
	 Device/File Name         : /dev/raw/raw3
                                    Device/File integrity check succeeded
	 Device/File Name         : /dev/raw/raw4
                                    Device/File integrity check succeeded

	 Cluster registry integrity check succeeded

[root@node1 bin]# ./ocrconfig -replace ocrmirror 
[root@node1 bin]# ./ocrcheck
Status of Oracle Cluster Registry is as follows :
	 Version                  :          2
	 Total space (kbytes)     :    1125736
	 Used space (kbytes)      :       3852
	 Available space (kbytes) :    1121884
	 ID                       :  849560479
	 Device/File Name         : /dev/raw/raw3
                                    Device/File integrity check succeeded

                                    Device/File not configured

	 Cluster registry integrity check succeeded

[root@node1 bin]# cat /etc/oracle/ocr.loc 
#Device/file /dev/raw/raw4 being deleted 
ocrconfig_loc=/dev/raw/raw3
local_only=false[root@node1 bin]# ssh node2 cat /etc/oracle/ocr.loc 
root@node2's password: 
Permission denied, please try again.
root@node2's password: 
#Device/file /dev/raw/raw1 getting replaced by device /dev/raw/raw3 
ocrconfig_loc=/dev/raw/raw3
ocrmirrorconfig_loc=/dev/raw/raw4
local_only=false[root@node1 bin]# ssh node2 /u01/app/crs_home/bin/crsctl start crs
root@node2's password: 
Attempting to start CRS stack 
The CRS stack will be started shortly
[root@node1 bin]# ssh node2 /u01/app/crs_home/bin/crsctl check crs
root@node2's password: 
Failure 1 contacting CSS daemon
Cannot communicate with CRS
Cannot communicate with EVM 
[root@node1 bin]# ssh node2 /u01/app/crs_home/bin/ocrconfig -repair ocrmirror
root@node2's password: 
[root@node1 bin]# ssh node2 cat /etc/oracle/ocr.loc 
root@node2's password: 
#Device/file /dev/raw/raw4 being deleted 
ocrconfig_loc=/dev/raw/raw3
local_only=false[r
[root@node1 bin]# ssh node2 /u01/app/crs_home/bin/crsctl start crs
root@node2's password: 
Attempting to start CRS stack 
The CRS stack will be started shortly
[root@node1 bin]# ssh node2 /u01/app/crs_home/bin/crsctl check crs
root@node2's password: 
CSS appears healthy
CRS appears healthy
EVM appears healthy
结论:在增加、删除、替换ocr时,所有节点最好同时在线,在导入导出或者恢复ocr是,cluster节点需要关闭

如何添加/删除votedisk?

添加删除votedisk可以使用crsctl命令:

[root@node1 bin]# ./crsctl 
Usag
首页 上一页 3 4 5 6 7 8 9 下一页 尾页 6/9/9
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇Oracle启动和关闭服务 下一篇oracle中把表导出为txt文件方法

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·你必须要弄懂的多线 (2025-12-25 04:22:35)
·如何在 Java 中实现 (2025-12-25 04:22:32)
·Java【多线程】单例 (2025-12-25 04:22:29)
·C++中智能指针的性能 (2025-12-25 03:49:29)
·如何用智能指针实现c (2025-12-25 03:49:27)