Mellanox RDMA网卡驱动安装
1 RDMA驱动安装
# 1. get OFED
# https://cn.mellanox.com/products/infiniband-drivers/linux/mlnx_ofed
tar -xvf xxx.tar.gz
cd MLNX_OFED_LINUX-xxxx-x86_64
sudo ./mlnxofedinstall --add-kernel-support
# after successful
sudo /etc/init.d/openibd restart
# show RNIC status
sudo hca_self_test.ofed # results should be "PASS"
# other command about showing the tatus of RNIC
ibstat
ibstatus
ibv_devinfo
ibv_devices
ibnodes
# change model of RNIC (ETH or Infiniband)
systemctl start mst
mst status # we will get MST devices: e.g., /dev/mst/mt4119_pciconf0 & domain:bus:dev.fn=0000:d8:00.0 addr.reg=88....
# show RNIC model
mlxconfig -d /dev/mst/mt4119_pciconf0 query # we get the result like this : LINK_TYPE_P1 ETH(2)