本文檔介紹如何在安裝了Mellanox
ConnectX?-5網(wǎng)卡的Linux物理/虛擬機上安裝和測試Mellanox OFED 驅(qū)動蛙卤。
下載Mellanox OFED
1.驗證系統(tǒng)是否安裝了Mellanox網(wǎng)卡噩死。以下示例顯示了安裝了Mellanox HCA的系統(tǒng):
[if !vml]
[endif]
2.根據(jù)您的操作系統(tǒng)下載ISO映像到服務(wù)器共享文件夾⌒朽停可以從以下網(wǎng)址下載:http://www.mellanox.com?>
Products > Software > InfiniBand/VPI Drivers > Mellanox OFED Linux
(MLNX_OFED) >?Download.
[if !vml]
[endif]
安裝Mellanox OFED
1.以root用戶身份登錄安裝計算機垛耳。
2.將下載的ISO復(fù)制到/root
3.在機器上安裝ISO映像飘千。
# mkdir /mnt/iso?#?mount -o loop/share/MLNX_OFED_LINUX-4.2-1.0.0.0-ubuntu16.04-x86_64.iso /mnt/iso?# cd/mnt/iso
4.運行安裝程序栈雳,安裝完成后重啟服務(wù)器护奈。
# ./mlnxofedinstall
# /etc/init.d/openibd restart# reboot
4. 默認情況下哥纫,兩個ConnectX?-5 VPI端口都初始化為InfiniBand端口。ConnectX?-5端口可以單獨配置為InfiniBand或以太網(wǎng)端口厌秒。檢查端口的類型:
[if !supportLists]1.???[endif]?
# ibv_devinfo
[if !vml]
[endif]
[if !supportLists]2.???[endif]如果您看到以下情況松靡,請將接口端口類型更改為以太網(wǎng)[if !vml]
[endif]
[if !supportLineBreakNewLine]
[endif]
# mst start
# mst status
# mlxconfig -d /dev/mst/mt4121_pciconf0 s LINK_TYPE_P1=2
# reboot
# ibv_devinfo
5.運行ibdev2netdev,查看以太網(wǎng)設(shè)備和IB設(shè)備/端口之間的關(guān)聯(lián)雕欺。
# ibdev2netdev
#?ifconfig enp1f0 31.31.31.41 netmask 255.255.255.0
# vim /etc/network/interfaces
auto?eno0
iface?eno0?inet dhcp
auto?enp1f0
iface eenp1f0?inet static
address 31.31.31.41
netmask 255.255.255.0
6.檢查網(wǎng)絡(luò)配置是否設(shè)置正確。
# ifconfig -a