日期:2014-05-16 浏览次数:20612 次
Oracle RAC 备份和恢复Voting Disks 参考:http://blog.csdn.net/laoshangxyc/article/details/8670425
添加删除voting Disk示例:
环境:
1.查看当前的Voting Disks和关闭Oracle Clusterware
注意:添加和删除Voting Disk应先关闭所有节点Oracle Clusterware。虽然加-force参数能在线操作,但有可能会损坏集群配置。
[root@node1 bin]# ./crsctl stop crs Stopping resources. Successfully stopped CRS resources Stopping CSSD. Shutting down CSS daemon. Shutdown request successfully issued. [root@node2 bin]# ./crsctl stop crs Stopping resources. Successfully stopped CRS resources Stopping CSSD. Shutting down CSS daemon. Shutdown request successfully issued.
2.增加Voting Disk
[root@node1 bin]# ./crsctl add css votedisk /dev/raw/raw5 -force Now formatting voting disk: /dev/raw/raw5 successful addition of votedisk /dev/raw/raw5.如果不加-force则会出现如下情况:
[root@node1 bin]# ./crsctl add css votedisk /dev/raw/raw6 Cluster is not in a ready state for online disk addition
3.查看刚添加的Voting Disk
[oracle@node1 ~]$ crsctl query css votedisk 0. 0 /dev/raw/raw2 1. 0 /dev/raw/raw5
可以看到raw5已添加成功。
4.删除Voting Disk(先查看和关闭Oracle clusterware,同上)
[root@node1 bin]# ./crsctl delete css votedisk /dev/raw/raw5 -force successful deletion of votedisk /dev/raw/raw5.如果不加-force则会出现如下情况:
[root@node1 bin]# ./crsctl delete css votedisk /dev/raw/raw5 Cluster is not in a ready state for online disk removal
5.查看是否已删除
[root@node1 bin]# ./crsctl query css votedisk 0. 0 /dev/raw/raw2 located 1 votedisk(s).