Users Guide

Broadcom DRVLin-LPe-UG124-100
114
Emulex Drivers for Linux User Guide
Record the block devices you want to use, for example /dev/sde, /dev/sdf, or /dev/nvme0n1.
NOTE: Block devices are located in the /dev directory.
4. Navigate to the /etc/modprobe.d subdirectory, and create a file with the driver name elx-lpfc.conf.
5. Insert the following line in the elx-lpfc.conf file:
options lpfc lpfc_enable_nvmet=<WWPN1, WWPN2> lpfc_enable_fc4_type=3
where <WWPN1, WWPN2> are the WWPNs from Step 1.
NOTE: Bydefault the SCSI and NVMe over FC protocols are enabled on the portand the port is an initiator for the SCSI
protocol. The WWPNs that are listed indicate FC ports that are exclusively NVMe over FC targets; the SCSI
protocol is not used on these ports.
6. Save the elx-lpfc.conf file.
7. Regenerate the ramdisk for the server by typing the following command:
#dracut --force
8. Reboot the system.
After the system is rebooted, the configured protocols are enacted on the FC ports, and the ports identified by the
WWPNs in Step 5 are now running as target ports.
B.2 Configuring Subsystems, Namespaces, and Ports
This procedure creates target subsystems, namespaces, and ports and is for example purposes only. Refer to any operating
system or community-provided NVMe CLI documentation on how to use nvmetcli to create NVMe target subsystems with
all the potential features. For example, although newer NVMe CLI implementations support ANA attributes, the procedure
that follows does not attempt to manage ANA group defaults or assignments for the subsystems or ports. If ANA is desired,
refer to the operating system or community documentation for the necessary steps.
Use the NVMe CLI for target systems to create the target subsystems, namespaces, and ports, and save them to a .json
file by performing the following procedure:
1. Start the NVMe CLI for target systems by typing the following command:
nvmetcli
NOTE: A warning message might appear the first time you run this command. Ignore the message.
A separate utility screen appears. Step 2 though Step 13 are performed in this screen.
2. Navigate to the /subsystems directory, and create a subsystem, such as fctest1, by typing the following command:
create fctest1
└─3600000e00d2a0000002a017300350000 254:5 0 3G 0 mpath
sdd 8:48 0 3G 0 disk
└─3600000e00d2a0000002a017300360000 254:6 0 3G 0 mpath
sde 8:64 0 3G 0 disk
└─3600000e00d2a0000002a017300370000 254:7 0 3G 0 mpath
sdf 8:80 0 3G 0 disk
└─3600000e00d2a0000002a017300380000 254:8 0 3G 0 mpath