Aggregated news from external sources
Repairing a corrupted leveldb database turns out to be simple, but there is no guarantee that the database state after repair will be the same as it was before the corruption occurred!
First, install the leveldb Python module, e.g., using pip.
Then, determine the directory path where your leveldb database is stored. For example, the omap of a Ceph (hammer, jewel) OSD is generally stored in /var/lib/ceph/osd/ceph-$ID/current/omap
Finally, run the Python shell and enter the following commands:
>>> import leveldb
Source: Nathan Cutler (How to repair a leveldb database)