Discovery-Client Command

The NVMe-over-Fabrics specification defines the concept of a discovery controller that an NVMe host can query on a fabric network to discover NVMe subsystems. These subsystems are contained in NVMe targets that can be connected from the network.

Note that the base NVMe specification defines the NQN (NVMe Qualified Name) format, which an NVMe endpoint (device, subsystem, etc) must follow to guarantee a unique name under the NVMe standard. In particular, the host NQN uniquely identifies the NVMe host, and can be used by the discovery controller to control what NVMe target resources are allocated to the NVMe host for a connection.

Install the discovery-client rpm

Bash
Copy

Start the discovery-client service

Bash
Copy

Get the hostnqn

Bash
Copy

In case there is no hostnqn, you can generate one by using the following command:

Bash
Copy

The simplified syntax of this command is:

Bash
Copy

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

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 nvmecommand 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 Node column.

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