Storage : Verifying HBA connectivity
The steps below will help to confirm that the HBA is visible to the OS and the devices can be seen from the HBA.
1. Use the “luxadm -e port” command to verify HBA has established communication with a node.
# luxadm -e port /devices/pci@1f,4000/SUNW,qlc@4/fp@0,0:devctl CONNECTED /devices/pci@1f,4000/SUNW,qlc@4,1/fp@0,0:devctl CONNECTED
NOTE: “CONNECTED” means the HBA has established a communications with some other node (Initiator or Target). “NOT CONNECTED” means the HBA has not established a communication with some other node or connecting to a switch that has no target (including not zoned to a target).
# luxadm -e dump_map - /devices/pci@1f,4000/SUNW,qlc@4/fp@0,0:devctl Pos Port_ID Hard_Addr Port WWN Node WWN Type 0 620000 0 210000e08b05b4c1 200000e08b05b4c1 0x1f (Unknown Type) 1 620100 0 50020f230000a81b 50020f200000a81b 0x0 (Disk device) 2 620300 0 210000e08b052b82 200000e08b052b82 0x1f (Unknown Type, Host Bus Adapter)
# luxadm -e dump_map /devices/pci@1f,4000/SUNW,qlc@4,1/fp@0,0:devctl
Pos AL_PA ID Hard_Addr Port WWN Node WWN Type
0 1 7d 0 210100e08b27eaa6 200100e08b27eaa6 0x1f (Unknown Type,Host Bus Adapter)
1 9f 2c 9f 256000c0ffc00f26 206000c0ff000f26 0x0 (Disk device)
- Record “Port WWN” of the array in question.
256000c , indicates 3510
This WWN will be referenced in multiple steps.
NOTE: If Port_ID ends in “00” or “13”, this indicates switch attached storage.
3 . If the array is switch attached then verify that device is configured in the “cfgadm -lao show_FCP_dev” command.
# cfgadm -lao show_FCP_dev
Ap_Id Type Receptacle Occupant Condition c5 fc-fabric connected unconfigured unknown c5::50020f200000a81b,0 disk connected unconfigured unknown c5::50020f200000a81b,1 disk connected unconfigured unknown c5::50020f200000a81c,0 disk connected configured unknown c5::50020f200000a81c,1 disk connected configured unknown
Note: Receptacle should be “connected”. Occupant should be “configured”.
4. If Occupant is “unconfigured”, then follow the steps below:
1. “cfgadm -c configure <c#::#>” <–Configure the device
2. “cfgadm -lao show_FCP_dev “<–verify the Occupant changed to configured
3. “devfsadm” <— rebuilds the device tree
T3: # cfgadm -c configure c5::50020f200000a81b
3510: # cfgadm -c configure c7::256000c0ffc00f26 # cfgadm -lao show_FCP_dev # devfsadm
5. The steps above confirm that the HBA is visible to the OS and the devices can be seen from the HBA.