Find the answer to your Linux question:
Results 1 to 7 of 7
Good day, I untared a few libs on the wrong server (that's the when you're supposed to start laughing!) and I corrupted my server. Everytime it boots up, I get ...
  1. #1
    Just Joined!
    Join Date
    Feb 2011
    Posts
    4

    Corrupted libs: kernel parnic error

    Good day,

    I untared a few libs on the wrong server (that's the when you're supposed to start laughing!) and I corrupted my server. Everytime it boots up, I get the following error:

    /sbin/init: relocation error: /lib/tls/libc.so.6: symbol _dl_out_of_memory, version GLIBC_PRIVATE not defined in file ld-linux.so.2 with link time reference. Kernel panic - not syncing. Attempted to kill init!

    I can I restore the original libs? I'm running RHEL 2.6.9-42 on a Proliant DL585. Thanks for your help.

    Jerome

  2. #2
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,100
    If you have a list of the libs you replaced,
    then you can identify the RPMs involved.

    These could help:
    Code:
    rpm -V <package-name>
    and 
    rpm -qf /lib/<libname>
    Once you have a list of affected RPMs,
    this should get your system back on track:
    Code:
    yum reinstall <rpm_1> <rpm_2> <etc>
    You must always face the curtain with a bow.

  3. #3
    Just Joined!
    Join Date
    Feb 2011
    Posts
    4
    Thanks for your reply. Those are the libs that were "untared"

    /lib/ld-linux.so.2
    /usr/lib/libz.so.1
    /lib/libcrypt.so.1
    /lib/libssl.so.4
    /lib/libcrypto.so.4
    /lib/libresolv.so.2
    /lib/libnsl.so.1
    /lib/libdl.so.2
    /usr/lib/libncurses.so.5 .
    /lib/libm.so.6
    /lib/libc.so.6
    /usr/lib/libgssapi_krb5.so.2
    /usr/lib/libkrb5.so.3
    /usr/lib/libcom_err.so.2
    /lib/libcom_err.so.2
    /usr/lib/libk5crypto.so.3 .

    My server crashes before I get to any login prompt. I do have the RHEL CD here. Is it just a matter of booting from the CD and repair the broken libs? How can I do that?

  4. #4
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,100
    ok, from the list you gave me, I found the appropiate RPMs
    Code:
    <lib>     <RPM>
    
    /lib/ld-linux.so.2		glibc
    /usr/lib/libz.so.1		zlib
    /lib/libcrypt.so.1		glibc
    /lib/libssl.so.4		openssl
    /lib/libcrypto.so.4		openssl
    /lib/libresolv.so.2		glibc
    /lib/libnsl.so.1		glibc
    /lib/libdl.so.2			glibc
    /usr/lib/libncurses.so.5	ncurses
    /lib/libm.so.6			glibc			
    /lib/libc.so.6			glibc
    /usr/lib/libgssapi_krb5.so.2	krb5-libs
    /usr/lib/libkrb5.so.3		krb5-libs
    /usr/lib/libcom_err.so.2	e2fsprogs-libs	
    /lib/libcom_err.so.2		e2fsprogs-libs
    /usr/lib/libk5crypto.so.3	krb5-libs
    Unfortunately, your major "victim" seems to be glibc, which explains why you cant get a login.

    So you also cannot "yum reinstall" right away.

    If you want to avoid a reinstall, you have to
    - manually copy these libs from another similar system (or backup) into the damaged machine (via the RHEL boot cd)
    - hope that it boots
    - and once it does, issue:
    Code:
    yum reinstall glibc zlib openssl ncurses krb5-libs e2fsprogs-libs
    You must always face the curtain with a bow.

  5. #5
    Just Joined!
    Join Date
    Feb 2011
    Posts
    4
    So it looks like I don`t have the right CD cause it just won`t boot with it. Is there a link where I can download RHEL 2.6.9-42 and update those libs?

  6. #6
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,100
    Yes, login to the redhat network.
    https://rhn.redhat.com/
    There you have access to the ISOs
    You must always face the curtain with a bow.

  7. #7
    Just Joined!
    Join Date
    Feb 2011
    Posts
    4
    So I downloaded the following ISO

    rhn.redhat.com/rhn/software/channel/downloads/Download.do?cid=1214

    ...but it seems like this isn't a boot CD.....can somebody confirm?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...