10.2. Setting up the NVMe™/RDMA controller using nvmetcli
You can configure the Non-volatile Memory Express™ (NVMe™) over RDMA (NVMe™/RDMA) controller by using the nvmetcli utility. The nvmetcli utility provides a command line and an interactive shell option. For more information, see the nvmetcli and nvme(1) man pages on your system.
Prerequisites
-
Verify that you have a block device to assign to the
nvmetsubsystem. -
Run the following
nvmetclioperations as a root user.
Procedure
Install the
nvmetclipackage:# dnf install nvmetcliDownload the
rdma.jsonfile:# wget http://git.infradead.org/users/hch/nvmetcli.git/blob_plain/0a6b088db2dc2e5de11e6f23f1e890e4b54fee64:/rdma.json-
Edit the
rdma.jsonfile and change thetraddrvalue to172.31.0.202. Setup the controller by loading the NVMe controller configuration file:
# nvmetcli restore rdma.json참고If the NVMe controller configuration file name is not specified, the
nvmetcliuses the/etc/nvmet/config.jsonfile.
Verification
Verify that the NVMe controller is listening on the given port and ready for connection requests:
# dmesg | tail -1 [ 4797.132647] nvmet_rdma: enabling port 2 (172.31.0.202:4420)Optional: Clear the current NVMe controller:
# nvmetcli clear