User Tools

Site Tools


nndocs:nvme-of

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
nndocs:nvme-of [2024/02/24 22:08] – [Initiator] add rescan naptasticnndocs:nvme-of [2025/10/26 23:45] (current) – snark +1 naptastic
Line 1: Line 1:
-TODO Please put storage traffic on its own IB subnet and limit things sanely. 
- 
-NQNs: nqn.2014-08.rocks.narf.hostname is the whole thing. No :01 or any of that jazz, at least not yet. 
- 
 The goal is to run everything over RDMA (InfiniBand specifically) and maybe have TCP as a fallback. (If TCP, then I probably want to try VMA... which I don't want to do.) The goal is to run everything over RDMA (InfiniBand specifically) and maybe have TCP as a fallback. (If TCP, then I probably want to try VMA... which I don't want to do.)
  
Line 10: Line 6:
 Create the subsystem: Create the subsystem:
     /> subsystems/ create nqn.2014-08.rocks.narf.southpark     /> subsystems/ create nqn.2014-08.rocks.narf.southpark
 +
 +NVMe calls network ports "service IDs", and has their own idea for "ports". Good for them.
  
 Create a port and set its properties: Create a port and set its properties:
Line 19: Line 17:
     /> ports/1/subsystems create nqn.2014-08.rocks.narf.southpark      /> ports/1/subsystems create nqn.2014-08.rocks.narf.southpark 
  
-NVMe uses "namespaces" (which are numbers) instead of LUNs. Good for them.+NVMe calls LUNs "namespaces" (which are numbers). Good for them.
  
 Create, set, and enable namespace: Create, set, and enable namespace:
     /> subsystems/nqn.2014-08.rocks.narf.southpark/namespaces create 1     /> subsystems/nqn.2014-08.rocks.narf.southpark/namespaces create 1
-    /> subsystems/nqn.2014-08.rocks.narf.southpark/namespaces/1 set device path=/dev/nvme0n1+    /> subsystems/nqn.2014-08.rocks.narf.southpark/namespaces/1 set device path=/dev/disk/by-id/nvme-eui.foo
     /> subsystems/nqn.2014-08.rocks.narf.southpark/namespaces/1 enable     /> subsystems/nqn.2014-08.rocks.narf.southpark/namespaces/1 enable
 +
 +Don't use /dev/nvme* names; they can change order on reboot.
  
 You can use a file as a backstore. The syntax is not at all obvious. Why "group=device"? Whatever: You can use a file as a backstore. The syntax is not at all obvious. Why "group=device"? Whatever:
nndocs/nvme-of.1708812495.txt.gz · Last modified: 2024/02/24 22:08 by naptastic