OpenMPDK / KVSSD

KV SSD host software including APIs and drivers
Other
230 stars 55 forks source link

initialize blobfs failed #54

Open DanlinJia opened 4 years ago

DanlinJia commented 4 years ago

Location (Korea, USA, China, India, etc.) USA

Describe the bug

./test/lib/blobfs/mkfs/mkfs /tmp/rocksdb.conf Nvme0n1
Starting DPDK 17.05.0 initialization...
[ DPDK EAL parameters: spdk_mkfs -c 0x3 -m 1024 --file-prefix=spdk_pid5766 ]
EAL: Detected 12 lcore(s)
EAL: No free hugepages reported in hugepages-1048576kB
EAL: Probing VFIO support...
Total cores available: 2
Occupied cpu socket mask is 0x1
reactor.c: 362:_spdk_reactor_run: *NOTICE*: Reactor started on core 1 on socket 0
reactor.c: 362:_spdk_reactor_run: *NOTICE*: Reactor started on core 0 on socket 0
EAL: PCI device 0000:17:00.0 on NUMA socket 0
EAL:   probe driver: 144d:a808 spdk_nvme
Initializing filesystem on bdev Nvme0n1...nvme_qpair.c: 137:nvme_io_qpair_print_command: *NOTICE*: DATASET MANAGEMENT sqid:1 cid:254 nsid:1
nvme_qpair.c: 284:nvme_qpair_print_completion: *NOTICE*: INVALID OPCODE (00/01) sqid:1 cid:254 cdw0:0 sqhd:0002 p:1 m:0 dnr:0
nvme_qpair.c: 131:nvme_io_qpair_print_command: *NOTICE*: WRITE sqid:1 cid:253 nsid:1 lba:0 len:8
nvme_qpair.c: 284:nvme_qpair_print_completion: *NOTICE*: INVALID OPCODE (00/01) sqid:1 cid:253 cdw0:0 sqhd:0003 p:1 m:0 dnr:0
done.
Segmentation fault (core dumped)

To Reproduce Steps to reproduce the behavior: 1.Prepare the spdk configuration file cp /KVSSD/application/kvbench/spdk/spdk/etc/spdk/rocksdb.conf.in /tmp/rocksdb.conf /KVSSD/application/kvbench/spdk/spdk/scripts/gen_nvme.sh >> /tmp/rocksdb.conf

  1. Reserve hugepage cat /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages echo 1024 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages
    1. Setup spdk environment /KVSSD/application/kvbench/spdk/spdk/scripts/setup.sh
    2. Create BlobFS on the device /KVSSD/application/kvbench/spdk/spdk/test/lib/blobfs/mkfs/mkfs e.g. ./test/lib/blobfs/mkfs/mkfs /tmp/rocksdb.conf Nvme0n1

Expected behavior create blobfs correctly.

System environment (please complete the following information) Firmware version : ETA51KCA_20191021_ENC.bin Number of SSDs : 1 OS & Kernel version [e.g., Ubuntu 16.04 Kernel v4.9.5]: Ubuntu 16.04 Kernel v4.13.15 GCC version [e.g., gcc v5.0.0] :5.4.0 User driver version : spdk-18.04 Driver [Kernel or user driver or emulator] : User Driver

hao86yan commented 4 years ago

Blobfs needs block firmware. Your SSD was downloaded the KV firmware. Please firstly download the block firmware to SSD, then try it again.