五、启动crs的gsd和ons
在rac1和rac2上停数据库和crs,只启动crs的gsd和ons
#cd /u01/app/Oracle/product/10.2.0/crs_1/bin
停数据库实例
#./srvctl stop instance –d devdb –i ora.devdb.devd1.inst
#./srvctl stop instance –d devdb –i ora.devdb.devd2.inst
停数据库
#./srvctl stop database –d devdb
停ASM实例
#./srvctl stop asm –n rac1
#./srvctl stop asm –n rac2
停vip,gsd,listener,ons
#./srvctl stop nodeapps –n rac1
#./srvctl stop nodeapps –n rac2
#./crs_start ora.rac1.gsd
#./crs_start ora.rac1.ons
#./crs_start ora.rac2.gsd
#./crs_start ora.rac2.ons
六、在rac1以root用户更改VIP到bond0网卡
#cd /u01/app/oracle/product/10.2.0/crs_1/bin
#./srvctl modify nodeapps –n rac1 –A 192.168.2.13/255.255.255.0/bond0
#./srvctl modify nodeapps –n rac1 –A rac1-vip/255.255.255.0/bond0
七、在rac2以root用户更改VIP到bond0网卡
#cd /u01/app/oracle/product/10.2.0/crs_1/bin
#./srvctl modify nodeapps –n rac2 –A 192.168.2.14/255.255.255.0/bond0
#./srvctl modify nodeapps –n rac2 –A rac2-vip/255.255.255.0/bond0
八、确认更改后的vip配置
#./srvctl config nodeapps –n rac1 –a
VIP exists.:/rac1-vip.mycorpdomain.com/192.168.2.13/255.255.255.0/bond0
#./srvctl config nodeapps –n rac2 –a
VIP exists.:/rac2-vip.mycorpdomain.com/192.168.2.14/255.255.255.0/bond0
九、更改完成,启动数据库相关进程
#./srvctl start nodeapps –n rac1
#./srvctl start nodeapps –n rac2
#./crs_start ora.rac1.ASM1.asm
#./crs_start ora.rac2.ASM2.asm
#./crs_start ora.devdb.db
十、查看crs状态
#crs_stat –t
从上面可以看出所有的进程状态都正常,绑定成功。
下面的步骤测试如何解除双网卡绑定
十一、停数据库和crs
在rac1和rac2上停数据库和crs
#cd /u01/app/oracle/product/10.2.0/crs_1/bin
停数据库实例
#./srvctl stop instance –d devdb –i ora.devdb.devd1.inst
#./srvctl stop instance –d devdb –i ora.devdb.devd2.inst
停数据库
#./srvctl stop database –d devdb
停ASM实例
#./srvctl stop asm –n rac1
#./srvctl stop asm –n rac2
停vip,gsd,listener,ons
#./srvctl stop nodeapps –n rac1
#./srvctl stop nodeapps –n rac2