]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: add ceph-kvstore-tool's man 17092/head
authorliuchang0812 <liuchang0812@gmail.com>
Fri, 18 Aug 2017 13:52:52 +0000 (21:52 +0800)
committerliuchang0812 <liuchang0812@gmail.com>
Tue, 29 Aug 2017 06:22:08 +0000 (14:22 +0800)
Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
doc/man/8/CMakeLists.txt
doc/man/8/ceph-kvstore-tool.rst [new file with mode: 0644]
doc/rados/man/index.rst

index fd6bbae58eab128486cf539836efba4c3b444905..c94fb3fc35f6823e546d72a7f7a9eb68cb760be9 100644 (file)
@@ -3,6 +3,7 @@ set(client_srcs
   ceph-conf.rst
   ceph.rst
   ceph-authtool.rst
+  ceph-kvstore-tool.rst
   rados.rst
   ceph-post-file.rst
   ceph-dencoder.rst)
diff --git a/doc/man/8/ceph-kvstore-tool.rst b/doc/man/8/ceph-kvstore-tool.rst
new file mode 100644 (file)
index 0000000..4baa492
--- /dev/null
@@ -0,0 +1,85 @@
+:orphan:
+
+=====================================================
+ ceph-kvstore-tool -- ceph kvstore manipulation tool
+=====================================================
+
+.. program:: ceph-kvstore-tool
+
+Synopsis
+========
+
+| **ceph-kvstore-tool** <leveldb|rocksdb|bluestore-kv> <store path> *command* [args...]
+
+
+Description
+===========
+
+:program:`ceph-kvstore-tool` is a kvstore manipulation tool. It allows users to manipule
+leveldb/rocksdb's data (like OSD's omap) offline.
+
+Commands
+========
+
+:program:`ceph-kvstore-tool` utility uses many commands for debugging purpose
+which are as follows:
+
+:command:`list [prefix]`
+    Print key of all KV pairs stored with the URL encoded prefix.
+
+:command:`list-crc [prefix]`
+    Print CRC of all KV pairs stored with the URL encoded prefix.
+
+:command:`exists <prefix> [key]`
+    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.
+
+:command:`get <prefix> <key> [out <file>]`
+    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.
+
+:command:`crc <prefix> <key>`
+    Get the CRC of the KV pair stored with the URL encoded prefix and key. 
+
+:command:`get-size [<prefix> <key>]`
+    Get estimated store size or size of value specified by prefix and key.
+
+:command:`set <prefix> <key> [ver <N>|in <file>]`
+    Set the value of the KV pair stored with the URL encoded prefix and key. 
+    The value could be *version_t* or text.
+
+:command:`rm <prefix> <key>`
+    Remove the KV pair stored with the URL encoded prefix and key.
+
+:command:`rm-prefix <prefix>`
+    Remove all KV pairs stored with the URL encoded prefix.
+
+:command:`store-copy <path> [num-keys-per-tx]`
+    Copy all KV pairs to another directory specified by ``path``. 
+    [num-keys-per-tx] is the number of KV pairs copied for a transaction.
+
+:command:`store-crc <path>`
+    Store CRC of all KV pairs to a file specified by ``path``.
+
+:command:`compact`
+    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.
+
+:command:`compact-prefix <prefix>`
+    Compact all entries specified by the URL encoded prefix. 
+   
+:command:`compact-range <prefix> <start> <end>`
+    Compact some entries specified by the URL encoded prefix and range.
+
+Availability
+============
+
+**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.
+
+
+See also
+========
+
+:doc:`ceph <ceph>`\(8)
index 0d0380945e370811781ed571233e405729a249c1..abeb88b1d38c7dc7a7e737a902ecd1bfcc2a9ad2 100644 (file)
@@ -18,6 +18,7 @@
    ../../man/8/ceph-dencoder.rst
    ../../man/8/ceph-mon.rst
    ../../man/8/ceph-osd.rst
+   ../../man/8/ceph-kvstore-tool.rst
    ../../man/8/ceph-run.rst
    ../../man/8/ceph-syn.rst
    ../../man/8/crushtool.rst