Code Monkey home page Code Monkey logo

nvmetcli's People

Contributors

jsmart-gh avatar maurorodrigues avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

nvmetcli's Issues

How to setup nvmetcli for FC loopback mode?

I got a problem about setting nvmetcli for FC loopback mode.
The configuration is a NVMe SSD, KC1000, from Kingston and a HBA, QLE2672
2-port 16Gb Fibre Channel Adapter, from QLogic and are installed on Linux
kernel 4.16.6.

The scenario is a fc loop mode, which uses the sole FC HBA as an initiator
and target, to access the NVMe SSD as a NVMe target.

I installed all the required drivers, i.e. nvme-core, nvme, nvme-fabrics,
nvme-fc, nvmet, nvmet-fc, nvme-loop, nvme-fcloop and qla2xxx, in order and
nvmetcli and followded through steps on
http://git.infradead.org/users/hch/nvmetcli.git/blob/HEAD:/Documentation/nvmetcli.txt
.

But when I reach line 212, "create testnqn", on the link above, I had error
message as
"Could not symlink testnqn in configFS: [Errno 6] No such device or
address".

I hacked the kernel source and found seemingly there are some device
attributes on the path, "/sys/devices/virtual/fcloop/ctl/", to fill. But I
can't figure out what strings and format are.

Please guide me, if you have any ideas.

Thank you,

nvmetcli is not compatible with Python 3.10

sudo ./nvmetcli restore test.json

Traceback (most recent call last):
  File "nvmetcli/./nvmetcli", line 617, in <module>
    main()
  File "nvmetcli/./nvmetcli", line 600, in main
    funcs[sys.argv[1]](savefile)
  File "nvmetcli/./nvmetcli", line 563, in restore
    errors = nvme.Root().restore_from_file(from_file)
  File "nvmetcli/nvmet/nvme.py", line 380, in restore_from_file
    return self.restore(config, clear_existing=clear_existing,
  File "nvmetcli/nvmet/nvme.py", line 355, in restore
    Subsystem.setup(t, err_func)
  File "nvmetcli/nvmet/nvme.py", line 496, in setup
    Namespace.setup(s, ns, err_func)
  File "nvmetcli/nvmet/nvme.py", line 590, in setup
    ns._setup_attrs(n, err_func)
  File "nvmetcli/nvmet/nvme.py", line 222, in _setup_attrs
    for name, value in attr_dict.get(group, {}).iteritems():
AttributeError: 'dict' object has no attribute 'iteritems'

nvmetcli failed to run unbunt 22.10 after installed configshell-fb and configure configfs well

below is more detail information in my enviroment, and error message nvmetcli showed

root@wayne-VirtualBox:~/wayne/nvmetcli# ./nvmetcli
-bash: ./nvmetcli: cannot execute: required file not found




root@wayne-VirtualBox:~/wayne/nvmetcli# ls
bump-ver.sh  COPYING  debian  Documentation  examples  fc.json  loop.json  Makefile  nvmet  nvmetcli  nvmet.service  rdma.json  README  rpm  setup.cfg  setup.py
root@wayne-VirtualBox:~/wayne/nvmetcli# uname
Linux
root@wayne-VirtualBox:~/wayne/nvmetcli# uname -a
Linux wayne-VirtualBox 5.19.0-31-generic #32-Ubuntu SMP PREEMPT_DYNAMIC Fri Jan 20 15:20:08 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
root@wayne-VirtualBox:~/wayne/nvmetcli# cat /etc/os-release
PRETTY_NAME="Ubuntu 22.10"
NAME="Ubuntu"
VERSION_ID="22.10"
VERSION="22.10 (Kinetic Kudu)"
VERSION_CODENAME=kinetic
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=kinetic
LOGO=ubuntu-logo
root@wayne-VirtualBox:~/wayne/nvmetcli# 

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.