summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Wilkins <john.wilkins@inktank.com>2013-04-26 23:04:16 +0200
committerJohn Wilkins <john.wilkins@inktank.com>2013-04-26 23:04:16 +0200
commitf24dbdefa49c61d95728b492ff9267fa4524eeaa (patch)
tree286b8a1a9f6762b6abe46344965bda4757888c95
parentdoc: Added ceph-deploy package management (install | uninstall ) section. (diff)
downloadceph-f24dbdefa49c61d95728b492ff9267fa4524eeaa.tar.xz
ceph-f24dbdefa49c61d95728b492ff9267fa4524eeaa.zip
doc: Added Create a Cluster section.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
-rw-r--r--doc/rados/deployment/ceph-deploy-new.rst65
1 files changed, 65 insertions, 0 deletions
diff --git a/doc/rados/deployment/ceph-deploy-new.rst b/doc/rados/deployment/ceph-deploy-new.rst
new file mode 100644
index 00000000000..c29f5390308
--- /dev/null
+++ b/doc/rados/deployment/ceph-deploy-new.rst
@@ -0,0 +1,65 @@
+==================
+ Create a Cluster
+==================
+
+The first step in using Ceph with ``ceph-deploy`` is to create a new Ceph
+cluster. A new Ceph cluster has:
+
+- A Ceph configuration file, and
+- A monitor keyring.
+
+The Ceph configuration file consists of at least:
+
+- Its own filesystem ID (``fsid``)
+- The initial monitor(s) hostname(s), and
+- The initial monitor(s) and IP address(es).
+
+For additional details, see the `Monitor Configuration Reference`_.
+
+The ``ceph-deploy`` tool also creates a monitor keyring and populates it with a
+``[mon.]`` key. For additional details, see the `Cephx Guide`_.
+
+
+Usage
+-----
+
+To create a cluster with ``ceph-deploy``, use the ``new`` command and specify
+the host(s) that will be initial members of the monitor quorum. ::
+
+ ceph-deploy new {host [host], ...}
+
+For example::
+
+ ceph-deploy new ceph-mon1
+ ceph-deploy new ceph-mon{1,2,3}
+
+The ``ceph-deploy`` utility will connect to each host to verify its hostname and
+IP address. Then, it will add the specified host names to the Ceph configuration
+file. For additional details, execute::
+
+ ceph-deploy new -h
+
+
+Naming a Cluster
+----------------
+
+By default, Ceph clusters have a cluster name of ``ceph``. You can specify
+a cluster name if you want to run multiple clusters on the same hardware. For
+example, if you want to optimize a cluster for use with block devies, and
+another for use with the gateway, you can run two different clusters on the same
+hardware if they have a different ``fsid`` and cluster name. ::
+
+ ceph-deploy --cluster {cluster-name} new {host [host], ...}
+
+For example::
+
+ ceph-deploy --cluster rbd-cluster new ceph-mon1
+ ceph-deploy --cluster rbd-cluster new ceph-mon{1,2,3}
+
+.. note:: If you run multiple clusters, ensure you adjust the default
+ port settings and open ports for your additional cluster(s) so that
+ the networks of the two different clusters don't conflict with each other.
+
+
+.. _Monitor Configuration Reference: ../../configuration/mon-config-ref
+.. _Cephx Guide: ../../operations/authentication#monitor-keyrings \ No newline at end of file