Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1150499
  • 博文数量: 178
  • 博客积分: 2776
  • 博客等级: 少校
  • 技术积分: 2809
  • 用 户 组: 普通用户
  • 注册时间: 2012-03-22 15:36
文章分类

全部博文(178)

文章存档

2014年(3)

2013年(66)

2012年(109)

分类: Oracle

2013-08-08 16:58:47

oracle视频教程http://www.cuug.com/jishushalong/shipinkecheng/

[root@rac1 devices]# modprobe bonding

[root@rac1 devices]#

 

---check network

[root@rac1 devices]# ifconfig

bond0     Link encap:Ethernet  HWaddr 00:0C:29:A7:65:F8 

          inet addr:192.168.73.10  Bcast:192.168.73.255  Mask:255.255.255.0

          inet6 addr: fe80::20c:29ff:fea7:65f8/64 Scope:Link

          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1

          RX packets:248296 errors:0 dropped:0 overruns:0 frame:0

          TX packets:166368 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:0

          RX bytes:198712779 (189.5 MiB)  TX bytes:83112558 (79.2 MiB)

 

eth0      Link encap:Ethernet  HWaddr 00:0C:29:A7:65:EE 

          inet addr:192.168.0.128  Bcast:192.168.0.255  Mask:255.255.255.0

          inet6 addr: fe80::20c:29ff:fea7:65ee/64 Scope:Link

          UP BROADCAST RUNNING MULTICAST  MTU:1460  Metric:1

          RX packets:8910 errors:0 dropped:0 overruns:0 frame:0

          TX packets:6416 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:961007 (938.4 KiB)  TX bytes:897232 (876.2 KiB)

          Interrupt:75 Base address:0x2424

 

eth1      Link encap:Ethernet  HWaddr 00:0C:29:A7:65:F8 

          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1

          RX packets:248290 errors:0 dropped:0 overruns:0 frame:0

          TX packets:166368 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:198712419 (189.5 MiB)  TX bytes:83112558 (79.2 MiB)

          Interrupt:67 Base address:0x24a4

 

eth2      Link encap:Ethernet  HWaddr 00:0C:29:A7:65:F8 

          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1

          RX packets:6 errors:0 dropped:0 overruns:0 frame:0

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:360 (360.0 b)  TX bytes:0 (0.0 b)

          Interrupt:59 Base address:0x28a4

 

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:43711 errors:0 dropped:0 overruns:0 frame:0

          TX packets:43711 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:0

          RX bytes:9908534 (9.4 MiB)  TX bytes:9908534 (9.4 MiB)

 

 

 

[root@rac2 ~]# ifconfig

bond0     Link encap:Ethernet  HWaddr 00:0C:29:68:6B:52 

          inet addr:192.168.73.11  Bcast:192.168.73.255  Mask:255.255.255.0

          inet6 addr: fe80::20c:29ff:fe68:6b52/64 Scope:Link

          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1

          RX packets:25 errors:0 dropped:0 overruns:0 frame:0

          TX packets:55 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:0

          RX bytes:4853 (4.7 KiB)  TX bytes:7044 (6.8 KiB)

 

eth0      Link encap:Ethernet  HWaddr 00:0C:29:68:6B:48 

          inet addr:192.168.0.129  Bcast:192.168.0.255  Mask:255.255.255.0

          inet6 addr: fe80::20c:29ff:fe68:6b48/64 Scope:Link

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:68 errors:0 dropped:0 overruns:0 frame:0

          TX packets:93 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:6205 (6.0 KiB)  TX bytes:12528 (12.2 KiB)

          Interrupt:75 Base address:0x2424

 

eth1      Link encap:Ethernet  HWaddr 00:0C:29:68:6B:52 

          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1

          RX packets:25 errors:0 dropped:0 overruns:0 frame:0

          TX packets:55 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:4853 (4.7 KiB)  TX bytes:7044 (6.8 KiB)

          Interrupt:67 Base address:0x24a4

 

eth2      Link encap:Ethernet  HWaddr 00:0C:29:68:6B:5C 

          inet6 addr: fe80::20c:29ff:fe68:6b5c/64 Scope:Link

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:20 errors:0 dropped:0 overruns:0 frame:0

          TX packets:30 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:3425 (3.3 KiB)  TX bytes:5321 (5.1 KiB)

          Interrupt:59 Base address:0x2824

 

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:3517 errors:0 dropped:0 overruns:0 frame:0

          TX packets:3517 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:0

          RX bytes:4765745 (4.5 MiB)  TX bytes:4765745 (4.5 MiB)

—-修复oracle cluster配置

---rac1

[root@rac1 bin]# cd /home/oracle/app/oracle/product/10.2.0/crs/bin

[root@rac1 bin]# ./crsctl start crs

Attempting to start CRS stack

The CRS stack will be started shortly

[root@rac1 bin]#  ./oifcfg iflist

eth0  192.168.0.0

bond0  192.168.73.0

[root@rac1 bin]# ./oifcfg delif

[root@rac1 bin]#

[root@rac1 bin]# ./oifcfg setif -global eth0/192.168.0.0:public

[root@rac1 bin]#

[root@rac1 bin]# ./oifcfg setif -global bond0/192.168.73.0:cluster_interconnect

[root@rac1 bin]#

 

---rac2

[root@rac2 bin]# ./oifcfg delif

[root@rac2 bin]#

[root@rac2 bin]# ./oifcfg setif -global eth0/192.168.0.0:public

PRIF-50: duplicate interface is given in the input

[root@rac2 network-scripts]# service network start

Bringing up loopback interface:  [  OK  ]

Bringing up interface bond0:  [  OK  ]

Bringing up interface eth0:  [  OK  ]

Bringing up interface eth2: 

Determining IP information for eth2... failed.

[FAILED]

删除复制到网卡文件,然后重启下network服务,再次运行oifcfg设置即可,如下:

[root@rac2 bin]# ./oifcfg iflist

eth0  192.168.0.0

bond0  192.168.73.0

[root@rac2 bin]# ./oifcfg delif

[root@rac2 bin]# ./oifcfg setif -global eth0/192.168.0.0:public

[root@rac2 bin]# ./oifcfg setif -global bond0/192.168.73.0:cluster_interconnect

 

 

---启动crs资源

[root@rac1 bin]# ./crs_stat -t -v

Name           Type           R/RA   F/FT   Target    State     Host       

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

ora....SM1.asm application    0/5    0/0    ONLINE    ONLINE    rac1       

ora....C1.lsnr application    0/5    0/0    ONLINE    ONLINE    rac1       

ora.rac1.gsd   application    0/5    0/0    ONLINE    ONLINE    rac1       

ora.rac1.ons   application    0/3    0/0    ONLINE    ONLINE    rac1       

ora.rac1.vip   application    0/0    0/0    ONLINE    ONLINE    rac1       

ora....SM2.asm application    0/5    0/0    ONLINE    ONLINE    rac2       

ora....C2.lsnr application    0/5    0/0    ONLINE    ONLINE    rac2       

ora.rac2.gsd   application    0/5    0/0    ONLINE    ONLINE    rac2       

ora.rac2.ons   application    0/3    0/0    ONLINE    ONLINE    rac2       

ora.rac2.vip   application    0/0    0/0    ONLINE    ONLINE    rac2       

ora.roger.db   application    0/0    0/1    ONLINE    ONLINE    rac1       

ora....lldb.cs application    0/0    0/1    ONLINE    ONLINE    rac1       

ora....er1.srv application    0/0    0/0    ONLINE    ONLINE    rac1       

ora....er2.srv application    0/0    0/0    ONLINE    ONLINE    rac2       

ora....r1.inst application    0/5    0/0    ONLINE    ONLINE    rac1       

ora....r2.inst application    0/5    0/0    ONLINE    ONLINE    rac2

 

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