#. via the ``--public-addr <ip[:port]>`` command-line option (or config file option)
#. via the ``--public-network <cidr>`` command-line option (or config file option)
#. via the monmap provided via ``--monmap <path>``, if it includes a monitor with our name
-#. via the bootstrap monmap (provided via ``--monmap <path>`` or generated from ``--mon-host <list>``) if it includes a monitor with no name (``noname-<something>``) and an address configured on the local host.
+#. via the bootstrap monmap (provided via ``--inject-monmap <path>`` or generated from ``--mon-host <list>``) if it includes a monitor with no name (``noname-<something>``) and an address configured on the local host.
Peers
=====
To activate Ceph's debugging output (*i.e.*, ``dout()``) at runtime, use the
``ceph tell`` command to inject arguments into the runtime configuration::
- ceph {daemon-type} tell {daemon id or *} injectargs '--{name} {value} [--{name} {value}]'
+ ceph tell {daemon-type}.{daemon id or *} injectargs '--{name} {value} [--{name} {value}]'
Replace ``{daemon-type}`` with one of ``osd``, ``mon`` or ``mds``. You may apply
the runtime setting to all daemons of a particular type with ``*``, or specify
a specific daemon's ID (i.e., its number or letter). For example, to increase
debug logging for a ``ceph-osd`` daemon named ``osd.0``, execute the following::
- ceph osd tell 0 injectargs '--debug_osd 0/5'
+ ceph tell osd.0 injectargs '--debug-osd 0/5'
The ``ceph tell`` command goes through the monitors. If you cannot bind to the
monitor, you can still make the change by logging into the host of the daemon
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();
}