# esxcfg-module --list
Device Driver Modules
Module Enabled Loaded
vmklinux true true
[...]
vmfs2 true true
iscsi_mod true true
qla2300_707_vmw true false
ql
and Emulex begins with lpfc
.# ls /usr/lib/vmware/vmkmod | grep ql
# ls /usr/lib/vmware/vmkmod | grep lpfc
qla2300_707_vmw.o
qla4010.o
qla4022.o
lpfc_740.o
qla2xxx.o
or qlnativefc
(5.5)qla4xxx.o
lpfc820.o
# esxcfg-module -q | grep -E "^ql|^lpfc"
lpfc820.o lpfc0_lun_queue_depth=2 lpfc1_lun_queue_depth=2
qla2xxx.o ql2xextended_error_logging=1
esxcfg-module -s debug=Debug_Level driver
0
(none) to 16
(all).esxcfg-module -s ql2xextended_error_logging=1 driver
esxcfg-module -s ql2xextended_error_logging=0 driver
esxcfg-module -s extended_error_logging=1 driver
esxcfg-module -s extended_error_logging=0 driver
qla4xxx
, the ql4xextended_error_logging
parameter may be used instead ofextended_error_logging
.vmkload_mod -s qla4xxx | grep extended
/usr/lib/vmware/vmkmgmt_keyval/vmkmgmt_keyval -i vmhbaX/qlogic -s scsi-qlaenable-log -k ADAPTER
/usr/lib/vmware/vmkmgmt_keyval/vmkmgmt_keyval -i vmhbaX/qlogic -s scsi-qladisable-log -k ADAPTER
esxcfg-module -s "ql2xextended_error_logging=1" qlnativefc
esxcli system module parameters set -p "ql2xextended_error_logging=1" -m qlnativefc
esxcfg-module -s debug=Debug_Level driver
0
(none) to 16
(all).esxcfg-module -s debug=Debug_Level driver
0
(none) to 16
(all).esxcfg-module -s debug=Debug_Level driver
0
(none) to 16
(all).To see what parameter is needed for debug: run below command
LOG_ELS | 0x1 | ELS events |
LOG_DISCOVERY | 0x2 | Link discovery events |
LOG_MBOX | 0x4 | Mailbox events |
LOG_INIT | 0x8 | Initialization events |
LOG_LINK_EVENT | 0x10 | Link events |
LOG_FCP | 0x40 | FCP traffic history |
LOG_NODE | 0x80 | Node table events |
LOG_MISC | 0x400 | Miscellaneous events |
LOG_SLI | 0x800 | SLI events |
LOG_CHK_COND | 0x1000 | FCP Check condition flag |
LOG_LIBDFC | 0x2000 | IOCTL events |
LOG_ALL_MSG | 0x7ffff | LOG all messages |
For more information on the complete list of parameters, see Emulex Drivers for VMware ESX/ESXi User Manual.
Note: The preceding link was correct as of October 24, 2014. If you find the link is broken, provide feedback and a VMware employee will update the link.
esxcfg-module -s lpfc_log_verbose=0x7ffff driver_name
esxcfg-module -s lpfc_log_verbose=0xc3 driver_name
esxcfg-module -s lpfc_log_verbose=0 driver_name
esxcli system module parameters set
command. For example, for the Emulex light pulse fibre channel card, run the command:esxcli system module parameters set -p lpfc0_log_verbose=1 -m driver name
/bin/echo 'lpfc_log_verbose 0x4048c3' > /proc/scsi/lpfc820/X
/bin/echo 'lpfc_log_verbose 0x0' > /proc/scsi/lpfc820/X
reboot
command.