2012-05-01 02:03:53 +00:00
|
|
|
================================
|
|
|
|
Deploying Ceph with ``mkcephfs``
|
|
|
|
================================
|
|
|
|
|
2012-05-03 16:51:28 +00:00
|
|
|
Once you have copied your Ceph Configuration to the OSD Cluster hosts,
|
|
|
|
you may deploy Ceph with the ``mkcephfs`` script.
|
2012-05-01 02:03:53 +00:00
|
|
|
|
|
|
|
.. note:: ``mkcephfs`` is a quick bootstrapping tool. It does not handle more complex operations, such as upgrades.
|
|
|
|
|
2012-05-03 16:51:28 +00:00
|
|
|
For production environments, you will also be able to deploy Ceph using Chef cookbooks (coming soon!).
|
|
|
|
|
|
|
|
To run ``mkcephfs``, execute the following::
|
2012-05-03 17:15:21 +00:00
|
|
|
|
2012-05-03 16:51:28 +00:00
|
|
|
$ mkcephfs -a -c /etc/ceph/ceph.conf -k /etc/ceph/ceph.keyring
|
|
|
|
|
|
|
|
The script adds an admin key to the ``ceph.keyring``, which is analogous to a root password.
|
2012-05-01 02:03:53 +00:00
|
|
|
|
2012-05-03 17:15:21 +00:00
|
|
|
The script adds an admin key to the ``mycluster.keyring``, which is analogous to a root password.
|
|
|
|
|
|
|
|
To start the cluster, execute the following::
|
2012-05-03 16:42:56 +00:00
|
|
|
|
|
|
|
/etc/init.d/ceph -a start
|
|
|
|
|
2012-05-03 17:15:21 +00:00
|
|
|
Ceph should begin operating. You can check on the health of your Ceph cluster with the following::
|
2012-05-03 16:42:56 +00:00
|
|
|
|
2012-05-03 16:51:28 +00:00
|
|
|
ceph health
|
|
|
|
|
|
|
|
If you specified non-default locations for your configuration or keyring::
|
|
|
|
|
|
|
|
ceph -c /path/to/conf -k /path/to/keyring health
|
|
|
|
|