Debian Codegraph @

Documentation/ibsrpdm.md

raw
1 # Using ibsrpdm
2
3 ibsrpdm is used for discovering and connecting to SRP SCSI targets on
4 InfiniBand fabrics. These targets can be accessed with the InfiniBand SRP
5 initiator module, "ib_srp," included in Linux kernels 2.6.15 and newer.
6
7 To run ibsrpdm, the ib_umad module must be loaded, as well as an appropriate
8 low-level driver for the installed IB hardware.
9
10 With no command line parameters, ibsrpdm displays information about
11 SRP targets in human-readable form:
12
13 # ibsrpdm
14 IO Unit Info:
15 port LID: 0009
16 port GID: fe800000000000000005ad00000013e9
17 change ID: 73b0
18 max controllers: 0x01
19
20 controller[ 1]
21 GUID: 0005ad00000013e7
22 vendor ID: 0005ad
23 device ID: 0005ad
24 IO class : 0100
25 ID: Topspin SRP/FC TCA
26 service entries: 2
27 service[ 0]: 0000000000000066 / SRP.T10:20030003BA27CC7A
28 service[ 1]: 0000000000000066 / SRP.T10:20030003BA27CF53
29
30 With the "-c" flag, ibsrpdm displays information in a form that can be
31 written to the kernel SRP initiators add_target file to connect to the
32 SRP targets. For example:
33
34 # ibsrpdm -c
35 id_ext=20030003BA27CC7A,ioc_guid=0005ad00000013e7,dgid=fe800000000000000005ad00000013e9,pkey=ffff,service_id=0000000000000066
36 id_ext=20030003BA27CF53,ioc_guid=0005ad00000013e7,dgid=fe800000000000000005ad00000013e9,pkey=ffff,service_id=0000000000000066
37
38 Given this, the command below will connect to the first target
39 discovered from the first port of the local HCA device "mthca0":
40
41 # echo -n id_ext=20030003BA27CC7A,ioc_guid=0005ad00000013e7,dgid=fe800000000000000005ad00000013e9,pkey=ffff,service_id=0000000000000066 > /sys/class/infiniband_srp/srp-mthca0-1/add_target