nvme-connect(1) =============== NAME ---- nvme-connect - Connect to a Fabrics controller. SYNOPSIS -------- [verse] 'nvme' [] 'connect' [--config=] [--devid-file=] [--discovery] [--idempotent] [--owner=] [] DESCRIPTION ----------- Create a transport connection to a remote system (specified by --traddr and --trsvcid) and create a NVMe over Fabrics controller for the NVMe subsystem specified by the --nqn option. OPTIONS ------- --config=:: Connect every connection of the specified INI configuration file (see nvme-fabrics.conf(5)) directly, without discovery, instead of the one given on the command line. A legacy JSON file is converted first. Without this option, 'nvme connect' reads no configuration file. 'none' is the same as no option. --devid-file=:: Write the kernel-assigned device name (for example, nvme0) to . If the controller is already connected, the existing device name is written. Otherwise, the device name is written after the controller is connected. When used with --idempotent, the existing device name is written before the command exits successfully. This allows a supervising process, such as a systemd service, to identify the device for a later disconnect operation. The output file is created before attempting the connection. If the file cannot be created, for example because the parent directory does not exist, the command fails without attempting the connection. A file the command created is removed again when it has no device name to write, so the file never exists empty. --discovery:: The target is a Discovery Controller. The kernel recognizes the well-known discovery NQN by itself, but sees a Discovery Controller with a unique NQN as an I/O controller without this option. That gives it a keep-alive timeout of 5 seconds when none is given, and creates I/O queues for it. --idempotent:: Exit with status 0 if the requested controller is already connected instead of reporting an error. --owner=:: Record NAME as the owner of the connected controller in the NVMe ownership registry, so other orchestrators (and nvme-disconnect-all) leave it alone. See nvme-disconnect-all(1). An empty NAME (--owner=) removes the registry entry instead, leaving the controller unowned. Without --owner, a controller that was already connected keeps the entry it has. include::fabrics-options.txt[] include::global-options.txt[] EXAMPLES -------- * Connect to a subsystem named nqn.2014-08.com.example:nvme:nvm-subsystem-sn-d78432 on the IP4 address 192.168.1.3. Port 4420 is used by default: + ------------ # nvme connect --transport=rdma --traddr=192.168.1.3 \ --nqn=nqn.2014-08.com.example:nvme:nvm-subsystem-sn-d78432 ------------ SEE ALSO -------- nvme-discover(1) nvme-connect-all(1) AUTHORS ------- This was co-written by mailto:james.p.freyensee@intel.com[Jay Freyensee] and mailto:hch@lst.de[Christoph Hellwig] NVME ---- Part of the nvme-user suite