安装ubuntu16.04到最后选择安装服务时通过空格
勾选
网卡 bond1 、集群内机器之间访问无网络限制
操作系统 raid1
数据盘得根据咱们的用途来看做raid几,如果用于ceph 就做单盘 raid0 ,其他做raid5
操作系统 bc-euler 21.10 及以上或者 bc-龙蜥 8.2以上
root@ubuntu:~# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).source /etc/network/interfaces.d/*# The loopback network interface
auto lo
iface lo inet loopback# The primary network interface
auto ens33iface ens33 inet staticaddress 192.168.200.215netmask 255.255.255.0gateway 192.168.200.250dns-nameserve 192.168.200.250
root@ubuntu:~# sudo /etc/init.d/networking restart
ethtool 查看网口状态
ethtool eth0
测试ip a 后显示出来的网卡信息对应的物理网卡口 ,可以观察网卡口指示灯是否闪
ethtool -p eth0
#Business mouth
auto ens5f0
iface ens5f0 inet manual
bond-master bond0auto ens5f1
iface ens5f1 inet manual
bond-master bond0auth bond0
iface bond0 inet static
address 172.16.4.10
netmask 255.255.255.0
gateway 172.16.4.254
bond-slaves ens5f0 ens5f1
bond-lacp-rate 1
bond-mode 4
bond-miimon 100#Storage port
auto ens7f0
iface ens7f0 inet manual
bond-master bond1auto ens7f1
iface ens7f1 inet manual
bond-master bond1auth bond1
iface ens7f0 inet static
address 172.16.5.10
netmask 255.255.255.0
gateway 172.16.5.254
bond-slaves ens7f0 ens7f1
bond-lacp-rate 1
bond-mode 4
bond-miimon 100/etc/init.d/networking restart ifdown bond0 && ifup bond0
ifdown bond1 && ifup bond1# 在bond1的网关上添加路由
route add -net 172.16.4.0/24 gw 172.16.4.254# 在bond2的网关上添加路由
route add -net 172.16.5.0/24 gw 172.16.5.254