Notice

This document is for a development version of Ceph.

ceph-monstore-tool -- ceph monstore manipulation tool

Synopsis

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

Description

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

Note:

Ceph-specific options take the format --option-name=VAL DO NOT FORGET THE EQUALS SIGN. (‘=’) for example, dump-keys --debug-rocksdb=0

Command-specific options must be passed after a -- for example, get monmap -- --version 10 --out /tmp/foo

Commands

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

store-copy <path>

Copy the store to PATH.

get monmap [-- options]

Get monmap (version VER if specified) (default: last committed).

get osdmap [-- options]

Get osdmap (version VER if specified) (default: last committed).

get mdsmap [-- options]

Get mdsmap (version VER if specified) (default: last committed).

get mgr [-- options]

Get mgrmap (version VER if specified) (default: last committed).

get crushmap [-- options]

Get crushmap (version VER if specified) (default: last committed).

get-key <prefix> <key> [-- options]

Get key to FILE (default: stdout).

remove-key <prefix> <key> [-- options]

Remove key.

dump-keys

Dump store keys to FILE (default: stdout).

dump-paxos [-- options]

Dump Paxos transactions (-- -- help for more info).

dump-trace FILE [-- options]

Dump contents of trace file FILE (-- --help for more info).

replay-trace FILE [-- options]

Replay trace from FILE (-- --help for more info).

random-gen [-- options]

Add randomly generated ops to the store (-- --help for more info).

rewrite-crush [-- options]

Add a rewrite commit to the store

rebuild

Rebuild 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

ceph(8)

Brought to you by the Ceph Foundation

The Ceph Documentation is a community resource funded and hosted by the non-profit Ceph Foundation. If you would like to support this and our other efforts, please consider joining now.