Power

 View Only
Expand all | Collapse all

Viewing WWPN's for FC Adapter ports

  • 1.  Viewing WWPN's for FC Adapter ports

    Posted Thu January 11, 2024 05:38 PM

    We just added 4 new PCIe3 4-Port 16Gb FC Adapters to our Power9.  Normally on I can expand the entry for the card on the HMC under Physical I/O adapters and view the ports and then each WWPN that has been assigned to that port.  After adding the new cards, I can see them in the Physical I/O Adapters but I cannot expand them to see the ports.  What do I need to do in order for me to see the ports and WWPN's for the new adapter cards?

    Thanks,

    Mark



    ------------------------------
    Mark Waring
    ------------------------------


  • 2.  RE: Viewing WWPN's for FC Adapter ports

    Posted Thu January 11, 2024 05:41 PM
    I may be wrong, it's been a long time since we've added adapter cards..

    but I belive the cards ahve to be assigned to an LPAR before the cards can be read.
    So, just assigning them to a VIO server should work, they don't have to be assigned to guests.





  • 3.  RE: Viewing WWPN's for FC Adapter ports

    Posted Thu January 11, 2024 05:50 PM

    Thanks Tom!  I wondered if that was it but I have others that are unassigned and I am able to view the WWPN's of their ports but maybe someone had assigned them to an LPAR and then unassigned it.  Does that sound like a correct scenario?



    ------------------------------
    Mark Waring
    ------------------------------



  • 4.  RE: Viewing WWPN's for FC Adapter ports

    Posted Thu January 11, 2024 06:53 PM
    it could be, something needs to kick the adapter in the back-side and get it to initialize, and I don't think that occurs just by applying power in the slot.

    not to be the blind leading the blind here... this forum has so many really skilled folks in it, I hate to post guesses... but, to get you going, I'd say try it..  assign it to an lpar.... run cfgmgr on the lpar...  run rmdev against the devices, and then remove the adapter from the lpar and see if the HMC then detects them.

    When we bring in new equipment, we generally have 1 LPAR that has ALL hardware assigned to it.
    we then run a process to document WWPNs / Mac addresses by port / slot# etc..   and run initial diags.
    then we nuke the lpar, and install the VIOs etc.. now that we have everything "documented".

    it could be that that has occured in with. your other adapters, that at some point they were initialized, and now you can see everything.

    But, as mentioned previously, it's been years since we've added adapters after bringing in the initial machine, so I really don't know how it acts.. 

    Tom





  • 5.  RE: Viewing WWPN's for FC Adapter ports

    Posted Fri January 12, 2024 09:22 AM

    Thanks again Tom, that sounds like a great approach!  We do have VIOS partitions that I could use for this but I am not a VIOS expert.  I see there are parameters for the cfgmgr and rmdev commands.  What parameters would I use for each?



    ------------------------------
    Mark Waring
    ------------------------------



  • 6.  RE: Viewing WWPN's for FC Adapter ports

    Posted Fri January 12, 2024 03:07 PM
    For this activity, it really has nothing to do with the vios functionality 
    So go to root (oem_setup_env) and work as root like any other partition

    Don't use root for vio based functions





  • 7.  RE: Viewing WWPN's for FC Adapter ports

    Posted Fri January 12, 2024 10:47 AM

    If you add new cards, you can power up the system in hard discovery mode. Be patient. That will, as part of the startup process, create a temporary LPAR, think it's called IOR Collection LPAR, that will allow the HMC to collect all the information about the FC adapters, including WWN's. 

    This command will provide WWN's:

    lshwres -r io -m <managed system> --rsubtype slotchildren -F phys_loc,description,wwpn | grep Fibre



    ------------------------------
    Mark Steele
    ------------------------------



  • 8.  RE: Viewing WWPN's for FC Adapter ports

    Posted Wed January 17, 2024 02:53 PM

    Hi Mark & Tom,

         Thanks for your assistance!  I opened up a ticket with IBM and ask the question to which I got multiple solutions, one of which was to attach the fiber cards to any non-active LPAR and then create a SYSPLAN on the HMC.  The SYSPLAN actually discovered the WWPN's by bringing up the non-active LPAR's to the "Discovery IOR Collection LP" point of which you mentioned.  I was then able to see the WWPN's within the Physical I/O Adapters section of the Power server within the GUI.

    Mark



    ------------------------------
    Mark Waring
    ------------------------------



  • 9.  RE: Viewing WWPN's for FC Adapter ports

    Posted Thu January 18, 2024 10:39 AM

    What type of impact does doing a SYSPLAN have on the frame? We are looking for something that we can run on a regular basis that surfaces all WWN's on a frame as part of a general automation for generating system documentation. We looked at the Powering off/o of the frame but that is quite drastic and would call for us to migrate all work off the frame so it is not really practical.  If SYSPLAN has no impact that sounds like a winner.



    ------------------------------
    Dutch Holland
    ------------------------------



  • 10.  RE: Viewing WWPN's for FC Adapter ports

    Posted Thu January 18, 2024 10:51 AM

    Hi Dutch,

          I did not notice any impact on the frame but those partitions or VIOS servers that are inactive will be brought up enough to get to the "Discover IOR Collection" stage and then brought back down again.  The SYSPLANS would take up space on your HMC and you would want to download the current one and clean up old ones.  As far as any impact on the frame, I will defer that to others that are more of an expert in that area.  I can provide the link below from the IBM case that I opened that might have more detail that will be of use to you:

    https://www.ibm.com/support/pages/node/7083337

    Good luck,

    Mark



    ------------------------------
    Mark Waring
    ------------------------------



  • 11.  RE: Viewing WWPN's for FC Adapter ports

    Posted Thu January 18, 2024 03:08 PM

    I am fan of SYSPLAN.  Runs through the HMC , can save copies elsewhere and has a TON of great info in it.  
    Recommend running one as a baseline as soon as the server is connected to the HMC and then at regular intervals as "maintenance" or "good practice " as it will grab info on the VMs.



    ------------------------------
    Alan Fulton
    Follow me on Twitter - @The_Iron_Monger
    ------------------------------



  • 12.  RE: Viewing WWPN's for FC Adapter ports

    Posted Fri January 19, 2024 02:54 AM
    Edited by Tomas Michal Fri January 19, 2024 02:58 AM

    Hello Mark,

    I hope I have understood your question correctly. 

    All you need ist this :

    # Login in vio with padmin user

    oem_setup_env

    lsdev|grep fcs|while read aa bb
    do
    echo "Device $aa"
    lscfg -vl $aa|egrep '(Network|Hardware)'
    done

    Now you see the WWN (not Formatted with :) and the Location on Physical Card.

    You need the WWN Adress for the SAN Administration to correclty zoning :-)

    Tomas



    ------------------------------
    Tomas Michal
    ------------------------------



  • 13.  RE: Viewing WWPN's for FC Adapter ports

    Posted Fri January 19, 2024 04:27 AM

    Thanks to all.  These posts should hel p us do what we wanted.



    ------------------------------
    Dutch Holland
    ------------------------------