标签:blog io for div cti sp log html on
查看votingdisk的存放位置
[oracle@rac2 crs_data]$ crsctl query css votedisk 0. 0 /oradata/crs_data/vote.dat located 1 votedisk(s).
oracle不会自动备份votedisk,votedisk备份可以镜像拷贝,oracle不会自动恢复,当有2/3的voting存在时,rac处于active状态,小于2/3时,就会出现脑裂
增加votedisk,需要先停止crs服务,否则有可能会损坏ocr
停止服务:
[oracle@rac2 crs_data]$ sudo crsctl stop crs Stopping 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/vote Cluster is not in a ready state for online disk addition
[oracle@rac2 crs_data]$ sudo crsctl add css votedisk /oradata/crs_data/vote -force Now formatting voting disk: /oradata/crs_data/vote successful 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/vote located 2 votedisk(s).
删除旧的votedisk
[oracle@rac2 crs_data]$ sudo crsctl delete css votedisk /oradata/crs_data/vote.dat -force successful deletion of votedisk /oradata/crs_data/vote.dat.
查看一下
[oracle@rac2 crs_data]$ crsctl query css votedisk 0. 0 /oradata/crs_data/vote located 1 votedisk(s).
标签:blog io for div cti sp log html on
原文地址:http://www.cnblogs.com/redoracle/p/3952293.html