nndocs:srp
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| nndocs:srp [2025/03/14 05:31] – naptastic | nndocs:srp [2025/11/08 06:12] (current) – target/ACL confusion reduction naptastic | ||
|---|---|---|---|
| Line 14: | Line 14: | ||
| fe800000000000005849560e59150301 | fe800000000000005849560e59150301 | ||
| - | lastly change | + | Initiator ACLs start with all 0's. Targets start with fe80. |
| /srpt> ib.fe800000000000005849560e53b70b01/ | /srpt> ib.fe800000000000005849560e53b70b01/ | ||
| Created Node ACL for ib.00000000000000005849560e59150301 | Created Node ACL for ib.00000000000000005849560e59150301 | ||
| Created mapped LUN 0. | Created mapped LUN 0. | ||
| + | |||
| + | A Linux SRP target is always visible from all InfiniBand partitions. | ||
| ====Dependencies==== | ====Dependencies==== | ||
| apt install srptools | 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: | Find targets to connect to: | ||
| Line 32: | Line 36: | ||
| * -c means "emit target information in a format we can use later" | * -c means "emit target information in a format we can use later" | ||
| * -p 1 means "only scan on HCA port 1" so obviously change this if you are initiating from port 2... | * -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: | Lazy benchmarking seems good: | ||
| - | # dd if=/dev/sdb of=/ | + | |
| 4096+0 records in | 4096+0 records in | ||
| 4096+0 records out | 4096+0 records out | ||
| 17179869184 bytes (17 GB, 16 GiB) copied, 5.38771 s, 3.2 GB/s | 17179869184 bytes (17 GB, 16 GiB) copied, 5.38771 s, 3.2 GB/s | ||
| | | ||
| - | [root]@[shark][00:23:02][~]# dd if=/ | + | [root]@[shark][~]# |
| dd: error writing '/ | dd: error writing '/ | ||
| 4097+0 records in | 4097+0 records in | ||
| Line 46: | Line 58: | ||
| 17179869184 bytes (17 GB, 16 GiB) copied, 13.7431 s, 1.3 GB/s | 17179869184 bytes (17 GB, 16 GiB) copied, 13.7431 s, 1.3 GB/s | ||
| - | ...so I'm using some for swap. We'll see how long it takes me to induce a kernel panic. ;) | + | ====Logout==== |
| + | |||
| + | " | ||
| + | |||
| + | # echo 1 > / | ||
nndocs/srp.1741930293.txt.gz · Last modified: 2025/03/14 05:31 by naptastic
