Users Guide
Table Of Contents
- Table of Contents
- Chapter 1: Introduction
- Chapter 2: Installing and Uninstalling
- Chapter 3: Configuration
- 3.1 FC Driver Configuration
- 3.2 vPort Configuration
- 3.3 FC Driver Performance Tuning
- Chapter 4: Configuring NVMe over FC
- Chapter 5: Troubleshooting
- Appendix A: FCP Driver BlockGuard Functionality
- Appendix B: Configuring NVMe over FC on a Target
- Appendix C: Native NVMe Multipathing
- Appendix D: Trunking Support
- Appendix E: FC-SP-2 Authentication (DH-CHAP) Support
- Appendix F: ARM Support
Broadcom DRVLin-UG128-100
22
Emulex Drivers for Linux User Guide
To modify the lpfc_log_verbose value to 0xffffffff:
echo 0xffffffff > /sys/class/scsi_host/host7/lpfc_log_verbose
Reading the lpfc_log_verbose file now shows a value of 0xffffffff:
cat /sys/class/scsi_host/host7/lpfc_log_verbose
0xffffffff
3.1.3 Creating a New Ramdisk Image
The elx_lpfc_install.sh script creates a ramdisk image that contains the FC driver for the currently running kernel.
NOTE: You must create a new ramdisk image whenever the lpfc options in /etc/modprobe.d/elx-lpfc.conf are
changed and you want the change to take effect on the next reboot.
To create a new initial ramdisk image for inbox FC drivers and installed binary RPM FC driver kits, type:
dracut -f /boot/initramfs-<kernel_version>.img <kernel_version>
3.1.4 Dynamically Recognizing LUNs and Targets (Using Scan)
The FC driver enables you to dynamically recognize LUNs and targets without unloading or reloading the FC module and
without resetting the adapter.
To rescan an adapter’s targets with sysfs, given the adapter's host number (in this example, 3), type the following
command:
echo "- - -" > /sys/class/scsi_host/host3/scan
To limit the rescan to a particular target, given the adapter's host number (in this example, 3) and the target number (in this
example, 2), by typing the following command:
echo "- 2 -" > /sys/class/scsi_host/host3/scan
You can also use the lun_scan script in the /usr/sbin/lpfc directory.
3.1.5 Persistent Naming
The generic device manager for the Linux kernel is udev, which primarily manages device nodes in the /dev directory.
3.1.5.1 Using udev to Discover Logical-to-Physical Mappings for sd Devices
In Linux, the driver for SCSI disk drives is sd. A disk device name has an sd prefix. Persistent names for sd devices are
provided in the /dev/disk/by-id directory. To find the persistent udev name for the disk, which is sdc, type the following
command:
cd /dev/disk/by-id
ls -l | grep sdc
Following is the sample output:
lrwxrwxrwx 1 root root 9 2006-08-01 19:08 scsi-32000000c5005d6e6 -> ../../sdc
In the previous example, the disk has no partitions. If the disk had two partitions, the output would look like the following:
lrwxrwxrwx 1 root root 9 2006-08-01 19:08 scsi-32000000c5005d6e6 -> ../../sdc
lrwxrwxrwx 1 root root 10 2006-08-01 19:08 scsi-32000000c5005d6e6-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 10 2006-08-01 19:08 scsi-32000000c5005d6e6-part2 -> ../../sdc2