Using the console it’s very easy to rescan a specific vmhba which can be useful when you are troubleshooting. For lazy people like me it’s disturbing that you have to type the command twice if you want to rescan both HBA’s. Well, as of version 3.5 VMware introduced a new setting in Advanced configuration section in the VirtualCenter Client:
Go to “Configuration” of the ESX Host
Click on “Advanced”
Click on “Scsi”
Set “Scsi.ScsiRescanAllHbas” to 1
This can also be done from the command line:
esxcfg-advcfg -s 1 /Scsi/ScsiRescanAllHbas
Now you don’t need to type “esxcfg-rescan vmhba1” and “esxcfg-rescan vmhba2” anymore, when rescanning an HBA all cards will be rescanned.