Skip to content

How to Access NVMe disk Using SPDK When Creating a DiskPool #3730

Discussion options

You must be logged in to vote

You can connect in different ways:

  1. Via a Kernel BDev
    a. URING: uring:///dev/nvmexn1
    b. AIO: uring:///dev/nvmexn1 or simply /dev/nvmexn1
  2. Direct PCIe access
    a. pcie:///0000:01:00.0

If you want Direct PCIe access (2.a) bypassing the kernel then a bit more work is involved (though we plan to automate this in the future - it's on the ROADMAP) as you have to detach the nvme device from the kernel.

You'll have to use https://github.com/spdk/spdk/blob/master/scripts/setup.sh, probably need to clone the spdk repo.

❯ sudo ./scripts/setup.sh status
Hugepages
node     hugesize     free /  total
node0   1048576kB        0 /      0
node0      2048kB     4096 /   4096

Type                      BDF   …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by Hansyangxingxiang
Comment options

You must be logged in to vote
1 reply
@balaharish7
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment