Users Guide

Broadcom DRVLin-LPe-UG124-100
116
Emulex Drivers for Linux User Guide
Information similar to the following is displayed:
Parameter trsvcid is now ‘none’.
The port connection has been created. You can create additional port connections by repeating Step 7 through Step 10,
incrementing the port number each time.
11. Link the port to the subsystem by navigating to the /ports/1/subsystems directory and typing the following
command:
create <subsystem>
where <subsystem> is the same name as the subsystem you created in Step 2.
For example:
create fctest1
12. Save the .json file by typing the following command:
saveconfig <filename>.json
NOTE: If you want the configuration to be restored automatically after rebooting, this file must be named config.json,
and it must be saved under the path /etc/nvmet/. Otherwise, <filename> can be any valid file name.
13. Exit the NVMe CLI for target systems utility screen by typing the following command:
exit
The target configuration is now stored in the <filename>.json file in the directory that was current before you started
the NVMeT CLI, or in the /etc/nvmet/ directory.
Unless you want to change the subsystems, namespaces, or port configurations, you perform Step 1 through Step 13 only
the first time you set the configuration.
After configuring the target, you can run the nvme_info command to verify that your configuration is working by typing the
following command on the target:
cat /sys/class/scsi_host/host<X>/nvme_info
where <X> is the host number.
Information similar to the following appears:
NVME Target Enabled State REGISTERED
NVME Target: lpfc0 WWPN x10000090fa942779 WWNN x20000090fa942779 DID x011400
NVME Target: Statistics
LS: Rcv 00000004 Drop 00000000 Abort 00000000
LS: Xmt 00000004 Drop 00000000 Cmpl 00000004 Err 00000000
FCP: Rcv 00000002 Defer 00000000 Release 00000002 Drop 00000000
FCP Rsp: RD 00000000 rsp 00000000 WR 00000002 rsp 00000002 drop 00000000
FCP Rsp Cmpl: 00000004 err 00000000 drop 00000000
ABORT: Xmt 00000000 Cmpl 00000000
ABORT: Sol 00000000 Usol 00000000 Err 00000000 Cmpl 00000000
IO_CTX: 00001706 WAIT: cur 00000000 tot 00000000
CTX Outstanding 00000000
The NVMe over FC target configuration is now complete. You must now configure NVMe over FC on an initiator. The block
devices configured can be discovered by the NVMe initiator system as nvme devices (for example: /dev/nvme0n1).
If you reboot the system, or if you need to restore the NVMe target, type the following command:
nvmetcli restore <filename>.conf