AIX

AIX

Connect, learn, share, and engage with IBM Power.

 View Only
  • 1.  scan command cfgmgr is not working in AIX server

    Posted 29 days ago

    One of my colleagues ran the odmdelete command on the server (odmdelete -o CuDv -q "name=hdisk18"). After that, we observed some missing paths on the server, and we are unable to run the cfgmgr command. We are getting the following error:

    #cfgmgr
    Method error (/usr/lib/methods/cfgemfscsi -l fscsi0 ):
            0514-061 Cannot find a child device.

    #lspath |grep -i missing
    Missing hdisk0  fscsi0
    Missing hdisk0  fscsi0
    Missing hdisk1  fscsi0
    Missing hdisk1  fscsi0
    Missing hdisk2  fscsi0
    Missing hdisk2  fscsi0
    Missing hdisk3  fscsi0
    Missing hdisk4  fscsi0
    Missing hdisk5  fscsi0
    Missing hdisk6  fscsi0
    Missing hdisk7  fscsi0
    Missing hdisk8  fscsi0
    Missing hdisk9  fscsi0
    Missing hdisk10 fscsi0

    Can anyone help me out? 



    ------------------------------
    Vivek M
    ------------------------------


  • 2.  RE: scan command cfgmgr is not working in AIX server

    Posted 28 days ago

    As a guess you need to reboot AIX since the odmdelete has messed up the status of the kernel.

    Another option could be restore the ODM.

    Note what the documentation says:

    "Attention: Making changes to files that define system object classes and objects can result in system problems. Consult your system administrator before using the /usr/lib/objrepos directory as a storage directory for object classes and objects."



    ------------------------------
    Alexander Pettitt
    ------------------------------



  • 3.  RE: scan command cfgmgr is not working in AIX server

    Posted 28 days ago

    we already took reboot but no use.

    can you help me out?



    ------------------------------
    Vivek M
    ------------------------------



  • 4.  RE: scan command cfgmgr is not working in AIX server

    Posted 28 days ago

    Options in preference order:

    Call IBM support

    Restore from mksysb

    Restore backup of ODM files

    Finish deleting the hdisk from the ODM and reboot. Something like:

    • odmdelete -q "name=hdisk18" -o CuAt
      odmdelete -q "name=hdisk18" -o CuDv # This may have been done based on the thread
      odmdelete -q "name=hdisk18" -o CuDvDr
      odmdelete -q "name=hdisk18" -o CuDep
      odmdelete -q "name=hdisk18" -o CuVPD

    Deleting things from the ODM might make the whole thing fail and you might have to recreate the LPAR unless you have a mksysb.



    ------------------------------
    Alexander Pettitt
    ------------------------------



  • 5.  RE: scan command cfgmgr is not working in AIX server

    Posted 28 days ago

    Hi, 

    well under "normal" conditions the output of 

    "#cfgmgr
    Method error (/usr/lib/methods/cfgemfscsi -l fscsi0 ):
            0514-061 Cannot find a child device."

    means, that the FCS0/FSCSI0 adapter has nothing zoned behind. So no targets in Storage are mapped/zoned to the WWPN of the FC Adapter ( I assume that is a NPIV Adapter). So besides the possible messed up ODM you should check if the NPIV Adapter WWPN is properly zoned. 
    To query that you can also use a IBM Tool named devscan:
    It can be downloaded here: 

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


    Example:
    devscan -t f -n C0507601A673002A

    As long as your AIX is still at a supported Version / you have a SW contract you should open a Ticket with IBM to have it investigated further if you have no other "luck" to solve the current situation.

    Greetings

    Marc-Eric Kahle



    ------------------------------
    Marc-Eric Kahle
    ------------------------------



  • 6.  RE: scan command cfgmgr is not working in AIX server

    Posted 28 days ago

    Oh gosh, that's not the correct procedure for that situation.  You should not use ODM commands unless there is no other option or advised by IBM support.  After corrupting the ODM, your best course of action would be to restore the system back to a known good state from a mksysb.

    This error means that there is nothing for cfgmgr to find on the FC port:-

    #cfgmgr
    Method error (/usr/lib/methods/cfgemfscsi -l fscsi0 ):
            0514-061 Cannot find a child device.

    If you're using NPIV, check that the vfchost is mapped to the correct physical port on the VIO.  Have your storage team check the SAN zoning, storage host definitions & LUN masking.

    The correct way to clean up missing paths is to use rmpath.

    Phill.



    ------------------------------
    Phill Rowbottom
    Unix Consultant
    Service Express
    Bedford
    ------------------------------