AIX

AIX

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

 View Only
  • 1.  hdisk0 removed

    Posted Sat April 11, 2009 11:25 PM

    Originally posted by: aixbird


    Actually one of our server hdisk0 has been removed without done any command via aix,(like reducevg,rmdev....)this PV is part of rootvg,the rootvg has two hdisk(hdisk0,hdisk1)hdisk1 has BLV.
    1.hdisk0 has been removed by mistake
    2.even the disk removed physically the "lsdev -Cc disk" command showing the hdisk0 is available state
    3.so we removed the this entire by "rmdev -l hdisk0 -d" command.
    output:
    hdisk0 removed
    rmdev 0514-508 cannot save the base customized information on /dev/ip/device

    2.hdisk0 again inserted back to the same position

    3.then we excut the "cfgmgr"
    output:
    method error(/usr/lib/method/cfgfscsi -l fscsi0)
    0514-061 cannot find a child device
    cfgmgr:0514-609 unable to save the base customized information on /dev/ip/device

    4.then the hdisk0 automatically assign to rootvg.?
    now the qust is
    how to bring to old setting of hdisk0 now?pls help me

    thx in adv


  • 2.  Re: hdisk0 removed

    Posted Sun April 12, 2009 10:01 AM

    Originally posted by: cd3lgado


    Hi

    Not easy one. You need to delete all reference to that hdisk0 in the ODM of your AIX system. To do that you need to use commands like odmget and odmdelete to make a copy of your current ODM config and then delete those entries tagged with "hdisk0". Once ODM is clean you can try rebuilding the ipldevice by running:

    bosboot -ad /dev/ipldevice

    /dev/ipldevice is a link to the disk you want to use for boot, or the disk that has a correct boot partition, by default hd5.
    1. How to find disk drive in ODM customized database:

    odmget -q name=hdisk# CuAt Where CuAt = Customized Attribute
    odmget -q value=hdisk# CuAt odmget -q name=hdisk# CuDv where CuDv = Customized Device
    odmget -q value3=hdisk# CuDvDr where CuDvDr = Customized Device Driver odmget -q name=hdisk# CuDep where CuDep = Customized Dependency
    odmget -q name=hdisk# CuVPD where CuVPD = Customized Vital Product Database

    2. How to remove disk drive entries from ODM customized database:

    odmdelete -q name=hdisk# -o CuAt
    odmdelete -q value=hdisk# -o CuAt
    odmdelete -q name=hdisk# -o CuDv odmdelete -q value3=hdisk# -o CuDvDr odmdelete -q name=hdisk# -o CuDep odmdelete -q name=hdisk# -o CuVPD
    Hope this helps


  • 3.  Re: hdisk0 removed

    Posted Sun April 12, 2009 11:09 PM

    Originally posted by: Casey_B


    Hello,

    I would be very careful in proceeding. The messages about failing to write to ipldevice seem to indicate that
    the volume group still thinks hdisk0 is part of the VG.

    I would also guess that lsvg rootvg would show a stale pv,
    and lsvg -l rootvg would show that you have a bunch of
    mirrored lv's that are stale.

    I think that a bit safer than the odm munging plan is to try "reducevg"

    Check your man page for some more information. It seems to me that it could be used with
    a pvid.

    Also, of vital importance: Make sure that you have a good bootlist, and also that you have
    performed bosboot after making any changes, and before attempting to reboot.

    Hope this helps,
    Casey