Create swap from File on BTRFS Filesystem
I had a server run out of space recently, to the point that it couldn’t complete the yum update. This server ended up corrupting a yum packages database.
Here’s how corrupted YUM database looks
Correctly called rpmdb, packaged database used by YUM looks like this when it can’t be opened:
Rebuilding RPM DB
The fix is to rebuild the RPM database, like this:
and just to try things, do the same yum update – it should work now:
See Also
I had a server run out of space recently, to the point that it couldn’t complete the yum update. This server ended up corrupting a yum packages database.
Here’s how corrupted YUM database looks
Correctly called rpmdb, packaged database used by YUM looks like this when it can’t be opened:
Rebuilding RPM DB
The fix is to rebuild the RPM database, like this:
and just to try things, do the same yum update – it should work now: