As a first exercise, create a Ceph Storage Cluster with one Ceph Monitor and two
Ceph OSD Daemons. Once the cluster reaches a ``active + clean`` state, expand it
by adding a third Ceph OSD Daemon, a Metadata Server and two more Ceph Monitors.
+For best results, create a directory on your admin node node for maintaining the
+configuration files and keys that ``ceph-deploy`` generates for your cluster. ::
+
+ mkdir my-cluster
+ cd my-cluster
+
+The ``ceph-deploy`` utility will output files to the current directory. Ensure you
+are in this directory when executing ``ceph-deploy``.
.. important:: Do not call ``ceph-deploy`` with ``sudo`` or run it as ``root``
if you are logged in as a different user, because it will not issue ``sudo``
If you execute ``purge``, you must re-install Ceph.
On your admin node from the directory you created for holding your
-configuration file, perform the following steps using ``ceph-deploy``.
+configuration details, perform the following steps using ``ceph-deploy``.
#. Create the cluster. ::
keyring, and a log file for the new cluster. See `ceph-deploy new -h`_
for additional details.
+#. Change the default number of replicas in the Ceph configuration file from
+ ``3`` to ``2`` so that Ceph can achieve an ``active + clean`` state with
+ just two Ceph OSDs. Add the following line under the ``[default]`` section::
+
+ osd pool default size = 2
#. If you have more than one network interface, add the ``public network``
setting under the ``[global]`` section of your Ceph configuration file.
ceph-deploy mon create-initial
- For example::
-
- ceph-deploy mon create-initial
-
**Note:** In earlier versions of ``ceph-deploy``, you must create the
initial monitor(s) and gather keys in two discrete steps. First, create
the monitor. ::
ceph-deploy admin admin-node node1 node2 node3
+
+ When ``ceph-deploy`` is talking to the local admin host (``admin-node``),
+ it must be reachable by its hostname. If necessary, modify ``/etc/hosts``
+ to add the name of the admin host.
+
#. Ensure that you have the correct permissions for the
``ceph.client.admin.keyring``. ::