User Manual

Driver FeaturesRev 2.0-3.0.0
Mellanox Technologies
44
srp_daemon
The srp_daemon utility is based on ibsrpdm and extends its functionality. In addition to the ibsr-
pdm functionality described above, srp_daemon can also
Establish an SRP connection by itself (without the need to issue the “echo” command
described in Section 4.1.2.2)
Continue running in background, detecting new targets and establishing SRP connec-
tions with them (daemon mode)
Discover reachable SRP Targets given an infiniband HCA name and port, rather than
just by
/dev/umad<N> where <N> is a digit
Enable High Availability operation (together with Device-Mapper Multipath)
Have a configuration file that determines the targets to connect to
1. srp_daemon commands equivalent to ibsrpdm:
2. srp_daemon extensions to ibsrpdm
To discover SRP Targets reachable from the HCA device <InfiniBand HCA name> and
the port <port num>, (and to generate output suitable for 'echo',) you may execute:
To both discover the SRP Targets and establish connections with them, just add the -e
option to the above command.
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 4.1.2.5 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 different 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 4.1.2.4.
"srp_daemon -a -o" is equivalent to "ibsrpdm"
"srp_daemon -c -a -o" is equivalent to "ibsrpdm -c"
These srp_daemon commands can behave differently than the equivalent
ibsrpdm command when /etc/srp_daemon.conf is not empty.
host1# srp_daemon -c -a -o -i <InfiniBand HCA name> -p <port number>
To obtain the list of InfiniBand HCA device names, you can either use the ibstat tool or
run ‘ls /sys/class/infiniband’.