AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
 View Only
  • 1.  Hitachi HDLM and AIX

    Posted Tue January 27, 2009 10:40 AM

    Originally posted by: grukrz1


    Hi,

    how to find which HBA active path goes through on a system with HDLM? (HDLM v6, AIX 5.3). Is it feasible??
    kind regards,
    K.
    #AIX-Forum


  • 2.  Re: Hitachi HDLM and AIX

    Posted Tue January 27, 2009 01:12 PM

    Originally posted by: shargus


    dlnkmgr view -hba
    #AIX-Forum


  • 3.  Re: Hitachi HDLM and AIX

    Posted Tue January 27, 2009 01:19 PM

    Originally posted by: shargus


    If you need to know which physical card, you can use lsdev to figure out the FCS number. For example:

    1. dlnkmgr view -hba
    HbaID Port.Bus IO-Count IO-Errors Paths OnlinePaths
    00000 08.04 45031 0 4 4
    00001 08.03 45999 0 4 4

    1. lsdev | grep fcs
    fcs0 Available 03-08 FC Adapter
    fcs1 Available 04-08 FC Adapter

    For this example, HbaID 00000 (08.04) corresponds to fcs1 (04-08). You can then use lscfg to get the actual hardware path.
    #AIX-Forum


  • 4.  Re: Hitachi HDLM and AIX

    Posted Tue January 27, 2009 04:14 PM

    Originally posted by: grukrz1


    hmmm,,, so, please help me explain the following:

    
    # /usr/DynamicLinkManager/bin/dlnkmgr view -lu|sed -n -e 
    '/hdisk3/{x;1!p;g;$!N;p;D;}' -e h iLU  HDevName OSPathID PathID Status 0011 hdisk3   00000    000000 Online 00001    000006 Online
    


    I am going to find the HBA active hdisk3's path goes through:

    
    # /usr/DynamicLinkManager/bin/dlnkmgr view -path|grep -E 
    '^000000|^000006' 000000 00.02.0000000000063A00.0001     HITACHI .DF600F          .7233             0011             1D      Online     Own          29          0    0 hdisk3 000006 00.03.0000000000010300.0001     HITACHI .DF600F          .7233             0011             0A      Online     Non          14          0    0 hdisk3
    


    
    # /usr/DynamicLinkManager/bin/dlnkmgr view -hba HbaID Port.Bus IO-Count   IO-Errors  Paths  OnlinePaths 00000 00.02            74          0      4           4 00001 00.03            65          0      4           4
    

    
    # lsdev|grep fcs fcs0       Available 02-00    4Gb FC PCI Express Adapter (df1000fe) fcs1       Available 03-00    4Gb FC PCI Express Adapter (df1000fe)
    

    
    # lsdev|grep hdisk3 hdisk3     Available 03-00-02 Hitachi Disk Array (Fibre)
    


    
    # lscfg|grep hdisk3 * hdisk3           U789C.001.DQDJ311-P1-C2-T1-W50060E8000C43510-L1000000000000  Hitachi Disk Array (Fibre)
    


    
    # lspath -F
    'status name path_id parent connection' | grep -w hdisk3 Enabled hdisk3 0 fscsi0 50060e8000c43517,1000000000000 Enabled hdisk3 1 fscsi1 50060e8000c43510,1000000000000
    


    It looks, that the pathid 6 is active for hdisk3 and goes through fcs1, but...

    When I set pathid 6 offline:

    
    # /usr/DynamicLinkManager/bin/dlnkmgr offline -pathid 6 -s KAPL01061-I 1 path(s) were successfully placed Offline(C); 0 path(s) were not. Operation name = offline #
    


    
    # /usr/DynamicLinkManager/bin/dlnkmgr view -lu|sed -n -e 
    '/hdisk3/{x;1!p;g;$!N;p;D;}' -e h iLU  HDevName OSPathID PathID Status 0011 hdisk3   00000    000000 Online 00001    000006 Offline(C)
    


    
    # /usr/DynamicLinkManager/bin/dlnkmgr view -hba HbaID Port.Bus IO-Count   IO-Errors  Paths  OnlinePaths 00000 00.02            74          0      4           4 00001 00.03            65          0      4           3
    


    
    # lspath -F
    'status name path_id parent connection' | grep -w hdisk3 Enabled  hdisk3 0 fscsi0 50060e8000c43517,1000000000000 Disabled hdisk3 1 fscsi1 50060e8000c43510,1000000000000 #
    


    I still see "03-00" and connection "W50060E8000C43510" pointing to fscsi1 shown above as disabled path.

    
    # lsdev -Cc disk|grep hdisk3 hdisk3 Available 03-00-02 Hitachi Disk Array (Fibre)
    


    
    # lsdev -Cc adapter|grep fcs fcs0    Available 02-00 4Gb FC PCI Express Adapter (df1000fe) fcs1    Available 03-00 4Gb FC PCI Express Adapter (df1000fe)
    


    
    # lscfg|grep hdisk3 * hdisk3           U789C.001.DQDJ311-P1-C2-T1-W50060E8000C43510-L1000000000000  Hitachi Disk Array (Fibre)
    


    So, when both paths are online what is the reliable method to find active path?
    #AIX-Forum


  • 5.  Re: Hitachi HDLM and AIX

    Posted Tue January 27, 2009 04:32 PM

    Originally posted by: SystemAdmin


    It depends on the type of Hitachi device you have. With some Hitachi devices all paths are active, with others only one path is active and the others are strictly for failover.
    #AIX-Forum


  • 6.  Re: Hitachi HDLM and AIX

    Posted Thu March 19, 2009 01:07 PM

    Originally posted by: SystemAdmin


    Posted on Jan 27, 2009 10:40:09 AM by user grukrz1
    From the replies to HDLM 6 and AIX 5.3 can I assume people are running this combination?
    New installation with VIOS 1.5.2, clients AIX 5.3 TL9 and I haven't come across any references of HDLM 6 support for VIOS 1.5.2 and AIX 5.3.
    #AIX-Forum


  • 7.  Re: Hitachi HDLM and AIX

    Posted Thu March 19, 2009 02:22 PM

    Originally posted by: enmanasu


    I dont think we can point out which disks are getting accessed using paths as both will be active.
    #AIX-Forum


  • 8.  Re: Hitachi HDLM and AIX

    Posted Thu March 19, 2009 07:39 PM

    Originally posted by: shargus


    lsdev will only show one path.

    Use lspath to show all the paths to the disk.
    1. lsdev -l hdisk3
    hdisk3 Available 01-09-02 Hitachi Disk Array (Fibre)
    1. lspath -l hdisk3
    Enabled hdisk3 fscsi0
    Enabled hdisk3 fscsi1
    #AIX-Forum