日期:2014-05-16  浏览次数:20559 次

Oracle 11gR2 RAC 单网卡 转 双网卡绑定 配置步骤



之前写过一篇双网卡绑定的文章,如下:

Oracle RAC 与 网卡绑定

http://blog.csdn.net/tianlesoftware/article/details/6189639

 

Oracle RAC 修改 IP 地址

http://blog.csdn.net/tianlesoftware/article/details/5362925

 

这篇看一个完整的RAC修改网卡绑定的例子。

 

一.原RAC信息

 

数据库:11.2.0.3

操作系统: Redhat 5.8

 

[root@rac1 ~]# cat /etc/hosts

127.0.0.1 localhost

 

192.168.16.200 rac1 rac1-public

192.168.0.100 rac1-priv

192.168.16.201 rac1-vip

 

192.168.16.202 rac2 rac2-public

192.168.0.200 rac2-priv

192.168.16.203 rac2-vip

 

192.168.16.207 rac-scan

 

每个节点的服务器有4个网卡。 eth0对应Public IP,eth1 对应Private IP。

 

[root@rac1 ~]# srvctl config nodeapps

Network exists:1/192.168.16.0/255.255.255.0/eth0, type static

VIP exists:/rac1-vip/192.168.16.201/192.168.16.0/255.255.255.0/eth0, hosting node rac1

VIP exists:/rac2-vip/192.168.16.203/192.168.16.0/255.255.255.0/eth0, hosting node rac2

GSD exists

ONS exists: Local port 6100, remote port6200, EM port 2016

 

[root@rac1 ~]# srvctl config nodeapps -nrac1 -a

-n <node_name> option has beendeprecated.

Network exists:1/192.168.16.0/255.255.255.0/eth0, type static

VIP exists: /rac1-vip/192.168.16.201/192.168.16.0/255.255.255.0/eth0,hosting node rac1

 

[root@rac1 ~]# srvctl config nodeapps -nrac2 -a

-n <node_name> option has beendeprecated.

Network exists:1/192.168.16.0/255.255.255.0/eth0, type static

VIP exists: /rac2-vip/192.168.16.203/192.168.16.0/255.255.255.0/eth0,hosting node rac2

[root@rac1 ~]#

 

 

二.修改RAC 配置

 

之前的测试是先修改双网卡的绑定,但是一旦修改之后,RAC就不能启动,也就不能进行修改,所以我们这里先修改。修改完之后在该双网卡。

 

2.1 备份OCR和VOTINGDISK

 

[root@rac1 ~]# crsctl query css votedisk

## STATE    File Universal Id                File Name Disk group

-- -----    -----------------                --------- ---------

 1.ONLINE   6be9df5e116e4fa6bfea0a06cec3a0e5(/dev/asm-diskb) [OCRVOTING]

 2.ONLINE   0935e75b0c3e4fe3bf34ec484d7a332e(/dev/asm-diskc) [OCRVOTING]

 3.ONLINE   9191596fff034f6abfcdaf3b77dbadd9(/dev/asm-diskd) [OCRVOTING]

 4.ONLINE   3ed8af5882454ffdbf1ac89b47531b96(/dev/asm-diske) [OCRVOTING]

 5.ONLINE   52cb435078424fc5bfd693bdb0e6771b(/dev/asm-diskf) [OCRVOTING]

 

[root@rac1 ~]# dd if=/dev/asm-diskbof=/u01/backup/voting_disk.bak

2097152+0 records in

2097152+0 records out

1073741824 bytes (1.1 GB) copied, 15.5894seconds, 68.9 MB/s

 

 

[root@rac1 ~]# ocrconfig -export/u01/backup/ocr.exp

[root@rac1 ~]# ocrconfig -showbackup

 

rac2    2013/02/25 20:28:57    /u01/app/grid/11.2.0/cdata/rac-cluster/backup00.ocr

rac2    2013/02/25 16:28:57    /u01/app/grid/11.2.0/cdata/rac-cluster/backup01.ocr

rac2    2013/02/25 12:28:57    /u01/app/grid/11.2.0/cdata/rac-cluster/backup02.ocr

rac1    2013/02/24 06:05:17    /u01/app/grid/11.2.0/cdata/rac-cluster/day.ocr

rac1    2013/02/19 18:18:35    /u01/app/grid/11.2.0/cdata/rac-cluster/week.ocr

 

 

 

2.1 修改网卡和IP信息

 

2.1.1 RAC 进程信息

[root@rac1 ~]# crs_stat -t

Name