View previous topic :: View next topic |
Author |
Message |
Tazok Guru
Joined: 25 Oct 2003 Posts: 310
|
Posted: Tue Sep 29, 2009 5:58 pm Post subject: Okay, here is a difficult one (glibc broken, no reboot) |
|
|
If you could help me fix THAT problem, you're the hero of the day!
Introduction: My gentoo server has been running for many years. I recently started an emerge -vuD world. Glibc was one of the libs being updated.
Problem is: Now with Glibc updated from 2.9.x to 2.10.1, most parts of the system have stopped working. For example grep, make, udev...
I get errors messages like that:
grep: relocation error ... GLIBC_2.3.2 not defined ...
Which also prevents emerging almost anything. Now, as udev has stopped working, my /dev directory is completely empty. There is now way to mount a CD or a usb stick to unpack a stage3-tarball. Networking (ssh) is also corrupt.
To conclude: With Glibc replaced, the system is in an inoperable state. There seems to be no way to get anything into the system as udev isn't working.
AND: I have no intention of rebooting since I setup a dm-crypt over software-raid a few years ago and I fear of not being able to restore that setup and losing valuable data...
So, what would YOU do? |
|
Back to top |
|
|
drescherjm Advocate
Joined: 05 Jun 2004 Posts: 2790 Location: Pittsburgh, PA, USA
|
Posted: Tue Sep 29, 2009 6:44 pm Post subject: |
|
|
Quote: | So, what would YOU do? |
Add the following to your /etc/make.conf:
Code: | EMERGE_DEFAULT_OPTS="--jobs 2 --keep-going" |
Then
Code: | emerge gcc
emerge glibc
emerge -e system
emerge -e world
|
_________________ John
My gentoo overlay
Instructons for overlay |
|
Back to top |
|
|
drescherjm Advocate
Joined: 05 Jun 2004 Posts: 2790 Location: Pittsburgh, PA, USA
|
|
Back to top |
|
|
Tazok Guru
Joined: 25 Oct 2003 Posts: 310
|
Posted: Tue Sep 29, 2009 7:33 pm Post subject: |
|
|
Okay. I got my /dev/cdrom file back, by unmounting /dev/. (Yes, unmounting)
Now my plan is to untar a fresh stage-3-tarball in /.
But, is that possible from the running system? |
|
Back to top |
|
|
drescherjm Advocate
Joined: 05 Jun 2004 Posts: 2790 Location: Pittsburgh, PA, USA
|
Posted: Tue Sep 29, 2009 7:37 pm Post subject: |
|
|
Quote: | But, is that possible from the running system? |
Yes. It will probably break some things however. I highly recommend an entire system rebuild after that.
BTW, Make a copy of your world file and /etc first. _________________ John
My gentoo overlay
Instructons for overlay |
|
Back to top |
|
|
drescherjm Advocate
Joined: 05 Jun 2004 Posts: 2790 Location: Pittsburgh, PA, USA
|
|
Back to top |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Tue Sep 29, 2009 8:05 pm Post subject: |
|
|
Tazok wrote: | Okay. I got my /dev/cdrom file back, by unmounting /dev/. (Yes, unmounting)
Now my plan is to untar a fresh stage-3-tarball in /.
But, is that possible from the running system? |
I have done that and it works.
The important part was tarring up /etc first - and saving your world file, then untarring /etc back on top of the new stage3 and restoring the world file
run env-update && source /etc/profile
then rebuild your world as drescherjm suggests |
|
Back to top |
|
|
|