2013-10-22 20:27:59 +00:00
|
|
|
==============================
|
|
|
|
Install Ceph Storage Cluster
|
|
|
|
==============================
|
|
|
|
|
2013-11-04 22:57:41 +00:00
|
|
|
This guide describes installing Ceph packages manually. This procedure
|
|
|
|
is only for users who are not installing with a deployment tool such as
|
|
|
|
``ceph-deploy``, ``chef``, ``juju``, etc.
|
|
|
|
|
|
|
|
.. tip:: You can also use ``ceph-deploy`` to install Ceph packages, which may
|
|
|
|
be more convenient since you can install ``ceph`` on multiple hosts with
|
|
|
|
a single command.
|
|
|
|
|
2013-10-22 20:27:59 +00:00
|
|
|
|
|
|
|
Installing with APT
|
|
|
|
===================
|
|
|
|
|
|
|
|
Once you have added either release or development packages to APT, you should
|
|
|
|
update APT's database and install Ceph::
|
|
|
|
|
|
|
|
sudo apt-get update && sudo apt-get install ceph ceph-mds
|
|
|
|
|
2013-11-04 22:57:41 +00:00
|
|
|
|
2013-10-22 20:27:59 +00:00
|
|
|
Installing with RPM
|
|
|
|
===================
|
|
|
|
|
2014-08-12 01:05:26 +00:00
|
|
|
To install Ceph with RPMs, execute the following steps:
|
|
|
|
|
|
|
|
|
|
|
|
#. Install ``yum-plugin-priorities``. ::
|
|
|
|
|
|
|
|
sudo yum install yum-plugin-priorities
|
|
|
|
|
|
|
|
#. Ensure ``/etc/yum/pluginconf.d/priorities.conf`` exists.
|
|
|
|
|
|
|
|
#. Ensure ``priorities.conf`` enables the plugin. ::
|
|
|
|
|
|
|
|
[main]
|
|
|
|
enabled = 1
|
|
|
|
|
|
|
|
#. Ensure your YUM ``ceph.repo`` entry includes ``priority=2``. See
|
|
|
|
`Get Packages`_ for details::
|
|
|
|
|
|
|
|
[ceph]
|
|
|
|
name=Ceph packages for $basearch
|
2016-08-12 13:01:50 +00:00
|
|
|
baseurl=https://download.ceph.com/rpm-{ceph-release}/{distro}/$basearch
|
2014-08-12 01:05:26 +00:00
|
|
|
enabled=1
|
|
|
|
priority=2
|
|
|
|
gpgcheck=1
|
2015-10-26 19:18:19 +00:00
|
|
|
gpgkey=https://download.ceph.com/keys/release.asc
|
2014-08-12 01:05:26 +00:00
|
|
|
|
|
|
|
[ceph-noarch]
|
|
|
|
name=Ceph noarch packages
|
2016-08-12 13:01:50 +00:00
|
|
|
baseurl=https://download.ceph.com/rpm-{ceph-release}/{distro}/noarch
|
2014-08-12 01:05:26 +00:00
|
|
|
enabled=1
|
|
|
|
priority=2
|
|
|
|
gpgcheck=1
|
2015-10-26 19:18:19 +00:00
|
|
|
gpgkey=https://download.ceph.com/keys/release.asc
|
2014-08-12 01:05:26 +00:00
|
|
|
|
|
|
|
[ceph-source]
|
|
|
|
name=Ceph source packages
|
2016-08-12 13:01:50 +00:00
|
|
|
baseurl=https://download.ceph.com/rpm-{ceph-release}/{distro}/SRPMS
|
2014-08-12 01:05:26 +00:00
|
|
|
enabled=0
|
|
|
|
priority=2
|
|
|
|
gpgcheck=1
|
2015-10-26 19:18:19 +00:00
|
|
|
gpgkey=https://download.ceph.com/keys/release.asc
|
2014-08-12 01:05:26 +00:00
|
|
|
|
|
|
|
|
|
|
|
#. Install pre-requisite packages::
|
2013-10-22 20:27:59 +00:00
|
|
|
|
|
|
|
sudo yum install snappy leveldb gdisk python-argparse gperftools-libs
|
|
|
|
|
2014-08-12 01:05:26 +00:00
|
|
|
|
2013-10-22 20:27:59 +00:00
|
|
|
Once you have added either release or development packages, or added a
|
|
|
|
``ceph.repo`` file to ``/etc/yum.repos.d``, you can install Ceph packages. ::
|
|
|
|
|
|
|
|
sudo yum install ceph
|
|
|
|
|
2014-08-12 01:05:26 +00:00
|
|
|
|
2013-10-22 20:27:59 +00:00
|
|
|
Installing a Build
|
|
|
|
==================
|
|
|
|
|
|
|
|
If you build Ceph from source code, you may install Ceph in user space
|
|
|
|
by executing the following::
|
|
|
|
|
|
|
|
sudo make install
|
|
|
|
|
|
|
|
If you install Ceph locally, ``make`` will place the executables in
|
|
|
|
``usr/local/bin``. You may add the Ceph configuration file to the
|
2014-08-12 01:05:26 +00:00
|
|
|
``usr/local/bin`` directory to run Ceph from a single directory.
|
|
|
|
|
2015-10-26 19:18:19 +00:00
|
|
|
.. _Get Packages: ../get-packages
|