AIX

AIX

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


#Power
#Power
 View Only
  • 1.  slow access to an HBA

    Posted Thu March 14, 2013 12:55 PM

    Originally posted by: SystemAdmin


    Hi,

    I'm new to these forums. If I targeted the wrong one, please let me know.

    I've a Power7 machine. The VIOS partition seems to exhibit 2 FC adapters.
    These are unused, not connected to any thing.
    
    $ lsdev -type adapter name             status      description ... fcs0             Available   4Gb FC PCI Express Adapter (df1000fe) fcs1             Available   4Gb FC PCI Express Adapter (df1000fe) .... $
    


    When I use the HBA library from a program I'm writing, I can grab information on both of them, however, response time for the second one is awfully slow. It takes more than one minute to get the info which is almost instantly returned for the first one...

    In addition, the fcstat command returns data for fcs0 and returns an error for the fcs1:
    
    $ fcstat fcs1 Error opening device: /dev/fscsi1 errno: 0000000d (EPERM) $ # sometimes I also get the following message $ fcstat fcs1 Error opening device: /dev/fscsi1 errno: 00000046 (ENETUNREACH) $
    

    I test all return codes from the HBA library and always get HBA_STATUS_OK...
    • Why is this second access so slow?
    • Is there any way to go faster?
    • Why is there an error detected by fcstat but none reported by the HBA library?

    If someone had a clue, I'd be really grateful.

    Thanks,
    François
    #AIX-Forum


  • 2.  Re: slow access to an HBA

    Posted Fri March 15, 2013 10:32 AM

    Originally posted by: jklotz


    It might first be a problem at the AIX level, in which case you can try to delete and recreate the device :
    rmdev -Rdl fcs1
    cfgmgr
    then check that fcs1 has re-appeared, and run fcstat on it.

    (Warning, you might have customized attributes on fcs1 and children devices, that the rmdev changed to default value).

    But this is too the kind of behaviour you get when tehre is a link problem between the HBA port and the rest of the SAN environment (ie no cable at all, or a bad cable, or the port on to which the cable is plugged has been disabled, or there is a physical problem on the SFP used to connect the cable on the switch port, ...).
    #AIX-Forum


  • 3.  Re: slow access to an HBA

    Posted Mon March 18, 2013 08:11 AM

    Originally posted by: SystemAdmin


    Thanks a lot. I checked the rear panel and apparently I'm missing a wrap plug on my second adapter. Thanks again for the hint!
    #AIX-Forum