问题描述:
在本地VM虚拟机模拟安装RAC时候,安装GI报错
原因:
第二台虚拟机是从第一台进行的克隆,导致第二台虚拟机的网卡接口名称与第一台不一致
、
RAC要求节点之间网卡名称必须一致,具体参考官方文档有提到:
https://docs.oracle.com/cd/E11882_01/install.112/e48194/prewin.htm#CWWIN227
处理方法:
对第二台虚拟机操作
跟前上面截图,修改相对于的网卡,即eth3→eth0 eth4→eth1 eth5→eth2
[root@breath02 ~]# vi /etc/udev/rules.d/70-persistent-net.rules
# PCI device 0x8086:0x100f (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:e4:4f:64", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x8086:0x100f (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:e4:4f:78", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
# PCI device 0x8086:0x100f (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:e4:4f:6e", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"
修改网卡配置文件
[root@breath02 network-scripts]# ll | grep ifcfg
-rw-r--r--. 1 root root 276 May 21 23:58 ifcfg-Auto_eth3
-rw-r--r--. 1 root root 247 May 21 23:57 ifcfg-Auto_eth4
-rw-r--r--. 1 root root 247 May 21 23:58 ifcfg-Auto_eth5
-rw-r--r--. 1 root root 231 May 21 23:40 ifcfg-eth0
-rw-r--r--. 1 root root 231 May 21 23:40 ifcfg-eth1
-rw-r--r--. 1 root root 231 May 21 23:40 ifcfg-eth2
-rw-r--r--. 1 root root 254 Oct 10 2013 ifcfg-lo
[root@breath02 network-scripts]# rm -rf ifcfg-eth*
[root@breath02 network-scripts]# mv ifcfg-Auto_eth3 ifcfg-eth0
[root@breath02 network-scripts]# mv ifcfg-Auto_eth4 ifcfg-eth1
[root@breath02 network-scripts]# mv ifcfg-Auto_eth5 ifcfg-eth2
重启生效:
[root@breath02 network-scripts]# reboot
[root@breath02 ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:E4:4F:64
inet addr:10.10.10.102 Bcast:10.10.10.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fee4:4f64/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:55 errors:0 dropped:0 overruns:0 frame:0
TX packets:68 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7986 (7.7 KiB) TX bytes:10132 (9.8 KiB)
eth1 Link encap:Ethernet HWaddr 00:0C:29:E4:4F:78
inet addr:192.168.1.103 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fee4:4f78/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:240 (240.0 b) TX bytes:726 (726.0 b)
eth2 Link encap:Ethernet HWaddr 00:0C:29:E4:4F:6E
inet addr:192.168.1.104 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fee4:4f6e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:60 (60.0 b) TX bytes:676 (676.0 b)