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
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
Run the following command to set the verbose logging option:
You can run the esxcfg-module –g lpfc_740 command again to verify the settings:
Make the change (re)boot persistent
Reboot your host (make sure no VM’s are running)
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)
After the reboot, open up your vmkernel logfile and verify the HBA driver entries no longer appear.