Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3349281
  • 博文数量: 815
  • 博客积分: 12898
  • 博客等级: 上将
  • 技术积分: 7883
  • 用 户 组: 普通用户
  • 注册时间: 2006-12-25 09:57
文章分类

全部博文(815)

文章存档

2014年(1)

2011年(46)

2010年(192)

2009年(121)

2008年(70)

2007年(385)

分类: Oracle

2010-01-09 23:17:45

[root@oraix1 oracle]#srvctl modify nodeapps -n oraix1 -A 172.16.246.31/255.255.255.0/eth0

srvctl modify nodeapps -n oraix1 -A oraix1-vip/255.255.255.0/eth0

分别修改所有主机的hosts,将原来IP修改为新的IP

[root@oraix1 oracle]#srvctl start nodeapps -n oraix1

最好能重新启动一下RAC1的相关服务

[root@oraix1 tmp]# srvctl config database -d rac -a
PRKR-1001 : cluster database rac does not exist
PRKO-2005 : Application error: Failure in getting Cluster Database Configuration for: rac
[root@oraix1 tmp]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:CD:BF:6D
inet addr:172.16.246.30 Bcast:172.16.246.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fecd:bf6d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1525 errors:0 dropped:0 overruns:0 frame:0
TX packets:1213 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:126668 (123.6 KiB) TX bytes:256702 (250.6 KiB)
Interrupt:169 Base address:0x14a4

eth0:1 Link encap:Ethernet HWaddr 00:0C:29:CD:BF:6D
inet addr:172.16.246.31 Bcast:172.16.246.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:169 Base address:0x14a4

eth0:2 Link encap:Ethernet HWaddr 00:0C:29:CD:BF:6D
inet addr:192.168.0.33 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:169 Base address:0x14a4

eth1 Link encap:Ethernet HWaddr 00:0C:29:CD:BF:77
inet addr:172.16.25.30 Bcast:172.16.25.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fecd:bf77/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:846 (846.0 b)
Interrupt:193 Base address:0x1824

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1691 errors:0 dropped:0 overruns:0 frame:0
TX packets:1691 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:864292 (844.0 KiB) TX bytes:864292 (844.0 KiB)

在修改vip时发生了一点小插曲,即重启crs后发现原来的vip和新vip同时出现

[root@oraix1 tmp]# ifconfig eth0:2 down

用ifconfig 将旧vip给down掉,再重启发现旧vip消失了

[root@oraix1 ~]# srvctl stop nodeapps -n oraix1
[root@oraix1 ~]# srvctl start nodeapps -n oraix1
[root@oraix1 ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:CD:BF:6D
inet addr:172.16.246.30 Bcast:172.16.246.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fecd:bf6d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2513 errors:0 dropped:0 overruns:0 frame:0
TX packets:1926 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:210716 (205.7 KiB) TX bytes:382940 (373.9 KiB)
Interrupt:169 Base address:0x14a4

eth1 Link encap:Ethernet HWaddr 00:0C:29:CD:BF:77
inet addr:172.16.25.30 Bcast:172.16.25.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fecd:bf77/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:120 (120.0 b) TX bytes:846 (846.0 b)
Interrupt:193 Base address:0x1824

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:3780 errors:0 dropped:0 overruns:0 frame:0
TX packets:3780 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1187571 (1.1 MiB) TX bytes:1187571 (1.1 MiB)

重启主机测试


完成

阅读(2367) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~