nndocs:srp
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| nndocs:srp [2025/02/14 12:56] – created naptastic | nndocs:srp [2025/11/08 06:12] (current) – target/ACL confusion reduction naptastic | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====targetcli-fb==== | ====targetcli-fb==== | ||
| - | The documentation for SRP is woefully inadequte. | + | * it needs to be turned on in the kernel. drivers -> Infiniband -> SRP |
| + | * turn on both target and initiator please | ||
| + | * in targetcli, /srpt is the relevant path | ||
| + | * targets are formatted like ib.fe80000000000000f4521403002c18b1 | ||
| + | * idk how you get those numbers except to examine an ipoib link, such as: | ||
| - | | + | |
| - | Missing required parameter wwn | + | |
| - | /srpt> ib.fe800000000000005849560e53b70b01/ | + | |
| - | WWN not valid as: ib | + | |
| - | / | + | |
| - | WWN not valid as: ib | + | |
| - | From man targetcli(8): | + | Now strip the first 4 bytes off (they change anyway) and remove the :'s |
| - | | + | |
| - | SRP (SCSI RDMA Protocol) requires that RDMA-capable hardware is present. It uses " | + | |
| - | NONE OF THIS TELLS ME HOW TO FORMAT THE STRING. Let' | + | Initiator ACLs start with all 0's. Targets start with fe80. |
| + | |||
| + | /srpt> ib.fe800000000000005849560e53b70b01/ | ||
| + | Created Node ACL for ib.00000000000000005849560e59150301 | ||
| + | Created mapped LUN 0. | ||
| + | |||
| + | A Linux SRP target is always visible from all InfiniBand partitions. | ||
| + | |||
| + | ====Dependencies==== | ||
| + | |||
| + | apt install srptools | ||
| + | |||
| + | Do **NOT** set srp_daemon loose without using the -o flag! It will flood dmesg on both the initiator and the target! | ||
| + | |||
| + | Find targets to connect to: | ||
| + | |||
| + | # srp_daemon -o -v -c -p 1 | ||
| + | |||
| + | * -o means "run once" otherwise dmesg on all your hosts will get polluted with SRP login noise. | ||
| + | * -v means "say what you're doing" | ||
| + | * -c means "emit target information | ||
| + | * -p 1 means "only scan on HCA port 1" so obviously change this if you are initiating from port 2... | ||
| + | |||
| + | ====Configuration==== | ||
| + | |||
| + | It is **critical** that you edit / | ||
| + | |||
| + | To connect to a target listed by srp_daemon, write it to the appropriate add_target file in / | ||
| + | |||
| + | echo ' | ||
| + | |||
| + | Lazy benchmarking seems good: | ||
| + | |||
| + | [root]@[shark][~]# | ||
| + | 4096+0 records in | ||
| + | 4096+0 records out | ||
| + | 17179869184 bytes (17 GB, 16 GiB) copied, 5.38771 s, 3.2 GB/s | ||
| + | |||
| + | [root]@[shark][~]# | ||
| + | dd: error writing '/ | ||
| + | 4097+0 records in | ||
| + | 4096+0 records out | ||
| + | 17179869184 bytes (17 GB, 16 GiB) copied, 13.7431 s, 1.3 GB/s | ||
| + | |||
| + | ====Logout==== | ||
| + | |||
| + | " | ||
| + | |||
| + | # echo 1 > / | ||
nndocs/srp.1739537778.txt.gz · Last modified: 2025/02/14 12:56 by naptastic
