root用户,所有节点均进行操作:
[root@node1 ~]# crsctl stop crs Stopping resources. This could take several minutes. Successfully stopped CRS resources. Stopping CSSD. Shutting down CSS daemon. Shutdown request successfully issued.
修改/etc/hosts文件中的private ip内容
root用户,所有节点均进行操作:
# 修改前hosts文件 [root@node1 ~]# cat /etc/hosts # Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 localhost.localdomain localhost ::1 localhost6.localdomain6 localhost6 192.168.56.20 node1 192.168.56.21 node2 192.168.56.98 node1-vip 192.168.56.99 node2-vip 10.1.1.1 node1-priv 10.1.1.2 node2-priv # 修改后hosts文件 [root@node1 ~]# cat /etc/hosts # Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 localhost.localdomain localhost ::1 localhost6.localdomain6 localhost6 192.168.56.20 node1 192.168.56.21 node2 192.168.56.98 node1-vip 192.168.56.99 node2-vip 10.10.10.1 node1-priv 10.10.10.2 node2-priv
修改操作系统IP
root用户,所有节点均操作:
[root@node1 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1 # Intel Corporation 82540EM Gigabit Ethernet Controller DEVICE=eth1 BOOTPROTO=none ONBOOT=yes HWADDR=08:00:27:cb:6a:bb TYPE=Ethernet NETMASK=255.255.255.0 IPADDR=10.10.10.1 USERCTL=no IPV6INIT=no PEERDNS=yes #重启网络服务 [root@node1 ~]# service network restart [root@node1 ~]# ifconfig eth1 eth1 Link encap:Ethernet HWaddr 08:00:27:CB:6A:BB inet addr:10.10.10.1 Bcast:10.10.10.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:135852 errors:0 dropped:0 overruns:0 frame:0 TX packets:112129 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:84007109 (80.1 MiB) TX bytes:52783613 (50.3 MiB) [root@node2 network-scripts]# ifconfig eth1 eth1 Link encap:Ethernet HWaddr 08:00:27:F6:DB:67 inet addr:10.10.10.2 Bcast:10.10.10.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:112136 errors:0 dropped:0 overruns:0 frame:0 TX packets:135677 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:52778410 (50.3 MiB) TX bytes:83970669 (80.0 MiB) # 保证所有节点的心跳可以相互ping通 [root@node1 ~]# ping 10.10.10.2 PING 10.10.10.2 (10.10.10.2) 56(84) bytes of data. 64 bytes from 10.10.10.2: icmp_seq=1 ttl=64 time=0.884 ms 64 bytes from 10.10.10.2: icmp_seq=2 ttl=64 time=0.206 ms
启动CRS