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@gmail.com>
Date: Tuesday, October 3, 2017 at 12:23 AM
To: Storage Performance Development Kit <spdk@lists.01.org>, James Harris <james.r.harris@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@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@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@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@lists.01.org> on behalf of Nitin Gupta <nitin.gupta981@gmail.com>
Reply-To: Storage Performance Development Kit <spdk@lists.01.org>
Date: Monday, October 2, 2017 at 10:38 AM
To: Storage Performance Development Kit <spdk@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@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@lists.01.org> on behalf of Nitin Gupta <nitin.gupta981@gmail.com>
Reply-To: Storage Performance Development Kit <spdk@lists.01.org>
Date: Thursday, September 28, 2017 at 4:07 AM
To: Storage Performance Development Kit <spdk@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 

 

Regards

Nitin 


_______________________________________________
SPDK mailing list
SPDK@lists.01.org
https://lists.01.org/mailman/listinfo/spdk

 


_______________________________________________
SPDK mailing list
SPDK@lists.01.org
https://lists.01.org/mailman/listinfo/spdk