summaryrefslogtreecommitdiffstats
path: root/doc/man/8/ceph-monstore-tool.rst
blob: 9396df0b6057461fbf8548135ad4a63865aa91ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
:orphan:

======================================================
 ceph-monstore-tool -- ceph monstore manipulation tool
======================================================

.. program:: ceph-monstore-tool

Synopsis
========

| **ceph-monstore-tool** <store path> <cmd> [args|options]


Description
===========

:program:`ceph-monstore-tool` is used to manipulate MonitorDBStore's data
(monmap, osdmap, etc.) offline. It is similar to `ceph-kvstore-tool`.

The default RocksDB debug level is `0`. This can be changed using `--debug`.

Note:
    Ceph-specific options take the format `--option-name=VAL`
    DO NOT FORGET THE EQUALS SIGN. ('=')
    Command-specific options must be passed after a `--`
    for example, `get monmap --debug -- --version 10 --out /tmp/foo`

Commands
========

:program:`ceph-monstore-tool` uses many commands for debugging purposes:

:command:`store-copy <path>`
    Copy the store to PATH.

:command:`get monmap [-- options]`
    Get monmap (version VER if specified) (default: last committed).

:command:`get osdmap [-- options]`
    Get osdmap (version VER if specified) (default: last committed).

:command:`get msdmap [-- options]`
    Get msdmap (version VER if specified) (default: last committed).

:command:`get mgr [-- options]`
    Get mgrmap (version VER if specified) (default: last committed).

:command:`get crushmap [-- options]`
    Get crushmap (version VER if specified) (default: last committed).

:command:`get osd_snap <key> [-- options]`
    Get osd_snap key (`purged_snap` or `purged_epoch`).

:command:`dump-keys`
    Dump store keys to FILE (default: stdout).

:command:`dump-paxos [-- options]`
    Dump Paxos transactions  (-- -- help for more info).

:command:`dump-trace FILE  [-- options]`
    Dump contents of trace file FILE (-- --help for more info).

:command:`replay-trace FILE  [-- options]`
    Replay trace from FILE (-- --help for more info).

:command:`random-gen [-- options]`
    Add randomly genererated ops to the store (-- --help for more info).

:command:`rewrite-crush [-- options]`
    Add a rewrite commit to the store

:command:`rebuild`
    Rebuild store.

:command:`rm <prefix> <key>`
    Remove specified key from the store.

Availability
============

**ceph-monstore-tool** is part of Ceph, a massively scalable, open-source,
distributed storage system. See the Ceph documentation at
https://docs.ceph.com for more information.


See also
========

:doc:`ceph <ceph>`\(8)