User Manual

Rev 2.3-1.0.1
Mellanox Technologies
167
Executing srp_daemon over a port without the -a option will only display the reachable
targets via the port and to which the initiator is not connected. If executing with the -e
option it is better to omit -a.
It is recommended to use the -n option. This option adds the initiator_ext to the connecting
string. (See Section for more details).
srp_daemon has a configuration file that can be set, where the default is /etc/
srp_daemon.conf. Use the -f to supply a dif
ferent configuration file that configures the tar-
gets srp_daemon is allowed to connect to. The configuration file can also be used to set
values for additional parameters (e.g., max_cmd_per_lun, max_sect).
A continuous background (daemon) operation, providing an automatic ongoing detection
and connection capability
. See Section .
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 utility
will scan the fabric once, connect to every Target it detects, and then exit.
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.
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 on all the ports:
srp_daemon.sh (found under /usr/sbin/). srp_daemon.sh sends its log to /var/log/
srp_daemon.log
.
Start the srpd service script, run
service srpd start
It is possible to configure this script to execute automatically when the InfiniBand driver
starts by changing the value of SRP_DAEMON_ENABLE in /etc/infiniband/
openib.conf to “yes”. However, this option also enables SRP High Availability that has
some more features – see Section , “High Availability (HA)”, on page 168).
For the changes in
openib.conf to take effect, run:
/etc/init.d/openibd restart
Multiple Connections from Initiator InfiniBand 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 dif
ferent 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 dif
ferent IB ports on the same Target HCA, there is need for a different initiator_ext value on