Configure subnet manager
A subnet manager must be running in your environment on your switch or on your hosts. If you are running it host-side, use the following procedure to set it up.
Before configuring the subnet manager, you must install the infiniband-diags package to obtain the globally unique ID (GUID) through the
opensmpackage on any hosts that will be running the subnet manager.
ibstat -pcommand to find
GUID1of the HBA ports. For example:
# ibstat -p 0x248a070300a80a80 0x248a070300a80a81
Create a subnet manager script that runs once as part of the boot process.
# vim /usr/sbin/subnet-manager.sh
Add the following lines. Substitute the values you found in step 2 for
P1, use the subnet manager priorities, with 1 being the lowest and 15 the highest.
#!/bin/bash opensm -B -g <GUID0> -p <P0> -f /var/log/opensm-ib0.log opensm -B -g <GUID1> -p <P1> -f /var/log/opensm-ib1.log
An example of the command with value substitutions:
#!/bin/bash opensm -B -g 0x248a070300a80a80 -p 15 -f /var/log/opensm-ib0.log opensm -B -g 0x248a070300a80a81 -p 1 -f /var/log/opensm-ib1.log
Create a systemd service unit file named
# vim /etc/systemd/system/subnet-manager.service
Add the following lines.
[Unit] Description=systemd service unit file for subnet manager [Service] Type=forking ExecStart=/bin/bash /usr/sbin/subnet-manager.sh [Install] WantedBy=multi-user.target
Notify systemd of the new service.
# systemctl daemon-reload
Enable and start the
# systemctl enable subnet-manager.service # systemctl start subnet-manager.service