AIX

AIX

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


#Power
 View Only

AIX 4.3.1 VG Segmentation fault(coredump)

  • 1.  AIX 4.3.1 VG Segmentation fault(coredump)

    Posted Thu September 13, 2018 07:06 AM

    Originally posted by: paulopinto


    Hello,

     

    I'm currently troubleshooting a situation that ocurred after moving the system to another building.

    When we tried to boot the system back up an error popped up saying the following:

     

    Starting the error daemon

    A device that was previously detected could not be found.

     

    Run "diag -a" to update the system configuration.

    System initialization completed.

    Starting Multi-user Initialization

     

    Performing auto-varyon of Volume Groups

    Activating all paging spaces

    swapon: Paging device /de/hd6 activated.

    /dev/rhd1 (/home): ** Unmounted cleanly - Check suppressed

     

    Performing all automatic mounts

    mount: 0506-324 Cannot mount /dev/lv0d2 on /disco2: There is a request to a device or address that does not exist.

    Multi-user initialization completed

     

    After this, a technician tried to restore the partition with the following results

     

    # lspv
    hdisk0         002250508207273b    rootvg
    hdisk1         002250500e743d84    oravg
    hdisk2         00225050c40e1871    None


    # importvg -y disk2vg hdisk2
    PV Status:      hdisk2  00225050c40e1871        INVPVID
                            002250500e75a1af        NONAME
    0516-052 varyonvg: Volume group cannot be varied on without a
            quorum. More physical volumes in the group must be active.
            Run diagnostics on inactive PVs.
    0516-780 importvg: Unable to import volume group from hdisk2.

     

    As you can see, hdisk2 doesn't contain any associated VG.
    I proceeded to verify the disk ids as the boot error implied


    # lspv hdisk2
    0516-320 : Physical volume 00225050c40e1871 is not assigned to
            a volume group.
    # lqueryvg -Atp hdisk2 | grep Phy
    Physical:       002250500e75a1af 2   0
    # lquerypv -h /dev/hdisk2 80 10
    00000080   00225050 C40E1871 00000000 00000000  |."PP...q........|

     

    I managed to change the disk id to the correct one and i get the following output

    # lspv
    hdisk0         002250508207273b    rootvg
    hdisk1         002250500e743d84    oravg
    hdisk2         002250500e75a1af    None

     

    Now when i try to import the VG using the command below i get a coredump error.

     

    #importvg -y dbvg hdisk2

    Segmentation fault(coredump)

     

    Is there any viable way to recover the logical volumes inside the hard drive?

     

    Best regards

     


    #AIX-Forum