IB 网卡在安装在机器上以后,需要有对应的驱动才可以正常使用。
一般情况下,内核就可以驱动 IB 网卡,如果为了性能或者其他考虑可以安装原厂的驱动。
现在简单记录一下,内核驱动 IB 以后如何快速上手使用。
安装 IB 工具包
1
   | yum install -y infiniband-diags
   | 
 
安装子网管理器
1 2 3
   | yum install -y opensm systemctl start opensm systemctl enable opensm
   | 
 
 接下来就可以使用了。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
   | [root@test01 ~] Infiniband device 'mthca0' port 1 status: 	default gid:	 fe80:0000:0000:0000:0002:c902:0021:56d9 	base lid:	 0x0 	sm lid:		 0x0 	state:		 1: DOWN 	phys state:	 2: Polling 	rate:		 10 Gb/sec (4X) 	link_layer:	 InfiniBand
  Infiniband device 'mthca0' port 2 status: 	default gid:	 fe80:0000:0000:0000:0002:c902:0021:56da 	base lid:	 0x1 	sm lid:		 0x1 	state:		 4: ACTIVE 	phys state:	 5: LinkUp 	rate:		 20 Gb/sec (4X DDR) 	link_layer:	 InfiniBand
   | 
 
======================
Erdong, A Linux user !