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:
$ python
...
>>> import leveldb
>>> leveldb.RepairDB('
>>>
That's all.
No comments:
Post a Comment