全部博文(389)
分类: Oracle
2014-08-20 17:25:33
ORACLE 12C Flex ASM转换
ORACLE 12C一个很重要功能增强就是引入了FLEX CLUSTER.不过在配置FLEX CLUSTER之前,需要有
FLEX ASM。 FLEX ASM可以在安装集群的时候设置,也可以在安装完成后手动转换.
例如有rac节点,rac1和rac2,以前该ASM是标准的clustre模式,现在需要转换到flex asm。
在引入flex asm之后,网络类型由原来的public和private,增加了到public,private,asm三种. asm network
用来请求远方asm instance的存储数据流.
[root@rac1 ~]# oifcfg getif
eth0 192.168.233.0 global public
eth1 10.0.0.0 global cluster_interconnect
设置eth1为asm network
[root@rac1 ~]# oifcfg getif
eth0 192.168.233.0 global public
eth1 10.0.0.0 global asm
使用x窗口,以grid用户执行asmca
[grid@rac1 ~]$ asmca
也可以通过
[grid@rac1 ~]$ asmca -slient -converttoflexasm -asmnetworks eth1/10.0.0.0 -asmlistenerport 1521
执行完成后,需要在所有的节点上再以root执行脚本converttoFlexASM.sh
[root@rac1 ~]# /u01/app/oracle/cfgtoollogs/asmca/scripts/converttoFlexASM.sh
CRS-2673: Attempting to stop 'ora.crsd' on 'rac1'
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'rac1'
CRS-2673: Attempting to stop 'ora.LISTENER.lsnr' on 'rac1'
CRS-2673: Attempting to stop 'ora.tt.db' on 'rac1'
CRS-2673: Attempting to stop 'ora.LISTENER2.lsnr' on 'rac1'
CRS-2673: Attempting to stop 'ora.LISTENER_SCAN1_NET2.lsnr' on 'rac1'
CRS-2673: Attempting to stop 'ora.cvu' on 'rac1'
CRS-2677: Stop of 'ora.LISTENER2.lsnr' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.rac1_2.vip' on 'rac1'
CRS-2677: Stop of 'ora.LISTENER.lsnr' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.rac1.vip' on 'rac1'
CRS-2677: Stop of 'ora.LISTENER_SCAN1_NET2.lsnr' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.scan1_net2.vip' on 'rac1'
CRS-2677: Stop of 'ora.cvu' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.cvu' on 'rac2'
...........................................
[root@rac1 scripts]# scp converttoFlexASM.sh rac2:/root --另一个节点不会有该脚本,需要手动拷过去.
确认flex asm已经转换完成
[root@rac1 cfgtoollogs]# asmcmd showclustermode
ASM cluster : Flex mode enabled
现在rac2节点已经是flex asm的hub节点了
[root@rac2 cfgtoollogs]# srvctl status asm -detail
ASM is running on rac2
ASM is enabled.