Storage Performance Development Kit (SPDK)
 help / color / mirror / Atom feed
From: Walker, Benjamin <benjamin.walker at intel.com>
To: spdk@lists.01.org
Subject: Re: [SPDK] SPDK nvmeof target/initiator
Date: Wed, 03 May 2017 16:20:11 +0000	[thread overview]
Message-ID: <1493828409.2968.6.camel@intel.com> (raw)
In-Reply-To: 11C0E5A04D1124438E8D83D3FE0D99EA1CC5EE72@SSIEXCH-MB3.ssi.samsung.com

[-- Attachment #1: Type: text/plain, Size: 1494 bytes --]

On Wed, 2017-05-03 at 02:38 +0000, Ramaraj Pandian wrote:
> I don’t think so but want to ask that Can connected target devices be treated
> as local nvme for spdk to work as initiator? Is there any near term plan to
> support SPDK host initiator?
>  

SPDK already contains an NVMe-oF initiator and it happens to be the same library
as the NVMe driver. You can connect to a remote device by simply specifying a
different transport id to spdk_nvme_probe. Since later in this email chain you
talk about RocksDB, I'll use that as an example.

The SPDK backend for RocksDB uses a configuration file that by default is at
/usr/local/etc/spdk/rocksdb.conf. If you followed along with the instructions to
set it up for a local device, at the end of the file you'll see a section like
this:

[Nvme]
  TransportID "trtype:PCIe traddr:0000:02:00.0" Nvme0

That's saying to use the PCI device at the given address as the backing storage.
If you instead want to connect to a remote device using NVMe-oF, simply change
the configuration file to this (ignore word wrap from my email client):

[Nvme]
  TransportID "trtype:RDMA traddr:<ip address> trsvcid:<port> adrfam:IPv4
subnqn:<nqn of target>" Nvme0

For this to work, you'll need to have compiled SPDK with RDMA support. You can
do that by adding CONFIG_RDMA=y to the command line when you type make.

Full disclosure: I've never tested the RocksDB code using a remote device. It
should work, but I've never tried it.

[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 3274 bytes --]

             reply	other threads:[~2017-05-03 16:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-03 16:20 Walker, Benjamin [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-05-03 16:53 [SPDK] SPDK nvmeof target/initiator Ramaraj Pandian
2017-05-03  4:22 Liu, Changpeng
2017-05-03  2:59 Ramaraj Pandian
2017-05-03  2:46 Liu, Changpeng
2017-05-03  2:38 Ramaraj Pandian

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1493828409.2968.6.camel@intel.com \
    --to=spdk@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox