NVMe Connect-all Command

The nvme connect-all command requires several parameters for the NVMe/TCP storage server to be discovered and connected to.

The simplified syntax of this command is:

Bash
Copy

These are only a small sample of the possible parameters. See the NVMe documentation for a complete list and usage of the nvme connect command. We have chosen these parameters as an example of the minimum required to connect to and use an NVMe/TCP volume.

NVMe Connect Parameter Overview

Parameter NameParameter Description
nvme connectThe standard NVMe-oF command for a Linux application client to connect to an NVMe-oF target.
-t [transport type]Indicates to the client’s NVMe driver the transport protocol that should be used for connecting. For Lightbits SDS, the transport protocol is TCP.
-a [IP address]The Lightbits instances IP address.
-s [target discovery port]The discovery port the Lightbits nodes are listening on.
-n [target nqn]The NQN assigned to the Lightbits cluster where the volume was created.
-q [acl]The access control list (ACL) string used when the volume was created on the Lightbits cluster to restrict access to the volume.
-pPersistent - Keep the NVMe device Persistent

After the application client connects to the Lightbits storage cluster, the volumes that this application client can access appear as local block devices. The following example shows how to use the Linux lsblkcommand to list all block devices after the connectcommand finishes.

Sample Command

Bash
Copy

Sample Output

Bash
Copy

In this example, the Lightbits storage server serves four volumes via NVMe/TCP. These volumes are mapped to the /dev Linux file system path. The NVMe/TCP block device names are listed in the Name column.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard