Storage Performance Development Kit (SPDK)
 help / color / mirror / Atom feed
From: Harris, James R <james.r.harris at intel.com>
To: spdk@lists.01.org
Subject: Re: [SPDK] nvme drive not showing in vm in spdk
Date: Wed, 04 Oct 2017 16:43:14 +0000	[thread overview]
Message-ID: <7CF51EE9-C575-4579-BCAC-191FABC70775@intel.com> (raw)
In-Reply-To: CAB3_1NtzM7qK-3NodFGdWjgx6seSh1rbKxp-+ZzFL1-BepoyKA@mail.gmail.com

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

Hi Nitin,

Are you running these commands from the host or the VM?  You will only see the virtio-scsi controller in lspci output from the guest VM.

-Jim


From: Nitin Gupta <nitin.gupta981(a)gmail.com>
Date: Tuesday, October 3, 2017 at 12:23 AM
To: Storage Performance Development Kit <spdk(a)lists.01.org>, James Harris <james.r.harris(a)intel.com>
Subject: Re: [SPDK] nvme drive not showing in vm in spdk

Hi Jim

One quick update , after running ./script/setup.h for spdk nvme drive is converting to uio generic pci device .
so only difference which i found after and before mapping is command for ls -l /dev/u*

can i use /dev/uio0 are the nvme device
Regards
Nitin

On Tue, Oct 3, 2017 at 11:30 AM, Nitin Gupta <nitin.gupta981(a)gmail.com<mailto:nitin.gupta981(a)gmail.com>> wrote:
Hi Jim

Looks like sdf to sdi is the nvme , please correct me if i ma wrong

-bash-4.2# lsblk -S
NAME HCTL       TYPE VENDOR   MODEL             REV TRAN
sda  0:0:0:0    disk ATA      INTEL SSDSC2BB24 0039 sata
sdb  1:0:0:0    disk ATA      ST31000524NS     SN11 sata
sdc  2:0:0:0    disk ATA      ST31000524NS     SN12 sata
sdd  3:0:0:0    disk ATA      INTEL SSDSC2BB24 0039 sata
sde  5:0:0:0    disk ATA      SAMSUNG MZ7WD120 103Q sata
sdf  6:0:0:0    disk ATA      INTEL SSDSC2BB24 0039 sata
sdg  7:0:0:0    disk ATA      INTEL SSDSC2BB24 0039 sata
sdh  8:0:0:0    disk ATA      INTEL SSDSC2BB24 0039 sata
sdi  9:0:0:0    disk ATA      INTEL SSDSC2BB24 0039 sata

Regards
Nitin

On Tue, Oct 3, 2017 at 11:21 AM, Nitin Gupta <nitin.gupta981(a)gmail.com<mailto:nitin.gupta981(a)gmail.com>> wrote:
Hi Jim

i am getting below output for lspci  for NVram

d8:00.0 Non-Volatile memory controller: Intel Corporation Device 0a53 (rev 02)
d9:00.0 Non-Volatile memory controller: Intel Corporation Device 0a53 (rev 02)
da:00.0 Non-Volatile memory controller: Intel Corporation Device 0a53 (rev 02)
db:00.0 Non-Volatile memory controller: Intel Corporation Device 0a53 (rev 02)

lsblk

NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 223.6G  0 disk
├─sda1   8:1    0     6G  0 part [SWAP]
├─sda2   8:2    0   512M  0 part /bootmgr
└─sda3   8:3    0 217.1G  0 part /
sdb      8:16   0 931.5G  0 disk
sdc      8:32   0 931.5G  0 disk
sdd      8:48   0 223.6G  0 disk
sde      8:64   0 111.8G  0 disk
sdf      8:80   0 223.6G  0 disk
sdg      8:96   0 223.6G  0 disk
sdh      8:112  0 223.6G  0 disk
sdi      8:128  0 223.6G  0 disk


So how to know which one is virto-scsi  controller basically i wanted to run fio test  with nvme mapped device


On Mon, Oct 2, 2017 at 11:12 PM, Harris, James R <james.r.harris(a)intel.com<mailto:james.r.harris(a)intel.com>> wrote:
Hi Nitin,

lspci should show you the virtio-scsi controller PCI device.
lsblk –S should show you the SCSI block devices attached to that virtio-scsi controller.

-Jim


From: SPDK <spdk-bounces(a)lists.01.org<mailto:spdk-bounces(a)lists.01.org>> on behalf of Nitin Gupta <nitin.gupta981(a)gmail.com<mailto:nitin.gupta981(a)gmail.com>>
Reply-To: Storage Performance Development Kit <spdk(a)lists.01.org<mailto:spdk(a)lists.01.org>>
Date: Monday, October 2, 2017 at 10:38 AM
To: Storage Performance Development Kit <spdk(a)lists.01.org<mailto:spdk(a)lists.01.org>>
Subject: Re: [SPDK] nvme drive not showing in vm in spdk

Hi Jim

Thanks for your reply and sorry for my late reply ..
could you please  give one example to know how to identify virtio-scsi controller in the linux
i mean which directory it will be present or which file system ?

Regards
Nitin

On Thu, Sep 28, 2017 at 8:30 PM, Harris, James R <james.r.harris(a)intel.com<mailto:james.r.harris(a)intel.com>> wrote:
Hi Nitin,

You should see a virtio-scsi controller in the VM, not an NVMe device.  This controller should have one LUN attached, which SPDK vhost maps to the NVMe device attached to the host.

-Jim


From: SPDK <spdk-bounces(a)lists.01.org<mailto:spdk-bounces(a)lists.01.org>> on behalf of Nitin Gupta <nitin.gupta981(a)gmail.com<mailto:nitin.gupta981(a)gmail.com>>
Reply-To: Storage Performance Development Kit <spdk(a)lists.01.org<mailto:spdk(a)lists.01.org>>
Date: Thursday, September 28, 2017 at 4:07 AM
To: Storage Performance Development Kit <spdk(a)lists.01.org<mailto:spdk(a)lists.01.org>>
Subject: [SPDK] nvme drive not showing in vm in spdk

Hi All

i am new in spdk development and currently doing spdk setup in that  was able to setup back-end storage with NVME .After running the VM with following command , there is no nvme drive present .

/usr/local/bin/qemu-system-x86_64 -m 1024 -object memory-backend-file,id=mem,size=1G,mem-path=/dev/hugepages,share=on -nographic -no-user-config -nodefaults -serial mon:telnet:localhost:7704,server,nowait -monitor mon:telnet:localhost:8804,server,nowait -numa node,memdev=mem -drive file=/home/qemu/qcows,format=qcow2,if=none,id=disk -device ide-hd,drive=disk,bootindex=0 -chardev socket,id=char0,path=./spdk/vhost.0 -device vhost-user-scsi-pci,id=scsi0,chardev=char0 --enable-kvm


how to identify which is nvme drive ?
is there any way to  enable nvme from qemu command ?

PS:  i have already specified the nvme drive in vhost.conf.in<http://vhost.conf.in>

Regards
Nitin

_______________________________________________
SPDK mailing list
SPDK(a)lists.01.org<mailto:SPDK(a)lists.01.org>
https://lists.01.org/mailman/listinfo/spdk


_______________________________________________
SPDK mailing list
SPDK(a)lists.01.org<mailto:SPDK(a)lists.01.org>
https://lists.01.org/mailman/listinfo/spdk




[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 23178 bytes --]

             reply	other threads:[~2017-10-04 16:43 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-04 16:43 Harris, James R [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-10-13  6:02 [SPDK] nvme drive not showing in vm in spdk Nitin Gupta
2017-10-12 16:04 Nitin Gupta
2017-10-12 14:24 Wodkowski, PawelX
2017-10-12 13:57 Nitin Gupta
2017-10-11 12:23 Wodkowski, PawelX
2017-10-11 10:49 Nitin Gupta
2017-10-11  9:52 Wodkowski, PawelX
2017-10-11  9:07 Nitin Gupta
2017-10-07  4:40 Nitin Gupta
2017-10-06 18:31 Harris, James R
2017-10-06  8:28 Nitin Gupta
2017-10-06  3:58 Harris, James R
2017-10-05 10:49 Nitin Gupta
2017-10-04 18:06 Harris, James R
2017-10-04 17:42 Nitin Gupta
2017-10-03  7:23 Nitin Gupta
2017-10-03  6:00 Nitin Gupta
2017-10-03  5:51 Nitin Gupta
2017-10-02 17:42 Harris, James R
2017-10-02 17:38 Nitin Gupta
2017-09-28 15:00 Harris, James R
2017-09-28 11:07 Nitin Gupta

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=7CF51EE9-C575-4579-BCAC-191FABC70775@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