diff options
author | Qiaowei Ren <qiaowei.ren@intel.com> | 2018-01-04 13:43:33 +0800 |
---|---|---|
committer | Qiaowei Ren <qiaowei.ren@intel.com> | 2018-01-05 11:59:39 +0800 |
commit | 812ff6ca9fcd3e629e49d4328905f33eee8ca3f5 (patch) | |
tree | 04ece7b4da00d9d2f98093774594f4057ae561d4 /src/ceph/doc/rados/deployment/ceph-deploy-new.rst | |
parent | 15280273faafb77777eab341909a3f495cf248d9 (diff) |
initial code repo
This patch creates initial code repo.
For ceph, luminous stable release will be used for base code,
and next changes and optimization for ceph will be added to it.
For opensds, currently any changes can be upstreamed into original
opensds repo (https://github.com/opensds/opensds), and so stor4nfv
will directly clone opensds code to deploy stor4nfv environment.
And the scripts for deployment based on ceph and opensds will be
put into 'ci' directory.
Change-Id: I46a32218884c75dda2936337604ff03c554648e4
Signed-off-by: Qiaowei Ren <qiaowei.ren@intel.com>
Diffstat (limited to 'src/ceph/doc/rados/deployment/ceph-deploy-new.rst')
-rw-r--r-- | src/ceph/doc/rados/deployment/ceph-deploy-new.rst | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/src/ceph/doc/rados/deployment/ceph-deploy-new.rst b/src/ceph/doc/rados/deployment/ceph-deploy-new.rst new file mode 100644 index 0000000..5eb37a9 --- /dev/null +++ b/src/ceph/doc/rados/deployment/ceph-deploy-new.rst @@ -0,0 +1,66 @@ +================== + 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 mon1.foo.com + ceph-deploy new mon{1,2,3} + +The ``ceph-deploy`` utility will use DNS to resolve hostnames to IP +addresses. The monitors will be named using the first component of +the name (e.g., ``mon1`` above). 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 devices, 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 rbdcluster new ceph-mon1 + ceph-deploy --cluster rbdcluster 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: ../../../dev/mon-bootstrap#secret-keys |