检测硬件RDMA卡是否存在
1、检查网卡是否安装成功:
# lspci | grep Mellanox
83:00.0 Ethernet controller: Mellanox Technologies MT27710 Family [ConnectX-4 Lx]
2、查看系统网卡:
# ifconfig
eth0 Link encap:Ethernet HWaddr 18:66:DA:98:A3:02
inet addr:10.20.15.23 Bcast:10.20.15.127 Mask:255.255.255.128
......
3、查看系统里所有的网卡和工作状态:
# ip a
[root@rdma63 tcpdump]# ibv_devices
[root@rdma63 tcpdump]# ibv_devices
device node GUID
------ ----------------
mlx5_1 98039b03009a4296
mlx5_0 98039b03009a2b3a
[root@rdma63 tcpdump]# ibv_devinfo mlx5_0
[root@rdma63 tcpdump]# ibv_devinfo mlx5_0
hca_id: mlx5_1
transport: InfiniBand (0)
fw_ver: 16.29.1016
node_guid: 9803:9b03:009a:4296
sys_image_guid: 9803:9b03:009a:4296
vendor_id: 0x02c9
vendor_part_id: 4119
hw_ver: 0x0
board_id: MT_0000000010
phys_port_cnt: 1
Device ports:
port: 1
state: PORT_ACTIVE (4)
max_mtu: 4096 (5)
active_mtu: 1024 (3)
sm_lid: 0
port_lid: 0
port_lmc: 0x00
link_layer: Ethernethca_id: mlx5_0
transport: InfiniBand (0)
fw_ver: 16.29.1016
node_guid: 9803:9b03:009a:2b3a
sys_image_guid: 9803:9b03:009a:2b3a
vendor_id: 0x02c9
vendor_part_id: 4119
hw_ver: 0x0
board_id: MT_0000000010
phys_port_cnt: 1
Device ports:
port: 1
state: PORT_ACTIVE (4)
max_mtu: 4096 (5)
active_mtu: 1024 (3)
sm_lid: 0
port_lid: 0
port_lmc: 0x00
link_layer: Ethernet