PowerVM

 View Only
  • 1.  ClntName not up to date in lsmap output

    Posted Fri February 02, 2024 04:44 AM
    Edited by Sylvain Fri February 02, 2024 06:05 AM

    Hello,

    I use lsmap output in several admin scripts and I discovered that ClntName field is not up to date in lsmap output.

    As a matter of fact, if an LPAR name as changed since the mapping of virtual FC to the physical FC (via vfcmap), the ClntName field still corresponds to initial LPAR name.

    That is a problem because I suppose in my scripts that LPAR names (from ClntName) correspond to hostnames and I use these values to ssh into LPAR to do admin tasks. It works very well in most cases, apart when LPAR name has changed.

    Is it a bug ? 



  • 2.  RE: ClntName not up to date in lsmap output

    IBM Champion
    Posted Mon February 05, 2024 06:16 AM
    Edited by Andrey Klyachkin Mon February 05, 2024 06:16 AM

    I think we need someone from HMC part of the IBM's world here. AFAIU this information comes from VIOS database. I don't remember how often the information is updated there but it usually takes some time.

    Did you try to run cfgdev?



    ------------------------------
    Andrey Klyachkin

    https://www.power-devops.com
    ------------------------------



  • 3.  RE: ClntName not up to date in lsmap output

    Posted Wed February 07, 2024 04:23 AM
    Edited by Sylvain Wed February 07, 2024 04:23 AM

    Hi Andrey,

    cfgdev had no effect.



    Original Message:
    Sent: Mon February 05, 2024 06:16 AM
    From: Andrey Klyachkin
    Subject: ClntName not up to date in lsmap output

    I think we need someone from HMC part of the IBM's world here. AFAIU this information comes from VIOS database. I don't remember how often the information is updated there but it usually takes some time.

    Did you try to run cfgdev?



    ------------------------------
    Andrey Klyachkin

    https://www.power-devops.com



  • 4.  RE: ClntName not up to date in lsmap output

    IBM Champion
    Posted Thu February 08, 2024 06:03 AM

    Did you try running cfgmgr on the client before running cfgdev on the VIOS ?



    ------------------------------
    José Pina Coelho
    IT Specialist at Kyndryl
    ------------------------------



  • 5.  RE: ClntName not up to date in lsmap output

    Posted Fri February 09, 2024 05:18 AM
    Edited by Sylvain Fri February 09, 2024 05:18 AM

    olá José,

    running cfgmgr on the client LPAR before running cfgdev on the VIOS had no effect.



    Original Message:
    Sent: Thu February 08, 2024 06:03 AM
    From: José Pina Coelho
    Subject: ClntName not up to date in lsmap output

    Did you try running cfgmgr on the client before running cfgdev on the VIOS ?



    ------------------------------
    José Pina Coelho
    IT Specialist at Kyndryl



  • 6.  RE: ClntName not up to date in lsmap output

    Posted Thu February 08, 2024 01:34 AM

    Hi Sylvain,

    The client lpar name gets exchanged between VFC host & client adapters during initial handshake. Unless the VFC client adapter is reconfigured, this information will not be updated. Hence you are not seeing the new lpar name.

    May I know how frequently the lpar name gets change and what are the usecases?



    ------------------------------
    RUPESH THOTA
    ------------------------------



  • 7.  RE: ClntName not up to date in lsmap output

    Posted Thu February 08, 2024 03:31 AM
    Hi,

    Our LPARs are provisioned by PowerVC.
    PowerVC generate LPAR name with a unique id suffix. We always remove this suffix as we want that LPAR name matches the hostname.

    LPAR name generated by PowerVC is determined as follows :
    /etc/nova/nova.conf :
    instance_name_template = %(display_name).13s-%(uuid).8s-%(id)08x








  • 8.  RE: ClntName not up to date in lsmap output

    IBM Champion
    Posted Fri February 09, 2024 07:00 AM

    Hi Rupesh,

    Does that mean that a VIOS reboot or an rmdev/mkdev would read the new name?



    ------------------------------
    José Pina Coelho
    IT Specialist at Kyndryl
    ------------------------------



  • 9.  RE: ClntName not up to date in lsmap output

    Posted Fri February 09, 2024 10:49 AM

    Hi Jose,

    Either client lpar reboot or doing rmdev -Rl fcxX & mkdev -l fcsX  on each fcsX virtual adapter  on client lpar, will help in fetching the new lpar name.



    ------------------------------
    RUPESH THOTA
    ------------------------------