Failed RPM database migrations

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

 



https://bugzilla.redhat.com/show_bug.cgi?id=2042147#c2
https://fedoraproject.org/wiki/Changes/RelocateRPMToUsr
https://bugzilla.redhat.com/2042099

The RPM database is supposed to move from /var/lib/rpm to
/usr/lib/sysimage/rpm.  This was supposed to happen automatically when
you upgraded the rpm package from an earlier version to 4.17.0-10.fc36
(Feb-Mar 2022).

On several machines it is reported that the migration was only half-
completed.  The symptoms are that the RPM database is still in
/var/lib/rpm (/usr contains symlinks to it).  See typical output from
failed & successful migrations at the end of the email.

So _if_ you have rpm >= 4.17.0-10.fc36 installed:

 - Do you see the symptom of a failed migration?  Or does it appear
   to be successful?  (Or neither case??)

 - Did you:
    * Install F37 or Rawhide from scratch?
    * Upgrade using ordinary dnf update or similar?
    * Upgrade using dnf system-upgrade?
    * Some other install/upgrade method?

Rich.


** After a failed migration: **

$ ls -la /var/lib/rpm
total 339004
drwxr-xr-x.  2 root root      4096 Feb 16  2022 .
drwxr-xr-x. 76 root root      4096 Aug 23 13:28 ..
-rw-r--r--.  1 root root         0 Oct 18 14:28 .migratedb
-rw-r--r--.  1 root root 347095040 Oct 26 16:50 rpmdb.sqlite
-rw-r--r--.  1 root root     32768 Oct 27 15:28 rpmdb.sqlite-shm
-rw-r--r--.  1 root root         0 Oct 26 16:50 rpmdb.sqlite-wal
-rw-r--r--.  1 root root         0 Feb 16  2022 .rpm.lock

$ ls -la /usr/lib/sysimage/rpm
total 8
drwxr-xr-x. 2 root root 4096 Oct  5 12:05 .
drwxr-xr-x. 3 root root 4096 Feb  9  2022 ..
lrwxrwxrwx. 1 root root   34 Oct 18 14:28 .migratedb -> ../../../../var/lib/rpm/.migratedb
lrwxrwxrwx. 1 root root   36 Oct 18 14:28 rpmdb.sqlite -> ../../../../var/lib/rpm/rpmdb.sqlite
lrwxrwxrwx. 1 root root   40 Oct 18 14:28 rpmdb.sqlite-shm -> ../../../../var/lib/rpm/rpmdb.sqlite-shm
lrwxrwxrwx. 1 root root   40 Oct 18 14:28 rpmdb.sqlite-wal -> ../../../../var/lib/rpm/rpmdb.sqlite-wal
lrwxrwxrwx. 1 root root   33 Oct 18 14:28 .rpm.lock -> ../../../../var/lib/rpm/.rpm.lock


** After a successful migration: **

$ ls -la /var/lib/rpm
lrwxrwxrwx. 1 root root 26 Sep  5 13:35 /var/lib/rpm -> ../../usr/lib/sysimage/rpm

$ ls -la /usr/lib/sysimage/rpm
total 316324
drwxr-xr-x. 2 root root        91 Sep 17 23:03 .
drwxr-xr-x. 3 root root        17 Aug  9 14:27 ..
-rw-r--r--. 1 root root 323878912 Oct 27 16:12 rpmdb.sqlite
-rw-r--r--. 1 root root     32768 Oct 28 10:45 rpmdb.sqlite-shm
-rw-r--r--. 1 root root         0 Oct 27 16:12 rpmdb.sqlite-wal
-rw-r--r--. 1 root root         0 Sep  5 13:53 .rpm.lock


-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
nbdkit - Flexible, fast NBD server with plugins
https://gitlab.com/nbdkit/nbdkit
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux