11gR2RAC更改IP

更改前:

#eth0 - Public IP
192.168.21.201  rac1
192.168.21.202  rac2
#eth1 - Private IP
10.10.10.201    rac1-priv
10.10.10.202    rac2-priv
#VIP
192.168.21.211    rac1-vip
192.168.21.212    rac2-vip
#SCAN
192.168.21.204  rac-cluster-scan


更改后:

#eth0 - Public IP
192.168.21.151  rac1
192.168.21.152  rac2
#eth1 - Private IP
10.10.10.151    rac1-priv
10.10.10.152    rac2-priv
#VIP
192.168.21.153    rac1-vip
192.168.21.154    rac2-vip
#SCAN
192.168.21.155  rac-cluster-scan



1.更改Public IP和Private IP

$ oifcfg getif

eth0  168.168.21.0  global  public
eth1  10.10.10.0  global  cluster_interconnect


$ oifcfg delif -global eth0
$ oifcfg setif -global eth0/168.168.21.0:public


./oifcfg delif -global eth1
./oifcfg setif -global eth1/10.10.10.0:cluster_interconnect

#######我这里无需修改


2.修改VIP

su root

#srvctl modify nodeapps -n rac1 -A 192.168.21.153/255.255.0.0/eth0
#srvctl modify nodeapps -n rac2 -A 192.168.21.154/255.255.0.0/eth0


3.修改scan IP


[grid@rac1 ~]$ srvctl config scan
SCAN 名称: rac-cluster-scan, 网络: 1/192.168.21.0/255.255.255.0/eth0
SCAN VIP 名称: scan1, IP: /rac-cluster-scan/192.168.21.155
[grid@rac1 ~]$ 

停止服务

$srvctl stop scan_listener
$srvctl stop scan
$srvctl status scan

$su root

#vi /etc/hosts
    # SCAN
    192.168.21.204  rac-cluster-scan
改为:
    # SCAN
   192.168.21.155  rac-cluster-scan
   
#srvctl modify scan -n rac-cluster-scan


检查修改结果:
#srvctl config scan


启动scan:
$srvctl start scan
$srvctl start scan_listener


4.修改/etc/hosts和OS的IP


5.重启服务器



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值