DOKK / manpages / debian 10 / ceph-base / ceph-kvstore-tool.8.en
CEPH-KVSTORE-TOOL(8) Ceph CEPH-KVSTORE-TOOL(8)

ceph-kvstore-tool - ceph kvstore manipulation tool

ceph-kvstore-tool <leveldb|rocksdb|bluestore-kv> <store path> command [args...]

ceph-kvstore-tool is a kvstore manipulation tool. It allows users to manipule leveldb/rocksdb's data (like OSD's omap) offline.

ceph-kvstore-tool utility uses many commands for debugging purpose which are as follows:

Print key of all KV pairs stored with the URL encoded prefix.
Print CRC of all KV pairs stored with the URL encoded prefix.
Check if there is any KV pair stored with the URL encoded prefix. If key is also specified, check for the key with the prefix instead.
Get the value of the KV pair stored with the URL encoded prefix and key. If file is also specified, write the value to the file.
Get the CRC of the KV pair stored with the URL encoded prefix and key.
Get estimated store size or size of value specified by prefix and key.
Set the value of the KV pair stored with the URL encoded prefix and key. The value could be version_t or text.
Remove the KV pair stored with the URL encoded prefix and key.
Remove all KV pairs stored with the URL encoded prefix.
Copy all KV pairs to another directory specified by path. [num-keys-per-tx] is the number of KV pairs copied for a transaction.
Store CRC of all KV pairs to a file specified by path.
Subcommand compact is used to compact all data of kvstore. It will open the database, and trigger a database's compaction. After compaction, some disk space may be released.
Compact all entries specified by the URL encoded prefix.
Compact some entries specified by the URL encoded prefix and range.

ceph-kvstore-tool is part of Ceph, a massively scalable, open-source, distributed storage system. Please refer to the Ceph documentation at http://ceph.com/docs for more information.

ceph(8)

2010-2019, Inktank Storage, Inc. and contributors. Licensed under Creative Commons Attribution Share Alike 3.0 (CC-BY-SA-3.0)

August 28, 2019 dev