On 07/01/2013 03:46 PM m.roth@5-cent.us wrote:
ken wrote:
On 07/01/2013 02:46 PM Eero Volotinen wrote:
try using strace -p PID-OF-YUM and output to mailinglist
Here's the last few lines of strace:
<snip> > ... > open("/var/lib/rpm/Packages", O_RDONLY|O_LARGEFILE) = 4 > fcntl64(4, F_SETFD, FD_CLOEXEC) = 0 > fstat64(4, {st_mode=S_IFREG|0644, st_size=110592000, ...}) = 0 > futex(0xb79b56ac, FUTEX_WAIT, 1, NULL > > It hangs there. > > Significantly, this 'rpm' command hangs also: > > # rpm -vv -V rpm > D: opening db environment /var/lib/rpm/Packages joinenv > D: opening db index /var/lib/rpm/Packages rdonly mode=0x0 > > So the problem may well be with 'rpm'.
You *might* want to consider rpm --rebuilddb
I forget, when I did that, if I had to get rid of/move /var/lib/rpm/__db.*
mark
Yep. I'd done that... since both rpm and yum were hanging on it, it seemed the obvious things to do. See one of my previous emails. I moved off the previous Packages. It was huge compared to the new one:
# ll Packages* -rw-r--r-- 1 root root 12288 Jul 1 15:35 Packages -rw-r--r-- 1 root root 110592000 Jun 17 19:36 Packages.orig