NVMe initiator configuration in a 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.
Before you begin
-
You are running the latest compatible SUSE Linux Enterprise Server 12 and 15 service pack operating system. See Lenovo Storage Interoperation Center (LSIC) for a complete list of the latest requirements.
Steps
-
Install the
rdma
andnvme-cli
packages:# zypper install rdma-core # zypper install nvme-cli
# yum install rdma-core # yum install nvme-cli
-
Set up 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
andGATEWAY
. 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:BOOTPROTO='static' BROADCAST= ETHTOOL_OPTIONS= IPADDR='192.168.1.87/24' GATEWAY='192.168.1.1' MTU= NAME='MT27800 Family [ConnectX-5]' NETWORK= REMOTE_IPADDR= STARTMODE='auto'
Create the second example file
/etc/sysconfig/network/ifcfg-eth5
as follows:BOOTPROTO='static' BROADCAST= ETHTOOL_OPTIONS= IPADDR='192.168.2.87/24' GATEWAY='192.168.2.1' MTU= NAME='MT27800 Family [ConnectX-5]' NETWORK= REMOTE_IPADDR= STARTMODE='auto'
-
Enable the network interfaces:
# ifup eth4 # ifup eth5
-
Set up the NVMe-oF layer on the host.
-
Create the following file under
/etc/modules-load.d/
to load thenvme-rdma
kernel module and make sure the kernel module will always be on, even after a reboot:# cat /etc/modules-load.d/nvme-rdma.conf nvme-rdma
-