NVMe/TCP Initiator for Linux
Prerequisites
Kernel 5.0 or later
RHEL 9.2 or later
Ubuntu 24.04 or later
SLES 15 SP3 or later
Installation
Install the nvme-cli:
yum install nvme-cliLoad the NVMe-oF module:
modprobe nvme-fabricsVerify the NVMe/TCP target is reachable:
nvme discover -t tcp -a GATEWAY_IP -s 4420Connect to the NVMe/TCP target:
nvme connect -t tcp -a GATEWAY_IP -n SUBSYSTEM_NQN
Next steps
Verify that the initiator is set up correctly:
List the NVMe block devices:
nvme listCreate a filesystem on the desired device:
mkfs.ext4 NVME_NODE_PATHMount the filesystem:
mkdir /mnt/nvmeofmount NVME_NODE_PATH /mnt/nvmeofList the NVME-oF files:
ls /mnt/nvmeofCreate a text file in the
/mnt/nvmeofdirectory:echo "Hello NVME-oF" > /mnt/nvmeof/hello.textVerify that the file can be accessed:
cat /mnt/nvmeof/hello.text