LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   rsync'd db and now rpm -qa doesn't work (https://www.linuxquestions.org/questions/linux-software-2/rsyncd-db-and-now-rpm-qa-doesnt-work-4175476686/)

genderbender 09-11-2013 04:40 AM

rsync'd db and now rpm -qa doesn't work
 
Hi guys, I've been rsyncing data from one server to another and this has proven successful except in the case of rpm, where rpm -qa gives the following error
Quote:

D: opening db environment /var/lib/rpm/Packages joinenv
D: opening db index /var/lib/rpm/Packages rdonly mode=0x0
D: locked db index /var/lib/rpm/Packages
D: closed db index /var/lib/rpm/Packages
D: closed db environment /var/lib/rpm/Packages
D: May free Score board((nil))
I've tried rebuilding the database with no success and booting the server int single user mode and running rpm --initdb with no success, anyone able to help? I've also removed the /var/lib/__db blah files prior to running these commands.

eklavya 09-11-2013 08:01 AM

This document shows the rpm database recovery.
http://www.rpm.org/wiki/Docs/RpmRecovery

genderbender 09-11-2013 08:28 AM

Looks like it's a bug then as I followed these instructions... That's unfortunate :( Thanks for your help.


All times are GMT -5. The time now is 09:23 AM.