Creating a new ramdisk image – Dell Emulex Family of Adapters User Manual

Page 830

Advertising
background image

Emulex Drivers Version 10.2 for Linux User Manual

P010081-01A Rev. A

3. Configuration

FC and FCoE Driver Configuration

830

driver parameters. All scsi_hosts bound to the FC and FCoE driver can be viewed with

the following command:

ls -d /sys/bus/pci/drivers/lpfc/*/host*

Assuming you are interested in adapter scsi_host 7, you can list the FC and FCoE driver

parameters for this particular adapter as:

ls -l /sys/class/scsi_host/host7/lpfc*

An example output follows:

-r--r--r-- 1 root root 4096 Feb 28 17:03 /sys/class/scsi_host/host7/lpfc_ack0

-r--r--r-- 1 root root 4096 Feb 28 17:03 /sys/class/scsi_host/host7/lpfc_fcp_class

-rw-r--r-- 1 root root 4096 Feb 28 17:03 /sys/class/scsi_host/host7/

lpfc_fdmi_on

-r--r--r-- 1 root root 4096 Feb 28 17:03 /sys/class/scsi_host/host7/lpfc_link_speed

-rw-r--r-- 1 root root 4096 Feb 28 15:34 /sys/class/scsi_host/host7/lpfc_log_verbose

-r--r--r-- 1 root root 4096 Feb 28 17:03

/sys/class/scsi_host/host7/lpfc_lun_queue_depth

-rw-r--r-- 1 root root 4096 Feb 28 17:03 /sys/class/scsi_host/host7/lpfc_max_luns

-rw-r--r-- 1 root root 4096 Feb 28 17:03 /sys/class/scsi_host/host7/lpfc_nodev_tmo

-rw-r--r-- 1 root root 4096 Feb 28 17:03 /sys/class/scsi_host/host7/lpfc_scan_down

-r--r--r-- 1 root root 4096 Feb 28 17:03 /sys/class/scsi_host/host7/lpfc_topology

-rw-r--r-- 1 root root 4096 Feb 28 17:03 /sys/class/scsi_host/host7/lpfc_use_adisc

Temporary Configuring Parameters with sysfs

In the previous example, notice that the FC and FCoE driver parameters are available

as files. Reading a file displays the current value of a driver parameter. If the

permissions allow it, you can write a value to the file and it will take effect

immediately.
Reading the lpfc_log_verbose file may show that its value is “0”:

cat /sys/class/scsi_host/host7/lpfc_log_verbose

0

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 0x

ffffffff

:

cat /sys/class/scsi_host/host7/lpfc_log_verbose

0xffffffff

Note: Setting the lpfc_log_verbose value to 0xffffffff may cause the system to

experience performance degradation.

Creating a New Ramdisk Image

The lpfc-install script creates a ramdisk image containing the FC and FCoE driver for

the currently running kernel.

Note: You must create a new ramdisk image whenever the LPFC options in

/etc/modprobe.conf are changed and you want the change to take effect on the

next reboot.

Advertising