NVMe initiator configuration in an NVMe-RoCE environment includes installing and configuring the rdma-core and nvme-cli packages, configuring initiator IP addresses, and setting up the NVMe-oF layer on the host.
You are running SUSE Linux Enterprise Server 12 SP5 operating system. See the Lenovo Interop Matrix for a complete list of the latest requirements.
Setup IPv4 IP addresses on the ethernet ports used to connect NVMe over RoCE. For each network interface, create a configuration script that contains the different variables for that interface.
The variables used in this step are based on server hardware and the network environment. The variables include the IPADDR and GATEWAY. These are example instructions for the latest SUSE Linux Enterprise Server 12 service pack:
Create the example file/etc/sysconfig/network/ifcfg-eth4 as follows:
Create the following file under /etc/modules-load.d/ to load the nvme-rdma kernel module and make sure the kernel module will always be on, even after a reboot: