Mailing List
Home
Forum Home
Linux - General Red Hat Linux discussion list
Installation - Getting started with Red Hat Linux
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
Subject: application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
Subject: X Windows problem (xauth)
Subject: Upgrading openoffice 1 1 rpm
Subject: FTP: connection refused
Subject: FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
Subject: broadcom network interface
make mrproper
Couldn 't open PID file /var/run/named/named pid Permission denied
sendmail configuration on redhat
kernel 2 6 and /dev/sound/mixer not found
Subject: Promise 378 controller
Subject: Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
Subject: Lotus Notes under Wine
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
/etc/security/limits conf question
Intel E/1000 driver
rpm database corrupt
Command stream end of file while reading
qla2300 modules
 
rpm database corrupt

rpm database corrupt

2003-12-10       - By Ross Macintyre

 Back
Reply:     1     2     3     4  

> On Fri, 5 Dec 2003, Ross Macintyre wrote:
>
>> Hi,
>>   I have a machine that has a corrup RPM database.
>> I tried the usual
>>   rm var/lib/rpm/__db.00*, then
>>   rpm --rebuilddb
>> which has worked in the past.
>> This time nothing.
>
> If rpm is getting stuck, rather than crashing, that often means some other
> process has the database locked. Look for such processes, or even reboot
> before removing the __db files. See also
> http://www.rpm.org/hintskinks/repairdb/
> for further rebuilding hints if necessary.

thanks to all who replied. Yes the problem was fixed by a reboot and a
rebuild. I got caught out here because 'df' (no args) wasn't hanging and
could be killed with ctrl-c. What I did find was that when I gave the
verbose option to rpm, I did see df failing on a particular mount point;
when I did try df on that mountpoint, it did hang and couldn't be
ctrl-c'd.

The trouble here was that I was loathe to reboot, and the lesson I've
learned is that I shouldn't rely on this server's RPM database(I was using
it to compare against other machines RPM database for consistency).

Thanks,

Ross
>
>   Michael Young
>
>
> --
> Psyche-list mailing list
> Psyche-list@(protected)
> https://www.redhat.com/mailman/listinfo/psyche-list
>


--
Ross Macintyre (raz@(protected))