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.
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.
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
systemdservice unit file named
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
systemdof the new service.
Enable and start the subnet manager service.
systemctl enable subnet-manager.service systemctl start subnet-manager.service