Set verbose logging on Emulex Driver in ESX 3.5
If you’re troobleshooting SAN/HBA issues, it might come in handy to enable verbose logging on your Emulex HBA driver.
Run the following command to list the drivername
vmkload_mod -l | grep lpfc
The HBA driver is our case is lpfc_740 (lpfc stands for LightPulse Fibre Channel and 740 is the version number)
List the current options for the driver by entering
esxcfg-module -g lpfc_740
Run the following command to set the verbose logging option:
esxcfg-module -s lpfc_log_verbose=0xffff lpfc_740
You can run the esxcfg-module –g lpfc_740 command again to verify the settings:
Make the change (re)boot persistent
esxcfg-boot -b
Reboot your host (make sure no VM’s are running)
reboot
If you now check your vmkernel logfile (/var/log/vmkernel), you will see a LOT of entries from your HBA driver.
After you have done your stuff, make sure to disable to logging by running (basically, you will remove the lpfc_log_verbose option from the driver loading module)
esxcfg-module –s ‘’ lpfc_740
esxcfg-boot -b
reboot
After the reboot, open up your vmkernel logfile and verify the HBA driver entries no longer appear.