Friday, January 6, 2012

Fiber Channel Storage: Figure out what is attached

  • Find out how many HBA ports the server has
    • fcinfo hba-port | grep HBA
      • HBA Port WWN: 2100001b32016904
      • HBA Port WWN: 2101001b32216904
      • HBA Port WWN: 2100001b3214bf2b
      • HBA Port WWN: 2101001b3234bf2b
    • fcinfo hba-port | grep "OS Device Name"
      • OS Device Name: /dev/cfg/c8
      • OS Device Name: /dev/cfg/c9
      • OS Device Name: /dev/cfg/c1
      • OS Device Name: /dev/cfg/c10
    •  fcinfo hba-port | grep State
      • State: online
      • State: online
      • State: online
      • State: online
  • Issue cfgadm command to find out the ports attached to the OS devices
    • cfgadm -al  | more
    • Ap_Id                          Type         Receptacle   Occupant     Condition
    • c1                             fc-private   connected    configured   unknown
    • c1::201400a0b8563966           disk         connected    configured   unknown
    • c8::200600a0b82aa8e3           disk         connected    configured   unknown
    • c9                             fc-private   connected    configured   unknown
    • c9::200700a0b82aa8e3           disk         connected    configured   unknown
    • c10                            fc-private   connected    configured   unknown
    • c10::201500a0b8563966          disk         connected    configured   unknown
  • On the storage side, find the ports and match them with the ids next to OS device name
  • To find out the disk name as listed in format command, refer to the WWN number listed in the volume sections of the storage 
Look at the mapping section on storage side
     Volume name     Controller   LUN
       V1                    A               0
 
This matches to <controller id for A>,0 on format command



  • Verify if multipathing is enabled on a disk
    • mpathadm show lu
      /dev/rdsk/c0t600A0B800056396600000FDB4EBC22C4d0s0

No comments:

Post a Comment