[SPDK] Re: Configuring SPDK NVMe over TCP initiator

Michael Haeuptle <michaelhaeuptle at gmail.com>
Newsgroups dev.linux.lists.spdk
Message-ID <[email protected]>
Hi Chethan,

take a look at https://spdk.io/doc/nvmf.html <https://spdk.io/doc/nvmf.html> for setting up the NVMF and https://spdk.io/doc/bdev.html#bdev_config_nvme <https://spdk.io/doc/bdev.html#bdev_config_nvme> for setting up an NVMe bdev.

The basic steps are something like below (haven’t had a chance to verify these steps so they may need some adjustments):

Follow https://spdk.io/doc/system_configuration.html <https://spdk.io/doc/system_configuration.html> to set up the environment. Basically, you have to run scripts/setup.sh and ensure that the NVMe device is using the vfio-pci or uio_pci_generic (lspci -vv to verify or run the script again to give status).

Then create a bdev for the NVMe device and add it as a namespace to a NVMF subsystem:

scripts/rpc.py bdev_nvme_attach_controller -b NVMe1 -t PCIe -a 0000:01:00.0

scripts/rpc.py nvmf_create_transport -t TCP -u 16384 -m 8 -c 8192
scripts/rpc.py nvmf_create_subsystem nqn.2016-06.io.spdk:cnode1 -a -s SPDK00000000000001 -d SPDK_Controller1
scripts/rpc.py nvmf_subsystem_add_ns nqn.2016-06.io.spdk:cnode1 NVMe1
scripts/rpc.py nvmf_subsystem_add_listener nqn.2016-06.io.spdk:cnode1 -t rdma -a 192.168.100.8 -s 4420

— Michael

> On Jan 21, 2021, at 5:08 AM, Chethan Seshadri <chethan_seshadri(a)yahoo.com> wrote:
> 
> Hi,
> Can anyone point me to the steps to configure SPDK NVMe over TCP initiator?
> Thanks,Chethan
> _______________________________________________
> SPDK mailing list -- spdk(a)lists.01.org
> To unsubscribe send an email to spdk-leave(a)lists.01.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.