User Manual
Rev 2.2-1.0.1
Mellanox Technologies
57
a. To generate output suitable for utilization in the “echo” command of Section 4.1.2.2, add the
‘-c’ option to ibsrpdm:
ibsrpdm -c
Sample output:
id_ext=200400A0B81146A1,ioc_guid=0002c90200402bd4,
dgid=fe800000000000000002c90200402bd5,pkey=ffff,service_id=200400a0b81146a1
b. To establish a connection with an SRP Target using the output from the ‘ibsrpdm -c’ example above,
execute the following command:
echo -n id_ext=200400A0B81146A1,ioc_guid=0002c90200402bd4,
dgid=fe800000000000000002c90200402bd5,pkey=ffff,service_id=200400a0b81146a1 > /sys/
class/infiniband_srp/srp-mlx4_0-1/add_target
The SRP connection should now be up; the newly created SCSI devices should appear in the listing
obtained from the ‘fdisk -l’ command.
3. Discover reachable SRP Targets given an InfiniBand HCA name and port, rather than by just
runing
/sys/class/infiniband_mad/umad<N> where <N> is a digit
srpd
The srpd service script allows automatic activation and termination of the srp_daemon utility on
all system live InfiniBand ports.
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:
"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.
2. srp_daemon extensions to ibsrpdm