``/etc/ceph/ceph.conf`` to determine monitor addresses during
startup.
+.. option:: --mkfs
+
+ Initialize the ``mon data`` directory with seed information to form
+ and initial ceph file system or to join an existing monitor
+ cluster. Three pieces of information must be provided:
+
+ - The cluster fsid. This can come from a monmap (``--monmap <path>``) or
+ explicitly via ``--fsid <uuid>``.
+ - A list of monitors and their addresses. This list of monitors
+ can come from a monmap (``--monmap <path>``), the ``mon host``
+ configuration value (in *ceph.conf* or via ``-m
+ host1,host2,...`), or ``mon addr`` lines in *ceph.conf*. If this
+ monitor is to be part of the initial monitor quorum for a new
+ Ceph cluster, then it must be included in the initial list,
+ matching either the name or address of a monitor in the list.
+ When matching by address, either the ``public addr`` or ``public
+ subnet`` options may be used.
+ - The monitor secret key ``mon.``. This must be included in the
+ keyring provided via ``--keyring <path>``.
+
+.. option:: --keyring
+
+ Specify a keyring for use with ``--mkfs``.
+
Availability
============
</path/to/monmap>``) for explicitly via ``--fsid <fsid>``.
- one or more existing monitors to join. This can come via ``-m
<host1,host2,...>``, a monmap (``--monmap </some/path>``), or
- ``[mon.foo]`` sections with ``mon addr`` fields in ``ceph.conf``.
+ ``[mon.foo]`` sections with ``mon addr`` fields in *ceph.conf*.
- the monitor authentication key ``mon.``. This should be passed
in explicitly via a keyring (``--keyring </some/path>``).
#. Start the new monitor and it will automatically join the cluster.
The daemon needs to know which address to bind to, either via
``--public-addr <ip:port>`` or by setting ``mon addr`` in the
- appropriate section of ``ceph.conf``. For example::
+ appropriate section of *ceph.conf*. For example::
$ ceph-mon -i newname --public-addr <ip:port>
#. If you would like other nodes to be able to use this monitor during
- their initial startup, you'll need to adjust ``ceph.conf`` to add a
+ their initial startup, you'll need to adjust *ceph.conf* to add a
section and ``mon addr`` for the new monitor, or add it to the
existing ``mon host`` list.
$ service ceph start mon # on each node with a surviving monitor
-6) Remove the old monitors from ``ceph.conf`` so that nobody tries to
+6) Remove the old monitors from *ceph.conf* so that nobody tries to
connect to the old instances.