|
| 1 | +:orphan: |
| 2 | + |
| 3 | +====================================================== |
| 4 | + ceph-monstore-tool -- ceph monstore manipulation tool |
| 5 | +====================================================== |
| 6 | + |
| 7 | +.. program:: ceph-monstore-tool |
| 8 | + |
| 9 | +Synopsis |
| 10 | +======== |
| 11 | + |
| 12 | +| **ceph-monstore-tool** <store path> <cmd> [args|options] |
| 13 | +
|
| 14 | + |
| 15 | +Description |
| 16 | +=========== |
| 17 | + |
| 18 | +:program:`ceph-monstore-tool` is similar to `ceph-kvstore-tool`. It allows |
| 19 | +users to manipulate MonitorDBStore's data (monmap, osdmap, etc.) offline. |
| 20 | +The default RocksDB debug level is `0`. This can be changed using `--debug`. |
| 21 | + |
| 22 | +Please Note: |
| 23 | + Ceph-specific options should be in the format `--option-name=VAL` |
| 24 | + (specifically, do not forget the '='!!) |
| 25 | + Command-specific options need to be passed after a `--` |
| 26 | + e.g., `get monmap --debug -- --version 10 --out /tmp/foo` |
| 27 | + |
| 28 | +Commands |
| 29 | +======== |
| 30 | + |
| 31 | +:program:`ceph-monstore-tool` utility uses many commands for debugging purpose |
| 32 | +which are as follows: |
| 33 | + |
| 34 | +:command:`store-copy <path>` |
| 35 | + Copies the store to PATH. |
| 36 | + |
| 37 | +:command:`get monmap [-- options]` |
| 38 | + Get monmap (version VER if specified) (default: last committed). |
| 39 | + |
| 40 | +:command:`get osdmap [-- options]` |
| 41 | + Get osdmap (version VER if specified) (default: last committed). |
| 42 | + |
| 43 | +:command:`get msdmap [-- options]` |
| 44 | + Get msdmap (version VER if specified) (default: last committed). |
| 45 | + |
| 46 | +:command:`get mgr [-- options]` |
| 47 | + Get mgrmap (version VER if specified) (default: last committed). |
| 48 | + |
| 49 | +:command:`get crushmap [-- options]` |
| 50 | + Get crushmap (version VER if specified) (default: last committed). |
| 51 | + |
| 52 | +:command:`get osd_snap <key> [-- options]` |
| 53 | + Get osd_snap key (`purged_snap` or `purged_epoch`). |
| 54 | + |
| 55 | +:command:`dump-keys` |
| 56 | + Dumps store keys to FILE (default: stdout). |
| 57 | + |
| 58 | +:command:`dump-paxos [-- options]` |
| 59 | + Dumps Paxos transactions (-- -- help for more info). |
| 60 | + |
| 61 | +:command:`dump-trace FILE [-- options]` |
| 62 | + Dump contents of trace file FILE (-- --help for more info). |
| 63 | + |
| 64 | +:command:`replay-trace FILE [-- options]` |
| 65 | + Replay trace from FILE (-- --help for more info). |
| 66 | + |
| 67 | +:command:`random-gen [-- options]` |
| 68 | + Add randomly genererated ops to the store (-- --help for more info). |
| 69 | + |
| 70 | +:command:`rewrite-crush [-- options]` |
| 71 | + Add a rewrite commit to the store |
| 72 | + |
| 73 | +:command:`rebuild` |
| 74 | + Rebuild store. |
| 75 | + |
| 76 | +:command:`rm <prefix> <key>` |
| 77 | + Remove specified key from the store. |
| 78 | + |
| 79 | +Availability |
| 80 | +============ |
| 81 | + |
| 82 | +**ceph-kvstore-tool** is part of Ceph, a massively scalable, open-source, distributed storage system. Please refer to |
| 83 | +the Ceph documentation at https://docs.ceph.com for more information. |
| 84 | + |
| 85 | + |
| 86 | +See also |
| 87 | +======== |
| 88 | + |
| 89 | +:doc:`ceph <ceph>`\(8) |
0 commit comments