首页 > 代码库 > votdisk的添加删除

votdisk的添加删除

查看votingdisk的存放位置

[oracle@rac2 crs_data]$ crsctl query  css votedisk 0.     0    /oradata/crs_data/vote.datlocated 1 votedisk(s).

oracle不会自动备份votedisk,votedisk备份可以镜像拷贝,oracle不会自动恢复,当有2/3的voting存在时,rac处于active状态,小于2/3时,就会出现脑裂

增加votedisk,需要先停止crs服务,否则有可能会损坏ocr

停止服务:

[oracle@rac2 crs_data]$ sudo crsctl stop crsStopping resources. This could take several minutes.Successfully stopped CRS resources.Stopping CSSD.Shutting down CSS daemon.Shutdown request successfully issued.

增加votedisk,需要加上-force参数,否则会报错: Cluster is not in a ready state for online disk addition

[oracle@rac2 crs_data]$ sudo crsctl add css votedisk /oradata/crs_data/voteCluster is not in a ready state for online disk addition
[oracle@rac2 crs_data]$ sudo crsctl add css votedisk /oradata/crs_data/vote -forceNow formatting voting disk: /oradata/crs_data/votesuccessful addition of votedisk /oradata/crs_data/vote.

再次查询,就可以看到有2个votedisk了

[oracle@rac2 crs_data]$ crsctl query css votedisk 0.     0    /oradata/crs_data/vote.dat 1.     0    /oradata/crs_data/votelocated 2 votedisk(s).

删除旧的votedisk

[oracle@rac2 crs_data]$ sudo crsctl delete css votedisk /oradata/crs_data/vote.dat -forcesuccessful deletion of votedisk /oradata/crs_data/vote.dat.

查看一下

[oracle@rac2 crs_data]$ crsctl query css votedisk 0.     0    /oradata/crs_data/votelocated 1 votedisk(s).

 

votdisk的添加删除