Users Guide
Broadcom NVMe-FC-120UG-100
39
Emulex NVMe over Fibre Channel User Guide
Record the block devices you want to use, for example /dev/sde and /dev/sdf.
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 lpfc.conf.
5. Insert the following line in the 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: lpfc_enable_fc4_type=3 allows both SCSI and NVMe over FC protocols to be enabled on the port; by default,
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 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.
A.2 Configuring Subsystems, Namespaces, and Ports
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 carried out in this screen.
2. Navigate to the /subsystems directory, and create a subsystem, such as fctest1, by typing the following command:
create fctest1
3. Navigate to the /subsystems/fctest1 subdirectory, and set the allow_any_host parameter to 1, by typing the
following command:
set attr allow_any_host=1
4. Navigate to the /subsystems/fctest1/namespaces subdirectory, and create namespace 1 by typing the following
command:
create 1
└─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