junxiongguan / nvmetcli Goto Github PK
View Code? Open in Web Editor NEWmirror of http://git.infradead.org/users/hch/nvmetcli.git
License: Apache License 2.0
mirror of http://git.infradead.org/users/hch/nvmetcli.git
License: Apache License 2.0
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,
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'
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#
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.