Bug 115432
Summary: | rpmdb corruption on RHEL3 | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 3 | Reporter: | Dag Wieers <dag> |
Component: | rpm | Assignee: | Jeff Johnson <jbj> |
Status: | CLOSED WONTFIX | QA Contact: | Mike McLean <mikem> |
Severity: | high | Docs Contact: | |
Priority: | medium | ||
Version: | 3.0 | CC: | msw |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2004-10-17 01:04:22 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Dag Wieers
2004-02-12 14:14:24 UTC
Heh, this problem will be fixed if I ever get a reproducer. What version of rpm? What are you using to install, yum? Are you installing in a chroot? I claim that this not corruption per-se, but rather a cache coherency problem. Translation: If you do "rm -f /var/lib/rpm/__db*", then all the installed packages are there. No --rebuildb, nothing else. If you can, try to verify before and after pkg counts using wc -l (doing rm -f /var/lib/rpm/__db*) as needed. Sorry for not being very clear about it. It was a clean RHEL3 U1 installation, no updates except those from U1 were installed. The installation was not done in a chroot, it was on a IBM e325. No other tools except rpm were used. No apt, no yum, no up2date. It was an almost complete install without any extras except the Application Server beta 2.95 RPMs. I tried your suggested solution: [root@dev-srv7 root]# rpm -qa | wc -l 132 [root@dev-srv7 root]# rm -f /var/lib/rpm/__db* [root@dev-srv7 root]# rpm -qa | wc -l 132 If my rpm --rebuild made a non-problematic situation worse, that's worth another bug-report ;-) But I think my rpmdb was already corrupted beyond repair. This may be AMD64 related although some of my personal rpmdb corruption encounters have been unrelated to arch or chroot. (RH80, RH9 and RHFC1 on x86) This isn't corruption, this is cache coherency, don't confuse with other problems. Yeah there's a bug there, look for DB_PAGE_NOT_FOUND in rpm bugs. The bug appears to be tracking with non-ix86. I have credible claim that yum with --installroot produces rapidly on ppc64. I have other reliable (but anecdotal) claims on x86_64 as well. If you got the time, could you s/--enable-posixmutexes// in the RHEL spec file, rebuild, and try to reproduce? That removes NPTL, locking and cache coherency are intimately related. Closing it as I have not performed other tests on the same machine. It's a mystery to me. |