13–NVMe-oF Configuration with RDMA
Configuring the Target Server
232
BC0154501-00 P
3.
Enable and start the RDMA service as follows:
#
systemctl enable rdma.service
#
systemctl start rdma.service
Disregard the
RDMA Service Failed
error. All OFED modules required by
qedr are already loaded.
Configuring the Target Server
Configure the target 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 target 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 target service:
1.
Load target modules. Issue the following commands after each server
reboot:
#
modprobe qedr
#
modprobe nvmet; modprobe nvmet-rdma
#
lsmod | grep nvme
(confirm that the modules are loaded)
2.
Create the target subsystem NVMe Qualified Name (NQN) with the name
indicated by
<nvme-subsystem-name>
. Use the NVMe-oF specifications; for
example,
nqn.<YEAR>-<Month>.org.<your-company>
.
#
mkdir /sys/kernel/config/nvmet/subsystems/<nvme-subsystem-name>
#
cd /sys/kernel/config/nvmet/subsystems/<nvme-subsystem-name>
3.
Create multiple unique NQNs for additional NVMe devices as needed.
4.
Set the target parameters, as listed in
Table 13-1. Target Parameters
Command
Description
#
echo 1 > attr_allow_any_host
Allows any host to connect.
#
mkdir namespaces/1
Creates a namespace.