No description
Find a file
2023-11-03 14:48:18 +01:00
debian Add fc transport support to nvmetcli 2017-04-18 10:02:53 +02:00
Documentation fix common misspellings from codespell project 2023-11-03 10:29:27 +01:00
examples Add fc transport support to nvmetcli 2017-04-18 10:02:53 +02:00
nvmet fix common misspellings from codespell project 2023-11-03 10:29:27 +01:00
rpm nvmetcli: Install nvmetcli in /usr/sbin with setup.py 2017-04-06 09:19:11 +02:00
.gitignore update .gitignore for the auto-generated manpage formats 2017-02-17 15:49:42 +01:00
bump-ver.sh add a make clean pass to bump-ver.sh 2017-08-10 14:45:56 +02:00
COPYING initial public release 2016-03-16 17:57:54 +01:00
fc.json Add fc transport support to nvmetcli 2017-04-18 10:02:53 +02:00
loop.json update README and examples 2016-05-29 21:36:17 +02:00
Makefile nvmetcli: Adding manpage/html generation 2016-12-01 10:39:07 +01:00
nvmet.service nvmetcli: set up the target only after the network is configured 2023-03-15 14:42:30 +01:00
nvmetcli fix common misspellings from codespell project 2023-11-03 10:29:27 +01:00
rdma.json update README and examples 2016-05-29 21:36:17 +02:00
README nvmetcli: add a tcp example json 2021-01-06 10:01:08 +01:00
setup.cfg nvmetcli: Install nvmetcli in /usr/sbin with setup.py 2017-04-06 09:19:11 +02:00
setup.py bump version to v0.8 2023-11-03 14:48:18 +01:00
tcp.json nvmetcli: add a tcp example json 2021-01-06 10:01:08 +01:00

nvmetcli
========
This contains the NVMe target admin tool "nvmetcli".  It can either be
used interactively by invoking it without arguments, or it can be used
to save, restore or clear the current NVMe target configuration.

Installation
------------
Please install the configshell-fb package from
https://github.com/open-iscsi/configshell-fb first.

nvmetcli can be run directly from the source directory or installed
using setup.py.

Common Package Dependencies and Problems
-----------------------------------------
Both python2 and python3 are supported via use of the 'python-six'
package.

nvmetcli uses the 'pyparsing' package -- running nvmetcli without this
package may produce hard-to-decipher errors.

Usage
-----
Look at Documentation/nvmetcli.txt for details.

Example NVMe Target .json files
--------------------------------------
To load the loop + explicit host version above do the following:

  ./nvmetcli restore loop.json

Or to load the rdma + no host authentication version do the following
after you've ensured that the IP address in rdma.json fits your setup:

  ./nvmetcli restore rdma.json

Or to load the fc + no host authentication version do the following
after you've ensured that the port traddr FC address information in
fc.json fits your setup:

  ./nvmetcli restore fc.json

Or to load the tcp + no host authentication version do the following
after you've ensured that the IP address in tcp.json fits your setup:

  ./nvmetcli restore tcp.json

These files can also be edited directly using your favorite editor.

Testing
-------
nvmetcli comes with a testsuite that tests itself and the kernel configfs
interface for the NVMe target.  To run it make sure you have nose2 and
the coverage plugin for it installed and simple run 'make test'.  To run all
the tests you also need some test block devices or files.  Default is to
use /dev/ram0 and /dev/ram1.  You can override default with environmental
variable eg. NVMET_TEST_DEVICES="/dev/sdk,/dev/sdj" make test .

Development
-----------------
Please send patches and bug reports to linux-nvme@lists.infradead.org for
review and acceptance.