12–NVMe-oF Configuration with RDMA
Configuring the Initiator Server
190
AH0054601-00 B
5.
Create a symbolic link (symlink) to the newly created NQN subsystem as
follows:
#
ln -s /sys/kernel/config/nvmet/subsystems/
nvme-subsystem-name subsystems/nvme-subsystem-name
6.
Confirm that the NVMe target is listening on the port as follows:
#
dmesg | grep nvmet_rdm
a
[ 8769.470043] nvmet_rdma: enabling port 1 (1.1.1.1:4420)
Configuring the Initiator Server
You configure the initiator server after the reboot process. After the server is
operating, you cannot change the configuration without rebooting. If you are using
a startup script to configure the initiator server, consider pausing the script (using
the
wait
command or something similar) as needed to ensure that each
command finishes before executing the next command.
To configure the initiator server:
1.
Load the NVMe modules. Issue these commands after each server reboot:
#
modprobe qedr
#
modprobe nvme-rdma
#
mkdir /sys/kernel/config/nvmet/
ports/1
#
cd /sys/kernel/config/nvmet/ports/1
Create NVMe port 1.
#
echo 1.1.1.1 > addr_traddr
Set the same IP address. For example, 1.1.1.1 is
the IP address for the target port of the 41000
Series Adapter.
#
echo rdma > addr_trtype
Set the transport type RDMA.
#
echo 4420 > addr_trsvcid
Set the RDMA port number. The socket port num-
ber for NVMe-oF is typically 4420. However, any
port number can be used if it is used consistently
throughout the configuration.
#
echo ipv4 > addr_adrfam
Set the IP address type.
Table 12-1. Target Parameters (Continued)
Command
Description