On a VMware ESXi 5.0 host, how can I check if fiber storage adapters are properly connected to the fiber switch/SAN, i.e. if the fiber link is up?
2 Answers
This information is shown nowhere in the vSphere Client, and there is no command-line tool to check it, either.
The only way to verify if a fiber link is up is to access the ESXi shell and go to /proc/scsi/your_hba_driver
(in my case, /proc/scsi/qla2xxx
); there is a (virtual) file there for each fiber port, and the contents of these files include one of the following:
For an active link:
Host adapter:Loop State = <READY>, flags = 0xaa68
Link speed = <8 Gbps>
For an inactive link:
Host adapter:Loop State = <DEAD>, flags = 0x1a268
Link speed = <Unknown>
Select the host, look at the Configuration tab, chose Storage Adapters, select each HBA, refresh, check that both HBAs have the same number of targets/LUNs then if needed select each LUN and look at their paths.
Alternative look under Configuration, Storage, select a datastore then look at Properties and Manage Paths.
-
No target is showing up at all. But I don't know if this is due to cabling, zoning or the SAN itself (I don't manage any of those). So, first thing first, I'd like to check cabling.– MassimoFeb 1, 2012 at 11:53
-
1Downvoting because I want to check the actual fiber link, not targets/LUNs; I want something like the link status for network adapters.– MassimoFeb 1, 2012 at 12:13
-
4There's nothing in the GUI to show you pure link state and there's certainly nothing to show if the HBA is in a zone but if you do go to the ESXi console and look in /proc/scsi/whateverdriver you can 'cat' the files and see their link state - that's quite complex for most users but it's the only way of doing it AFAIK– Chopper3Feb 1, 2012 at 12:49
-
kinda strange that you have to drop to the host level to see this it should be exposed within the vcenter. Feb 1, 2012 at 12:59
-
Agree, they show link level for NICs but not for FC - ah well, easy to do once you know how but you're right.– Chopper3Feb 1, 2012 at 13:02