GithubHelp home page GithubHelp logo

openchannelssd / lnvm Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 3.0 22 KB

Administrative tool for LightNVM compatible Open-Channel SSDs

Home Page: http://openchannelssd.readthedocs.org/en/latest/

License: GNU General Public License v2.0

C 94.87% Makefile 5.13%

lnvm's People

Contributors

bebule avatar matiasbjorling avatar safl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

lnvm's Issues

err (-22) on device initialization

When Instantiate with the null_blk driver, I hit err (-22), I am not sure it is a err of lnvm,

andy@andy-MS-7758:$ sudo modprobe null_blk use_lightnvm=1 gb=4
andy@andy-MS-7758:
$ dmesg |grep nvm
[ 1309.903873] nvm: registered nullb0 [1/1/256/4096/1/1]
[ 1309.903887] nvm: err (-22) on device initialization
[ 1309.903965] nvm: registered nullb1 [1/1/256/4096/1/1]
[ 1309.903978] nvm: err (-22) on device initialization

When Instantiate media manager and target with the cmd, the cmd fail and the dmesg show device has no media manager registered

sudo lnvm create -d nullb0 -n mydevice -t rrpc
[ 3781.568705] nvm: device has no media manager registered.

Below are basic Linux and kernel info
lnvm version: 1.0

andy@andy-MS-7758:$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04 LTS
Release: 16.04
Codename: xenial
andy@andy-MS-7758:
$ uname -a
Linux andy-MS-7758 4.4.0-21-generic #37-Ubuntu SMP Mon Apr 18 18:33:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

nvm: device has no media manager registered

Hi,

I'm trying to use the null_blk with lightnvm. (Kernel Version 4.7.0-rc2-Branch-all3-00382-g8f956a8 )

  1. Remove the all the modules.
    root@pat:nvme-fabrics# modprobe -r null_blk
    root@pat:nvme-fabrics# modprobe -r gennvm
    root@pat:nvme-fabrics# modprobe -r rrpc
  2. Load all the modules.
    root@pat:nvme-fabrics# modprobe gennvm
    root@pat:nvme-fabrics# modprobe rrpc
    root@pat:nvme-fabrics# modprobe null_blk use_lightnvm=1
  3. Make sure moduels are loaded.
    root@pat:nvme-fabrics# lsmod | grep -e gennvm -e null_blk -e rrpc
    rrpc 24576 0
    null_blk 16384 0
    gennvm 16384 0
  4. Make sure devices are created.
    root@pat:nvme-fabrics# dmesg -c
    [ 125.681973] null_blk: LightNVM only supports 4k block size
    [ 125.681981] null_blk: defaults block size to 4k
    [ 125.682645] nullb->disk_name nullb0
    [ 125.682651] nullb->disk_name nullb0
    [ 125.682659] ++ null_lnvm_id
    [ 125.682663] -- null_lnvm_id
    [ 125.682670] nvm: registered nullb0 [1/1/256/64000/4/1]
    [ 125.686255] nullb->disk_name nullb1
    [ 125.686271] nullb->disk_name nullb1
    [ 125.686282] ++ null_lnvm_id
    [ 125.686287] -- null_lnvm_id
    [ 125.686297] nvm: registered nullb1 [1/1/256/64000/4/1]
    [ 125.689221] null: module loaded
    [ 125.689230] gb 250 bs 4096 nr_devices 2 use_lightnvm TRUE queue_mode MQ
  5. Get the list of available devices.
    root@pat:nvme-fabrics# lnvm devices
    Number of devices: 2
    Device Block manager Version
    nullb1 none (0,0,0)
    nullb0 none (0,0,0)
  6. Try to create the device with available device list.
    root@pat:nvme-fabrics# lnvm create -d nullb0 -n mydevice -t rrpc -o 0:0
    create failed. See dmesg.
    root@pat:nvme-fabrics# dmesg -c
    [ 400.371478] nvm: device has no media manager registered.

Can someone help me to resolve this issue ?

Can lnvm create two or more OCSSDs into one pblk?

I have two 512GB OCSSD devices. Both of them are able to use lnvm command to create pblk. But I need to combine these two physical 512GB devices into one logic 1TB devices without changing File System. It seems that the command 'create' cann't not make it, because it can only create one device at a time. Is there any idea about how to make it?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.