User Manual
Rev 2.0-3.0.0
Mellanox Technologies
45
4.1.2.4 Automatic Discovery and Connection to Targets
• Make sure that the ib_srp module is loaded, the SRP Initiator can reach an SRP Target,
and that an SM is running.
• To connect to all the existing Targets in the fabric, run “
srp_daemon -e -o”. This util-
ity will scan the fabric once, connect to every Target it detects, and then exit.
• To connect to all the existing Targets in the fabric and to connect to new targets that will
join the fabric, execute srp_daemon -e. This utility continues to execute until it is either
killed by the user or encounters connection errors (such as no SM in the fabric).
• To execute SRP daemon as a daemon you may run “
run_srp_daemon” (found under
/usr/sbin/), providing it with the same options used for running srp_daemon.
• To execute SRP daemon as a daemon on all the ports, run “
srp_daemon.sh” (found
under
/usr/sbin/). srp_daemon.sh sends its log to /var/log/srp_daemon.log.
• It is possible to configure this script to execute automatically when the InfiniBand
driver starts by changing the value of SRPHA_ENABLE in
/etc/infiniband/
openib.conf
to “yes”. However, this option also enables SRP High Availability that
has some more features – see Section 4.1.2.6).
For the changes in
openib.conf to take effect, run:
/etc/init.d/openibd restart
4.1.2.5 Multiple Connections from Initiator IB Port to the Target
Some system configurations may need multiple SRP connections from the SRP Initiator to the
same SRP Target: to the same Target IB port, or to different IB ports on the same Target HCA.
In case of a single Target IB port, i.e., SRP connections use the same path, the configuration is
enabled using a different initiator_ext value for each SRP connection. The initiator_ext value is a
16-hexadecimal-digit value specified in the connection command.
Also in case of two physical connections (i.e., network paths) from a single initiator IB port to
two different IB ports on the same Target HCA, there is need for a different initiator_ext value on
each path. The conventions is to use the Target port GUID as the initiator_ext value for the rele-
vant path.
srp_daemon will follow the configuration it finds in /etc/srp_daemon.conf. Thus, it
will ignore a target that is disallowed in the configuration file.
Make sure only one instance of run_srp_daemon runs per port.