Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Okay, here is a difficult one (glibc broken, no reboot)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Tazok
Guru
Guru


Joined: 25 Oct 2003
Posts: 310

PostPosted: Tue Sep 29, 2009 5:58 pm    Post subject: Okay, here is a difficult one (glibc broken, no reboot) Reply with quote

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
View user's profile Send private message
drescherjm
Advocate
Advocate


Joined: 05 Jun 2004
Posts: 2790
Location: Pittsburgh, PA, USA

PostPosted: Tue Sep 29, 2009 6:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
drescherjm
Advocate
Advocate


Joined: 05 Jun 2004
Posts: 2790
Location: Pittsburgh, PA, USA

PostPosted: Tue Sep 29, 2009 7:11 pm    Post subject: Reply with quote

After rereading your entire post. I doubt that this will work.
_________________
John

My gentoo overlay
Instructons for overlay
Back to top
View user's profile Send private message
Tazok
Guru
Guru


Joined: 25 Oct 2003
Posts: 310

PostPosted: Tue Sep 29, 2009 7:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
drescherjm
Advocate
Advocate


Joined: 05 Jun 2004
Posts: 2790
Location: Pittsburgh, PA, USA

PostPosted: Tue Sep 29, 2009 7:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
drescherjm
Advocate
Advocate


Joined: 05 Jun 2004
Posts: 2790
Location: Pittsburgh, PA, USA

PostPosted: Tue Sep 29, 2009 7:40 pm    Post subject: Reply with quote

Also, have you tried
Code:
source /etc/profile
from a new shell?
_________________
John

My gentoo overlay
Instructons for overlay
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Tue Sep 29, 2009 8:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum