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?
Asked
Active
Viewed 1.1k times
1
-
and you can't trace the fiber to the switch port? – tony roth Feb 01 '12 at 12:53
-
Unfortunately, no. Cabling and storage are managed by different people here. – Massimo Feb 01 '12 at 13:08
2 Answers
3
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>

Massimo
- 70,200
- 57
- 200
- 323
2
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.

Chopper3
- 101,299
- 9
- 108
- 239
-
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. – Massimo Feb 01 '12 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. – Massimo Feb 01 '12 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 – Chopper3 Feb 01 '12 at 12:49
-
kinda strange that you have to drop to the host level to see this it should be exposed within the vcenter. – tony roth Feb 01 '12 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. – Chopper3 Feb 01 '12 at 13:02
-
@Chopper3, if you write another answer describing that, I'm going to accept it. – Massimo Feb 01 '12 at 13:56
-