how to fix a nackered system by fixing every installed rpm ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, I am recovering a system that has a corrupted system drive after a disk death in a raid 5 array. Unfortunately the disk rebuild on a new disk (larger size) didn't go well. Some files are fine, others have dir entries, but are full of crap.

Booting linux rescue, I have fsck.ext3 the lvm root vol and it fixed the structure errors for more than one hour. It still didn't boot.

It looks like all the dir entries are there, and the contents of some files {eg text files in /etc/ and /root/} are OK, other file just have junk chars {blocks in midnite commander}.

When I tried to chroot /mnt/sysimage, It complained {I forget what} and didn't chroot.

I have another similar machine with same OS and updates, so {backed up the corrupt rpmdb and} copied the rpmdb from the other machine. I copied all the rpms from the install dvd into some available space {separate logical volume}.

I tried to --rebuild the rpmdb, but no success {probs with DB3}. rpm -V shows thousands of md5 bad files. I am able to eg:
# rpm -Uvh --root=/mnt/sysimage rpm --force
So I have over-installed various bits that are missing, and managed to get db4, rpm, and yum to be able to run.

I yum install gtk2 and it says nothing to do, but rpm -V gtk2 shows a heap of problems.

Is there a way to get yum to reinstall what rpm says is installed, but in fact is not actually there ?
{doing it with rpm alone seems like a long way around ?}.

Any other ideas ??

Ta, DaveT.

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux