Infiniband 端口状态为 UP 但无法打开 UMAD 端口 ((null):0)

Sid*_*ana 5 infiniband linux-networking

我的系统有 2 个 infiniband 设备,其中之一的两个端口均已打开。

$> ibstatus
  Infiniband device 'mlx4_0' port 1 status:
         default gid:     fe80:0000:0000:0000:0002:c903:000f:0a9f
          base lid:        0x22
          sm lid:          0x1
          state:           4: ACTIVE
          phys state:      5: LinkUp
          rate:            20 Gb/sec (4X DDR)
          link_layer:      IB

  Infiniband device 'mlx4_0' port 2 status:
          default gid:     fe80:0000:0000:0000:0002:c903:000f:0aa0
          base lid:        0x23
          sm lid:          0x1
          state:           4: ACTIVE
          phys state:      5: LinkUp
          rate:            20 Gb/sec (4X DDR)
          link_layer:      IB

  Infiniband device 'mlx4_1' port 1 status:
          default gid:     fe80:0000:0000:0000:0002:c903:000f:0a6b
          base lid:        0x0
          sm lid:          0x0
          state:           1: DOWN
          phys state:      2: Polling
          rate:            10 Gb/sec (4X)
          link_layer:      IB

  Infiniband device 'mlx4_1' port 2 status:
          default gid:     fe80:0000:0000:0000:0002:c903:000f:0a6c
          base lid:        0xd
          sm lid:          0x2
          state:           4: ACTIVE
          phys state:      5: LinkUp
          rate:            10 Gb/sec (4X)
          link_layer:      IB
Run Code Online (Sandbox Code Playgroud)

现在,当我通过lid检查ib端口状态时,

 $> ibportstate  -L 10x22 enable
 ibwarn: [14836] mad_rpc_open_port: can't open UMAD port ((null):0)
 ibportstate: iberror: failed: Failed to open '(null)' port '0'
Run Code Online (Sandbox Code Playgroud)

我不确定此错误消息的原因。我错过了什么吗?

And*_*ner 4

相应的umad设备文件是否存在(通常是这样/dev/infiniband/umad0)?

另外,在我有权访问的系统上,/dev/infiniband/umad0默认设置了 的权限,因此普通用户无法访问它们:

crw-rw---- 1 root root 231, 0 Feb  1 16:00 /dev/infiniband/umad0
Run Code Online (Sandbox Code Playgroud)

所以你可以用来sudo运行你的命令(或放宽 的权限/dev/infiniband/umad0)。