Showing posts with label HBA. Show all posts
Showing posts with label HBA. Show all posts

Sunday, May 19, 2013

Solaris 10 -Troubleshooting HBA Card or LUN Issue

Run the command fcinfo hba-port to get the WWPN and WWNN , Contact Storage Administrator to help you further with the PN and NN number, if the HBA port status is not showing as on-line.

# fcinfo hba-port
HBA Port WWN: 21000003ba9b1739   --WWPN
        OS Device Name: /dev/cfg/c1
        Manufacturer: QLogic Corp.
        Model: 2200
        Firmware Version: 02.01.145
        FCode/BIOS Version: ISP2200 FC-AL Host Adapter Driver: 1.15 04/03/22
        Serial Number: not available
        Driver Name: qlc
        Driver Version: 20110321-3.05
        Type: L-port
        State: online
        Supported Speeds: 1Gb
        Current Speed: 1Gb
        Node WWN: 20000003ba9b1739  --WWNN
HBA Port WWN: 210000e08b80eee8 --WWPN
        OS Device Name: /dev/cfg/c2
        Manufacturer: QLogic Corp.
        Model: 375-3102-xx
        Firmware Version: 03.03.28
        FCode/BIOS Version:  fcode: 1.13;
        Serial Number: not available
        Driver Name: qlc
        Driver Version: 20110321-3.05
        Type: unknown
        State: offline
        Supported Speeds: 1Gb 2Gb
        Current Speed: not established
        Node WWN: 200000e08b80eee8 ---WWNN
HBA Port WWN: 210000e08b81e0d3  --WWPN
        OS Device Name: /dev/cfg/c3
        Manufacturer: QLogic Corp.
        Model: 375-3102-xx
        Firmware Version: 03.03.28
        FCode/BIOS Version:  fcode: 1.13;
        Serial Number: not available
        Driver Name: qlc
        Driver Version: 20110321-3.05
        Type: unknown
        State: offline
        Supported Speeds: 1Gb 2Gb
        Current Speed: not established
        Node WWN: 200000e08b81e0d3 --WWPN

Redhat Linux -Troubleshooting SAN Lun unavailability and HBA Issue


First , we will try to understand the Scenario  Suppose the LUN is coming from a storage and it is being used on Redhat Linux in LVM. Now when you run df -k, you see errors.

#df -k - This gives an error on the filesystem

Run pvs  -This will give us the details of the disk.
Look at the left column of PV, this will give you the details disks present in the volume group vgora

#pvs

  PV              VG     Fmt  Attr PSize   PFree
  /dev/emcpoweray vgora  lvm2 a--  101.15G    0
  /dev/emcpowerx1 vgora  lvm2 a--  139.70G 9.70G
  /dev/sda2       vgroot lvm2 a--   31.97G    0

Check the details of the HBA
a. HBA Port state
root@test1: # cat /sys/class/fc_host/host1/port_state
Online

b. HBA speed 
root@test1: # cat /sys/class/fc_host/host1/speed
4 Gbit

c.Port Name -WWPN
root@test1: # cat /sys/class/fc_host/host1/port_name
0x20010024e859e129

d.Node Name -WWNN
root@test1: # cat /sys/class/fc_host/host1/node_name
0x20000024e859e129

Provide the required info to the Storage team and they may help you to resolve the problem.