Setting Up Infiniband On Rocky Linux 9.X
- Install these packages:
sudo dnf install -y libibverbs-utils infiniband-diags - Check the InfiniBand card is detected:
ibv_devices - Display more information about an InfiniBand device:
ibv_devinfo -d <card_name> - Display the status of a device:
ibstat <card_name> - Install the
rdma-corepackage:sudo dnf install -y rdma-core - Check that the two InfiniBand machines can talk to each other:
- Start a server on one machine on Port 1:
ibping -S -C mlx4_0 -P 1 - On the other machine, send the following packets:
ibping -c 50 -C mlx4_0 -P 1 -L 2 -Lis Local Identifier.-Cis InfiniBand Channel Adapter.- Get the
LIDvalue from theibstatcommand. - Setup the IP addressing.
- Create the InfiniBand connectino on each host:
sudo nmcli connection add type infiniband con-name ibp1s0 ifname ibp1s0 transport-mode Connected mtu 65520 - Set a
P_Key:sudo nmcli connection modify ibp1s0 infiniband.p-key 0x8002