重新配置OCR和vote disk (11.2.0.1.0)
重新配置OCR和vote disk (11.2.0.1.0)
1. 将原ocr和vote disk所在的磁盘组的磁盘格式化
[root@pmstest2 ~]# dd if=/dev/zero of=/dev/sdb bs=1024k count=1
1+0 records in
1+0 records out
1048576 bytes (1.0 MB) copied, 0.0469869 seconds, 22.3 MB/s
[root@pmstest2 ~]# dd if=/dev/zero of=/dev/sdc bs=1024k count=1
1+0 records in
1+0 records out
1048576 bytes (1.0 MB) copied, 0.0406662 seconds, 25.8 MB/s
[root@pmstest2 ~]# dd if=/dev/zero of=/dev/sdd bs=1024k count=1
1+0 records in
1+0 records out
1048576 bytes (1.0 MB) copied, 0.062938 seconds, 16.7 MB/s
2.每个节点执行下面脚本清除集群配置
cd $GRID_HOME/crs/install
./rootcrs.pl -deconfig -verbose -force
3.在节点1 执行下面脚本
cd $GRID_BASE/oraInventory
./orainstRoot.sh
cd $GRID_HOME/
./root.sh
4.在节点2 执行下面脚本
cd $GRID_BASE/oraInventory
./orainstRoot.sh
cd $GRID_HOME/
./root.sh
监控日志:$GRID_HOME/log/{hostname}|alter*
5. 吧其他磁盘组加载
alter diskgroup data mount;
alter diskgroup fra mount;
6. 注册资源
srvctl add database -d pmstest -o /u01/app/Oracle/11.2.0/db_1
srvctl add instance -d pmstest -i pmstest1 -n pmstest1
srvctl add instance -d pmstest -i pmstest2 -n pmstest2
srvctl start database -d pmstest 启动数据库