| NVME-CONFIG-CREATE(1) | NVMe Manual | NVME-CONFIG-CREATE(1) |
NAME
nvme-config-create - Add an NVMe-oF connection entry to the INI configuration
SYNOPSIS
nvme [<global-options>] config create
[--discovery]
[--persistent[=<no|auto|force>] ]
[--host-symname=<name>]
[--output=<file>]
[<fabrics-options>]
DESCRIPTION
Build one NVMe-oF connection entry from command-line options and add it to the INI configuration used by nvme connect, nvme discover, and nvme connect-all. The format is documented at https://github.com/linux-nvme/nvme-cli/blob/master/libnvme/design/CONFIG.md
If the target file exists, its connections are kept and the new entry is merged in alongside them. Running the same command again is a no-op. Unlike nvme config convert, this is not a one-shot migration; it is the ongoing way to build an INI configuration from the command line.
The entry is an I/O controller (subsystem) entry by default, and --nqn is required. Use --discovery for a discovery controller entry instead; --nqn is then optional.
A connection with an explicit --hostnqn or --hostid is written to a drop-in under <file>.d/. One without either goes into the main file.
OPTIONS
--discovery
--persistent[=<no|auto|force>]
--host-symname=<name>
--output=<file>
FABRICS OPTIONS
The following options are common to NVMe over Fabrics commands such as nvme connect:
-a <traddr>, --traddr=<traddr>
--concat
-c <#>, --reconnect-delay=<#>
-C <secret>, --kxchap-ctrl-secret=<secret>
-S <secret>, --kxchap-secret=<secret>
-C <secret>, --dhchap-ctrl-secret=<secret>
-S <secret>, --dhchap-secret=<secret>
--disable-sqflow
-G, --data-digest
-D, --duplicate-connect
-g, --hdr-digest
-f <iface>, --host-iface=<iface>
-I <hostid>, --hostid=<hostid>
-q <hostnqn>, --hostnqn=<hostnqn>
-w <traddr>, --host-traddr=<traddr>
-k <#>, --keep-alive-tmo=<#>
--keyring=<keyring>
-n <subnqn>, --nqn=<subnqn>
-i <#>, --nr-io-queues=<#>
-P <#>, --nr-poll-queues=<#>
-W <#>, --nr-write-queues=<#>
-Q <#>, --queue-size=<#>
-l <#>, --ctrl-loss-tmo=<#>
-s <trsvcid>, --trsvcid=<trsvcid>
-T <#>, --tos=<#>
-t <trtype>, --transport=<trtype>
+
| Value | Description |
| rdma | RDMA (RoCE, iWARP, InfiniBand) |
| tcp | TCP/IP |
| fc | Fibre Channel (experimental) |
| loop | Local loopback transport |
--tls
--tls-key=<tls-key>
--tls-key-identity=<identity>
GLOBAL OPTIONS
The following options are defined at the top-level nvme command and are available to this subcommand:
--dry-run
--no-ioctl-probing
--no-retries
-o <fmt>, --output-format=<fmt>
--output-format-version=<version>
--timeout=<ms>
-v, --verbose
These options can also be set as machine-wide defaults in nvme-cli.conf(5). A command-line flag always overrides the file.
EXAMPLES
# nvme config create --transport fc \
--traddr=nn-0x58ccf090c92006da:pn-0x58ccf091492806da \
--host-traddr=nn-0x20000024ff7fa448:pn-0x21000024ff7fa448 \
--hostnqn=nqn.2014-08.org.nvmexpress:uuid:62a4ab74-1e18-11f1-8bb7-6c1ff71ba506 \
--discovery
# nvme config create --transport tcp --traddr=192.168.1.20 --trsvcid=4420 \
--nqn=nqn.2024-01.com.example:data.vol1 \
--output=/tmp/nvme-fabrics.conf
SEE ALSO
nvme-config-convert(1) nvme-config-validate(1) nvme-config-show(1) nvme-connect-all(1) nvme-discover(1)
NVME
Part of the nvme-user suite
| 09/07/2026 | NVMe |