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

Re: corrupt database



On Thu, 2003-02-06 at 18:35, Jeff Johnson wrote:
> On Thu, Feb 06, 2003 at 06:29:36PM +0000, Torgeir Veimo wrote:
> > On Thu, 2003-02-06 at 17:47, Jeff Johnson wrote:
> > > On Thu, Feb 06, 2003 at 05:25:35PM +0000, Torgeir Veimo wrote:
> > > > On Thu, 2003-02-06 at 16:29, Jeff Johnson wrote:
> > > > > On Thu, Feb 06, 2003 at 03:59:50PM +0000, Torgeir Veimo wrote:
> > > > > > 
> > > > > > db_dump: /var/lib/rpm/Packages: unsupported hash version: 8
> > > > > > db_dump: open: /var/lib/rpm/Packages: Invalid argument
> > > > > 
> > > > > You've done a --rebuilddb with rpm-4.2, which uses db-4.1.24, which
> > > > > has bumped the versions on /var/lib/rpm/Packages, and are now using
> > > > > some version of rpm other than rpm-4.2.
> > > > 
> > > > rpm is still version 4.2, but db4 seems to be 4.0.14.
> > > > 
> > > 
> > > Ah, sorry, I missed db_dump was the culprit. Yes, db_dump-4.0.14 ain't
> > > happy with db-4.1.24 input.
> > > 
> > > Try /usr/lib/rpm/rpmdb_dump instead, should be exactly db_dump from db-4.1.24,
> > > but relinked with -lrpmdb.
> > 
> > Thanx, 
> > 
> > /usr/lib/rpm/rpmdb_dump Packages-ORIG | /usr/lib/rpm/rpmdb_load Packages
> > 
> > works without any errors. I then do a rpm -qa which runs flawlessly, but
> > on rpm --rebuilddb I still get this error;
> > 
> > [root@atlantis rpm]# rpm --rebuilddb
> > error: db4 error(16) from dbenv->remove: Device or resource busy
> 
> Add -vv, if message as at end of --rebuilddb, it's harmless (but scary looking).

> > 
> > /usr/lib/rpm/rpmdb_dump Packages-ORIG | db_load Packages

Could the faq at rpm.org be updated to include a reference to use
/usr/lib/rpm/rpmdb_dump instead of plain db_dump when there are version
differences, and a note saying that the "Device or resource busy"
message can be ignored when running rpm --rebuilddb?

-- 
Torgeir Veimo <torgeir@pobox.com>





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