All of lore.kernel.org
 help / color / mirror / Atom feed
* [SPDK] 答复: NVMe-oF question with SPDK
@ 2018-09-20  8:01 Shi Bingxun
  0 siblings, 0 replies; 2+ messages in thread
From: Shi Bingxun @ 2018-09-20  8:01 UTC (permalink / raw)
  To: spdk

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

Hi Changpeng,


Thanks for your clarification. So that means with current version SPDK, NVMeOF  info can't be saved, including NVMe bdevs, logical volumes created on the bdevs. All settings will be reset after target reboots. Is my understanding correct?


Neil

________________________________
发件人: SPDK <spdk-bounces(a)lists.01.org> 代表 Liu, Changpeng <changpeng.liu(a)intel.com>
发送时间: 2018年9月20日 7:43:31
收件人: Storage Performance Development Kit
抄送: shibx(a)lenovo.com
主题: Re: [SPDK] NVMe-oF question with SPDK

SPDK already provides such framework right now, but NVMeoF part is still missing,
the configuration can be saved to JSON file(Already done) and can be loaded for next start(missing).


> -----Original Message-----
> From: SPDK [mailto:spdk-bounces(a)lists.01.org] On Behalf Of Shi Bingxun
> Sent: Thursday, September 20, 2018 3:21 PM
> To: spdk(a)lists.01.org
> Cc: shibx(a)lenovo.com
> Subject: [SPDK] NVMe-oF question with SPDK
>
> Dear experts,
>
>
> Could you help to advice for my issues with SPDK? I'm trying to setup NVMe over
> fabric environment using SPDK. With below listed steps, I can successfully
> connect NVMe subsystem on initiator. So I think my steps should work.  But  I
> found once the target reboots,  the setup information on the target will be gone,
> like the created NVMe bdevs, I'm really confused. Won't the created bdev be
> saved?
>
> ----------------------------------------------------------------------------------------------
>
> On NVMe target:
>
> sudo scripts/setup.sh
> ./app/nvmf_tgt/nvmf_tgt &
> cd scripts
> ./rpc.py construct_nvme_bdev -b NVMe1 -t PCIe -a 0000:03:00.0
> ./rpc.py construct_nvmf_subsystem nqn.2016-06.io.spdk:cnode1 "trtype:RDMA
> traddr:192.168.1.2 trsvcid:4420" "" -a -s SPDK00000000000001 -n NVMe1n1
>
> On initiator:
> nvme connect -t rdma -n "nqn.2016-06.io.spdk:cnode1" -a 192.168.1.2 -s 4420
> ------------------------------------------------------------------------------------------------
> When target reboots, I run below command to check the bdev, it reports
> "*ERROR*: bdev 'Nvme0n1' does not exist"
> ./app/nvmf_tgt/nvmf_tgt &
> ./rpc.py get_bdevs -b NVMe1n1
>
>
> On SPDK website, there is a configuration file followed nvmf_tgt command. I tried
> to add "TransportID "trtype:PCIe traddr:0000:03:00.0" NVMe1" in the
> configuration file, NVMe1n1 bdev is available after this command. But looks like
> the NVMe bdev is created again when the command runs, is my understanding
> correct?
>
> app/nvmf_tgt/nvmf_tgt -c /path/to/nvmf.conf
>
>
>
> Thanks
> Neil
> _______________________________________________
> SPDK mailing list
> SPDK(a)lists.01.org
> https://lists.01.org/mailman/listinfo/spdk
_______________________________________________
SPDK mailing list
SPDK(a)lists.01.org
https://lists.01.org/mailman/listinfo/spdk

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [SPDK] 答复: NVMe-oF question with SPDK
@ 2018-09-20 18:43 Walker, Benjamin
  0 siblings, 0 replies; 2+ messages in thread
From: Walker, Benjamin @ 2018-09-20 18:43 UTC (permalink / raw)
  To: spdk

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

On Thu, 2018-09-20 at 08:01 +0000, Shi Bingxun wrote:
> Hi Changpeng,
> 
> 
> Thanks for your clarification. So that means with current version SPDK,
> NVMeOF  info can't be saved, including NVMe bdevs, logical volumes created on
> the bdevs. All settings will be reset after target reboots. Is my
> understanding correct?

SPDK is currently transitioning between configuration models. The old model was
a configuration file (examples are in etc/spdk/*.conf) that was passed to the
target application when it was started. Passing the same configuration file on
each run meant that the configuration was persisted. The configuration file is
still supported, but isn't long term solution.

The new model is to start up the target with no arguments, send it a series of
JSON-RPC commands using one of our command-line tools to configure it, then send
it a "save config" JSON-RPC that will dump out a sequence of JSON-RPC commands
to reproduce the current configuration state. That can be saved to a file and
the next time the target is started that file can be passed in to recover the
state. We're almost done implementing all of the infrastructure for this model,
but we're not quite there just yet.

To further complicate matters, some SPDK configuration data is stored in the
configuration file and some is stored as metadata on the storage devices
themselves (such as logical volume information). For a system containing logical
volumes, for example, the configuration file only specifies which storage
devices to claim. These devices are examined at start up and if metadata is
found, the logical volumes are created using that automatically.

> 
> 
> Neil
> 
> ________________________________
> 发件人: SPDK <spdk-bounces(a)lists.01.org> 代表 Liu, Changpeng <
> changpeng.liu(a)intel.com>
> 发送时间: 2018年9月20日 7:43:31
> 收件人: Storage Performance Development Kit
> 抄送: shibx(a)lenovo.com
> 主题: Re: [SPDK] NVMe-oF question with SPDK
> 
> SPDK already provides such framework right now, but NVMeoF part is still
> missing,
> the configuration can be saved to JSON file(Already done) and can be loaded
> for next start(missing).
> 
> 
> > -----Original Message-----
> > From: SPDK [mailto:spdk-bounces(a)lists.01.org] On Behalf Of Shi Bingxun
> > Sent: Thursday, September 20, 2018 3:21 PM
> > To: spdk(a)lists.01.org
> > Cc: shibx(a)lenovo.com
> > Subject: [SPDK] NVMe-oF question with SPDK
> > 
> > Dear experts,
> > 
> > 
> > Could you help to advice for my issues with SPDK? I'm trying to setup NVMe
> > over
> > fabric environment using SPDK. With below listed steps, I can successfully
> > connect NVMe subsystem on initiator. So I think my steps should
> > work.  But  I
> > found once the target reboots,  the setup information on the target will be
> > gone,
> > like the created NVMe bdevs, I'm really confused. Won't the created bdev be
> > saved?
> > 
> > ----------------------------------------------------------------------------
> > ------------------
> > 
> > On NVMe target:
> > 
> > sudo scripts/setup.sh
> > ./app/nvmf_tgt/nvmf_tgt &
> > cd scripts
> > ./rpc.py construct_nvme_bdev -b NVMe1 -t PCIe -a 0000:03:00.0
> > ./rpc.py construct_nvmf_subsystem nqn.2016-06.io.spdk:cnode1 "trtype:RDMA
> > traddr:192.168.1.2 trsvcid:4420" "" -a -s SPDK00000000000001 -n NVMe1n1
> > 
> > On initiator:
> > nvme connect -t rdma -n "nqn.2016-06.io.spdk:cnode1" -a 192.168.1.2 -s 4420
> > ----------------------------------------------------------------------------
> > --------------------
> > When target reboots, I run below command to check the bdev, it reports
> > "*ERROR*: bdev 'Nvme0n1' does not exist"
> > ./app/nvmf_tgt/nvmf_tgt &
> > ./rpc.py get_bdevs -b NVMe1n1
> > 
> > 
> > On SPDK website, there is a configuration file followed nvmf_tgt command. I
> > tried
> > to add "TransportID "trtype:PCIe traddr:0000:03:00.0" NVMe1" in the
> > configuration file, NVMe1n1 bdev is available after this command. But looks
> > like
> > the NVMe bdev is created again when the command runs, is my understanding
> > correct?
> > 
> > app/nvmf_tgt/nvmf_tgt -c /path/to/nvmf.conf
> > 
> > 
> > 
> > Thanks
> > Neil
> > _______________________________________________
> > SPDK mailing list
> > SPDK(a)lists.01.org
> > https://lists.01.org/mailman/listinfo/spdk
> 
> _______________________________________________
> SPDK mailing list
> SPDK(a)lists.01.org
> https://lists.01.org/mailman/listinfo/spdk
> _______________________________________________
> SPDK mailing list
> SPDK(a)lists.01.org
> https://lists.01.org/mailman/listinfo/spdk


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-09-20 18:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-20  8:01 [SPDK] 答复: NVMe-oF question with SPDK Shi Bingxun
2018-09-20 18:43 Walker, Benjamin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.