summaryrefslogtreecommitdiffstats
path: root/src/ceph_mon.cc
diff options
context:
space:
mode:
authorLoic Dachary <loic@dachary.org>2013-11-15 22:43:24 +0100
committerJosh Durgin <josh.durgin@inktank.com>2013-11-26 18:44:45 +0100
commit00ee9a5289dfa6a5f692857baee96807d2371db0 (patch)
tree993b7c52bd64cee53edb9d47e7165c6295bba38c /src/ceph_mon.cc
parentMerge pull request #872 from ceph/wip-5871 (diff)
downloadceph-00ee9a5289dfa6a5f692857baee96807d2371db0.tar.xz
ceph-00ee9a5289dfa6a5f692857baee96807d2371db0.zip
doc: improve ceph-mon usage, fix ceph tell examples
The ceph-mon command usage is updated to document all of the ceph-mon specific options. The ceph tell usage examples for log and debug are using a deprecated syntax. Signed-off-by: Loic Dachary <loic@dachary.org> Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'src/ceph_mon.cc')
-rw-r--r--src/ceph_mon.cc14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/ceph_mon.cc b/src/ceph_mon.cc
index 2fc9e91124d..e4e40299119 100644
--- a/src/ceph_mon.cc
+++ b/src/ceph_mon.cc
@@ -103,13 +103,25 @@ int obtain_monmap(MonitorDBStore &store, bufferlist &bl)
void usage()
{
- cerr << "usage: ceph-mon -i monid [--mon-data=pathtodata] [flags]" << std::endl;
+ cerr << "usage: ceph-mon -i monid [flags]" << std::endl;
cerr << " --debug_mon n\n";
cerr << " debug monitor level (e.g. 10)\n";
cerr << " --mkfs\n";
cerr << " build fresh monitor fs\n";
cerr << " --force-sync\n";
cerr << " force a sync from another mon by wiping local data (BE CAREFUL)\n";
+ cerr << " --yes-i-really-mean-it\n";
+ cerr << " mandatory safeguard for --force-sync\n";
+ cerr << " --compact\n";
+ cerr << " compact the monitor store\n";
+ cerr << " --osdmap <filename>\n";
+ cerr << " only used when --mkfs is provided: load the osdmap from <filename>\n";
+ cerr << " --inject-monmap <filename>\n";
+ cerr << " write the <filename> monmap to the local monitor store and exit\n";
+ cerr << " --extract-monmap <filename>\n";
+ cerr << " extract the monmap from the local monitor store and exit\n";
+ cerr << " --mon-data <directory>\n";
+ cerr << " where the mon store and keyring are located\n";
generic_server_usage();
}