2013-10-22 20:26:30 +00:00
==============
Get Packages
==============
2013-10-30 22:17:12 +00:00
To install Ceph and other enabling software, you need to retrieve packages from
2015-09-18 18:13:02 +00:00
the Ceph repository. Follow this guide to get packages; then, proceed to the
2013-10-30 22:17:12 +00:00
`Install Ceph Object Storage`_ .
Getting Packages
================
2015-09-18 18:13:02 +00:00
There are two ways to get packages:
2013-10-30 22:17:12 +00:00
2015-09-18 18:13:02 +00:00
- **Add Repositories:** Adding repositories is the easiest way to get packages,
2013-10-30 22:17:12 +00:00
because package management tools will retrieve the packages and all enabling
2015-09-18 18:13:02 +00:00
software for you in most cases. However, to use this approach, each
2013-10-30 22:17:12 +00:00
:term: `Ceph Node` in your cluster must have internet access.
2015-09-18 18:13:02 +00:00
2014-06-02 18:28:22 +00:00
- **Download Packages Manually:** Downloading packages manually is a convenient
way to install Ceph if your environment does not allow a :term: `Ceph Node` to
access the internet.
2013-10-30 22:17:12 +00:00
Requirements
============
2015-09-18 18:13:02 +00:00
All Ceph deployments require Ceph packages (except for development). You should
also add keys and recommended packages.
2013-10-30 22:17:12 +00:00
2015-09-18 18:13:02 +00:00
- **Keys: (Recommended)** Whether you add repositories or download packages
2013-10-30 22:17:12 +00:00
manually, you should download keys to verify the packages. If you do not get
2015-09-18 18:13:02 +00:00
the keys, you may encounter security warnings. There are two keys: one for
releases (common) and one for development (programmers and QA only). Choose
2013-10-30 22:17:12 +00:00
the key that suits your needs. See `Add Keys`_ for details.
2015-09-18 18:13:02 +00:00
- **Ceph: (Required)** All Ceph deployments require Ceph release packages,
except for deployments that use development packages (development, QA, and
2013-10-30 22:17:12 +00:00
bleeding edge deployments only). See `Add Ceph`_ for details.
2015-09-18 18:13:02 +00:00
- **Ceph Development: (Optional)** If you are developing for Ceph, testing Ceph
development builds, or if you want features from the bleeding edge of Ceph
development, you may get Ceph development packages. See
2013-10-30 22:17:12 +00:00
`Add Ceph Development`_ for details.
2015-09-18 18:13:02 +00:00
- **Apache/FastCGI: (Optional)** If you are deploying a
:term: `Ceph Object Storage` service, you must install Apache and FastCGI.
Ceph provides Apache and FastCGI builds that are identical to those available
from Apache, but with 100-continue support. If you want to enable
:term: `Ceph Object Gateway` daemons with 100-continue support, you must
retrieve Apache/FastCGI packages from the Ceph repository.
2013-10-30 22:17:12 +00:00
See `Add Apache/FastCGI`_ for details.
If you intend to download packages manually, see Section `Download Packages`_ .
Add Keys
========
Add a key to your system's list of trusted keys to avoid a security warning. For
2016-05-02 16:50:37 +00:00
major releases (e.g., `` hammer `` , `` jewel `` ) and development releases
(`` release-name-rc1 `` , `` release-name-rc2 `` ), use the `` release.asc `` key. For
development testing packages, use the `` autobuild.asc `` key (developers and
QA).
2013-10-30 22:17:12 +00:00
APT
---
To install the `` release.asc `` key, execute the following::
2015-10-26 19:18:19 +00:00
wget -q -O- 'https://download.ceph.com/keys/release.asc' | sudo apt-key add -
2013-10-30 22:17:12 +00:00
2015-09-18 18:13:02 +00:00
To install the `` autobuild.asc `` key, execute the following
(QA and developers only)::
2013-10-30 22:17:12 +00:00
2015-10-26 19:18:19 +00:00
wget -q -O- 'https://download.ceph.com/keys/autobuild.asc' | sudo apt-key add -
2013-10-30 22:17:12 +00:00
RPM
---
To install the `` release.asc `` key, execute the following::
2015-10-26 19:18:19 +00:00
sudo rpm --import 'https://download.ceph.com/keys/release.asc'
2013-10-30 22:17:12 +00:00
To install the `` autobuild.asc `` key, execute the following
2015-09-18 18:13:02 +00:00
(QA and developers only)::
2013-10-30 22:17:12 +00:00
2015-10-26 19:18:19 +00:00
sudo rpm --import 'https://download.ceph.com/keys/autobuild.asc'
2013-10-30 22:17:12 +00:00
Add Ceph
========
Release repositories use the `` release.asc `` key to verify packages.
To install Ceph packages with the Advanced Package Tool (APT) or
Yellowdog Updater, Modified (YUM), you must add Ceph repositories.
2015-09-18 18:13:02 +00:00
You may find releases for Debian/Ubuntu (installed with APT) at::
2013-10-30 22:17:12 +00:00
2016-08-12 13:01:50 +00:00
https://download.ceph.com/debian-{release-name}
2013-10-30 22:17:12 +00:00
2015-09-18 18:13:02 +00:00
You may find releases for CentOS/RHEL and others (installed with YUM) at::
2013-10-30 22:17:12 +00:00
2016-08-12 13:01:50 +00:00
https://download.ceph.com/rpm-{release-name}
2013-10-30 22:17:12 +00:00
2017-05-16 08:14:36 +00:00
The major releases of Ceph are summarized at: :doc: `/releases` .
2016-08-27 18:11:04 +00:00
Every second major release is considered Long Term Stable (LTS). Critical
bugfixes are backported to LTS releases until their retirement. Since retired
releases are no longer maintained, we recommend that users upgrade their
clusters regularly - preferably to the latest LTS release.
The most recent LTS release is Jewel (10.2.x).
2013-10-30 22:17:12 +00:00
2016-02-08 11:11:21 +00:00
.. tip :: For international users: There might be a mirror close to you where download Ceph from. For more information see: `Ceph Mirrors`_ .
2013-10-30 22:17:12 +00:00
Debian Packages
---------------
Add a Ceph package repository to your system's list of APT sources. For newer
2015-09-18 18:13:02 +00:00
versions of Debian/Ubuntu, call `` lsb_release -sc `` on the command line to
get the short codename, and replace `` {codename} `` in the following command. ::
2013-10-30 22:17:12 +00:00
2016-08-12 13:01:50 +00:00
sudo apt-add-repository 'deb https://download.ceph.com/debian-jewel/ {codename} main'
2013-10-30 22:17:12 +00:00
2015-09-18 18:13:02 +00:00
For early Linux distributions, you may execute the following command::
2013-10-30 22:17:12 +00:00
2016-08-12 13:01:50 +00:00
echo deb https://download.ceph.com/debian-jewel/ $(lsb_release -sc) main | sudo tee /etc/apt/sources.list.d/ceph.list
2013-10-30 22:17:12 +00:00
For earlier Ceph releases, replace `` {release-name} `` with the name with the
name of the Ceph release. You may call `` lsb_release -sc `` on the command line
to get the short codename, and replace `` {codename} `` in the following command.
::
2016-08-12 13:01:50 +00:00
sudo apt-add-repository 'deb https://download.ceph.com/debian-{release-name}/ {codename} main'
2013-10-30 22:17:12 +00:00
For older Linux distributions, replace `` {release-name} `` with the name of the
2015-09-18 18:13:02 +00:00
release::
2013-10-30 22:17:12 +00:00
2016-08-12 13:01:50 +00:00
echo deb https://download.ceph.com/debian-{release-name}/ $(lsb_release -sc) main | sudo tee /etc/apt/sources.list.d/ceph.list
2013-10-30 22:17:12 +00:00
Ceph on ARM processors requires Google's memory profiling tools (`` google-perftools `` ).
The Ceph repository should have a copy at
2016-08-12 13:01:50 +00:00
https://download.ceph.com/packages/google-perftools/debian. ::
2013-10-30 22:17:12 +00:00
2016-08-12 13:01:50 +00:00
echo deb https://download.ceph.com/packages/google-perftools/debian $(lsb_release -sc) main | sudo tee /etc/apt/sources.list.d/google-perftools.list
2013-10-30 22:17:12 +00:00
For development release packages, add our package repository to your system's
list of APT sources. See `the testing Debian repository`_ for a complete list
of Debian and Ubuntu releases supported. ::
2016-08-12 13:01:50 +00:00
echo deb https://download.ceph.com/debian-testing/ $(lsb_release -sc) main | sudo tee /etc/apt/sources.list.d/ceph.list
2013-10-30 22:17:12 +00:00
2016-02-08 11:11:21 +00:00
.. tip :: For international users: There might be a mirror close to you where download Ceph from. For more information see: `Ceph Mirrors`_ .
2013-10-30 22:17:12 +00:00
RPM Packages
------------
For major releases, you may add a Ceph entry to the `` /etc/yum.repos.d ``
directory. Create a `` ceph.repo `` file. In the example below, replace
2016-05-02 16:50:37 +00:00
`` {ceph-release} `` with a major release of Ceph (e.g., `` hammer `` , `` jewel `` ,
etc.) and `` {distro} `` with your Linux distribution (e.g., `` el7 `` , etc.). You
2016-08-12 13:01:50 +00:00
may view https://download.ceph.com/rpm-{ceph-release}/ directory to see which
2016-05-02 16:50:37 +00:00
distributions Ceph supports. Some Ceph packages (e.g., EPEL) must take priority
over standard packages, so you must ensure that you set
2014-08-12 01:04:39 +00:00
`` priority=2 `` . ::
2013-10-30 22:17:12 +00:00
[ceph]
name=Ceph packages for $basearch
2016-08-12 13:01:50 +00:00
baseurl=https://download.ceph.com/rpm-{ceph-release}/{distro}/$basearch
2013-10-30 22:17:12 +00:00
enabled=1
2014-08-12 01:04:39 +00:00
priority=2
2013-10-30 22:17:12 +00:00
gpgcheck=1
2015-10-26 19:18:19 +00:00
gpgkey=https://download.ceph.com/keys/release.asc
2013-10-30 22:17:12 +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
2013-10-30 22:17:12 +00:00
enabled=1
2014-08-12 01:04:39 +00:00
priority=2
2013-10-30 22:17:12 +00:00
gpgcheck=1
2015-10-26 19:18:19 +00:00
gpgkey=https://download.ceph.com/keys/release.asc
2013-10-30 22:17:12 +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
2013-10-30 22:17:12 +00:00
enabled=0
2014-08-12 01:04:39 +00:00
priority=2
2013-10-30 22:17:12 +00:00
gpgcheck=1
2015-10-26 19:18:19 +00:00
gpgkey=https://download.ceph.com/keys/release.asc
2013-10-30 22:17:12 +00:00
For development release packages, you may specify the repository
for development releases instead. ::
[ceph]
name=Ceph packages for $basearch/$releasever
2016-08-12 13:01:50 +00:00
baseurl=https://download.ceph.com/rpm-testing/{distro}/$basearch
2013-10-30 22:17:12 +00:00
enabled=1
2014-08-12 01:04:39 +00:00
priority=2
2013-10-30 22:17:12 +00:00
gpgcheck=1
2015-10-26 19:18:19 +00:00
gpgkey=https://download.ceph.com/keys/release.asc
2013-10-30 22:17:12 +00:00
[ceph-noarch]
name=Ceph noarch packages
2016-08-12 13:01:50 +00:00
baseurl=https://download.ceph.com/rpm-testing/{distro}/noarch
2013-10-30 22:17:12 +00:00
enabled=1
2014-08-12 01:04:39 +00:00
priority=2
2013-10-30 22:17:12 +00:00
gpgcheck=1
2015-10-26 19:18:19 +00:00
gpgkey=https://download.ceph.com/keys/release.asc
2013-10-30 22:17:12 +00:00
[ceph-source]
name=Ceph source packages
2016-08-12 13:01:50 +00:00
baseurl=https://download.ceph.com/rpm-testing/{distro}/SRPMS
2013-10-30 22:17:12 +00:00
enabled=0
2014-08-12 01:04:39 +00:00
priority=2
2013-10-30 22:17:12 +00:00
gpgcheck=1
2015-10-26 19:18:19 +00:00
gpgkey=https://download.ceph.com/keys/release.asc
2013-10-30 22:17:12 +00:00
For specific packages, you may retrieve them by specifically downloading the
release package by name. Our development process generates a new release of Ceph
every 3-4 weeks. These packages are faster-moving than the major releases.
Development packages have new features integrated quickly, while still
undergoing several weeks of QA prior to release.
The repository package installs the repository details on your local system for
2016-05-02 16:45:28 +00:00
use with `` yum `` . Replace `` {distro} `` with your Linux distribution, and
`` {release} `` with the specific release of Ceph::
2013-10-30 22:17:12 +00:00
2016-08-12 13:01:50 +00:00
su -c 'rpm -Uvh https://download.ceph.com/rpms/{distro}/x86_64/ceph-{release}.el7.noarch.rpm'
2013-10-30 22:17:12 +00:00
You can download the RPMs directly from::
2016-08-12 13:01:50 +00:00
https://download.ceph.com/rpm-testing
2013-10-30 22:17:12 +00:00
2016-02-08 11:11:21 +00:00
.. tip :: For international users: There might be a mirror close to you where download Ceph from. For more information see: `Ceph Mirrors`_ .
2016-04-13 01:06:38 +00:00
Add Ceph Development
2013-10-30 22:17:12 +00:00
====================
Development repositories use the `` autobuild.asc `` key to verify packages.
If you are developing Ceph and need to deploy and test specific Ceph branches,
ensure that you remove repository entries for major releases first.
Debian Packages
2015-09-18 18:13:02 +00:00
---------------
2013-10-30 22:17:12 +00:00
We automatically build Debian and Ubuntu packages for current
development branches in the Ceph source code repository. These
packages are intended for developers and QA only.
Add our package repository to your system's list of APT sources, but
replace `` {BRANCH} `` with the branch you'd like to use (e.g., chef-3,
wip-hack, master). See `the gitbuilder page`_ for a complete
list of distributions we build. ::
echo deb http://gitbuilder.ceph.com/ceph-deb-$(lsb_release -sc)-x86_64-basic/ref/{BRANCH} $(lsb_release -sc) main | sudo tee /etc/apt/sources.list.d/ceph.list
RPM Packages
------------
For current development branches, you may add a Ceph entry to the
`` /etc/yum.repos.d `` directory. Create a `` ceph.repo `` file. In the example
2016-05-02 16:50:37 +00:00
below, replace `` {distro} `` with your Linux distribution (e.g., `` el7 `` ), and
`` {branch} `` with the name of the branch you want to install. ::
2013-10-30 22:17:12 +00:00
[ceph-source]
name=Ceph source packages
baseurl=http://gitbuilder.ceph.com/ceph-rpm-{distro}-x86_64-basic/ref/{branch}/SRPMS
enabled=0
gpgcheck=1
2015-10-26 19:18:19 +00:00
gpgkey=https://download.ceph.com/keys/autobuild.asc
2013-10-30 22:17:12 +00:00
2015-09-18 18:13:02 +00:00
You may view http://gitbuilder.ceph.com directory to see which distributions
2013-10-30 22:17:12 +00:00
Ceph supports.
Add Apache/FastCGI
==================
Ceph Object Gateway works with ordinary Apache and FastCGI libraries. However,
Ceph builds Apache and FastCGI packages that support 100-continue. To use the
Ceph Apache and FastCGI packages, add them to your repository.
Debian Packages
---------------
Add our Apache and FastCGI packages to your system's list of APT sources if you intend to
2015-09-18 18:13:02 +00:00
use 100-continue. ::
2013-10-30 22:17:12 +00:00
echo deb http://gitbuilder.ceph.com/apache2-deb-$(lsb_release -sc)-x86_64-basic/ref/master $(lsb_release -sc) main | sudo tee /etc/apt/sources.list.d/ceph-apache.list
echo deb http://gitbuilder.ceph.com/libapache-mod-fastcgi-deb-$(lsb_release -sc)-x86_64-basic/ref/master $(lsb_release -sc) main | sudo tee /etc/apt/sources.list.d/ceph-fastcgi.list
RPM Packages
------------
You may add a Ceph entry to the `` /etc/yum.repos.d `` directory. Create a
`` ceph-apache.repo `` file. In the example below, replace `` {distro} `` with your
2016-05-02 16:50:37 +00:00
Linux distribution (e.g., `` el7 `` ). You may view http://gitbuilder.ceph.com
directory to see which distributions Ceph supports.
2013-10-30 22:17:12 +00:00
::
[apache2-ceph-noarch]
name=Apache noarch packages for Ceph
baseurl=http://gitbuilder.ceph.com/apache2-rpm-{distro}-x86_64-basic/ref/master
enabled=1
priority=2
gpgcheck=1
2015-10-26 19:18:19 +00:00
gpgkey=https://download.ceph.com/keys/autobuild.asc
2013-10-30 22:17:12 +00:00
[apache2-ceph-source]
name=Apache source packages for Ceph
baseurl=http://gitbuilder.ceph.com/apache2-rpm-{distro}-x86_64-basic/ref/master
enabled=0
priority=2
gpgcheck=1
2015-10-26 19:18:19 +00:00
gpgkey=https://download.ceph.com/keys/autobuild.asc
2013-10-30 22:17:12 +00:00
Repeat the forgoing process by creating a `` ceph-fastcgi.repo `` file. ::
[fastcgi-ceph-basearch]
name=FastCGI basearch packages for Ceph
baseurl=http://gitbuilder.ceph.com/mod_fastcgi-rpm-{distro}-x86_64-basic/ref/master
enabled=1
priority=2
gpgcheck=1
2015-10-26 19:18:19 +00:00
gpgkey=https://download.ceph.com/keys/autobuild.asc
2013-10-30 22:17:12 +00:00
[fastcgi-ceph-noarch]
name=FastCGI noarch packages for Ceph
baseurl=http://gitbuilder.ceph.com/mod_fastcgi-rpm-{distro}-x86_64-basic/ref/master
enabled=1
priority=2
gpgcheck=1
2015-10-26 19:18:19 +00:00
gpgkey=https://download.ceph.com/keys/autobuild.asc
2013-10-30 22:17:12 +00:00
[fastcgi-ceph-source]
name=FastCGI source packages for Ceph
baseurl=http://gitbuilder.ceph.com/mod_fastcgi-rpm-{distro}-x86_64-basic/ref/master
enabled=0
priority=2
gpgcheck=1
2015-10-26 19:18:19 +00:00
gpgkey=https://download.ceph.com/keys/autobuild.asc
2013-10-30 22:17:12 +00:00
Download Packages
=================
2015-09-18 18:13:02 +00:00
If you are attempting to install behind a firewall in an environment without internet
access, you must retrieve the packages (mirrored with all the necessary dependencies)
2013-10-22 20:26:30 +00:00
before attempting an install.
Debian Packages
2013-10-30 22:17:12 +00:00
---------------
2013-10-22 20:26:30 +00:00
2015-09-18 18:13:02 +00:00
Ceph requires additional additional third party libraries.
2013-10-22 20:26:30 +00:00
- libaio1
- libsnappy1
- libcurl3
- curl
- libgoogle-perftools4
- google-perftools
- libleveldb1
The repository package installs the repository details on your local system for
use with `` apt `` . Replace `` {release} `` with the latest Ceph release. Replace
`` {version} `` with the latest Ceph version number. Replace `` {distro} `` with
your Linux distribution codename. Replace `` {arch} `` with the CPU architecture.
::
2016-08-12 13:01:50 +00:00
wget -q https://download.ceph.com/debian-{release}/pool/main/c/ceph/ceph_{version}{distro}_{arch}.deb
2013-10-22 20:26:30 +00:00
RPM Packages
2013-10-30 22:17:12 +00:00
------------
2013-10-22 20:26:30 +00:00
2015-09-18 18:13:02 +00:00
Ceph requires additional additional third party libraries.
To add the EPEL repository, execute the following::
2013-10-22 20:26:30 +00:00
2016-10-26 02:00:48 +00:00
sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
2013-10-22 20:26:30 +00:00
Ceph requires the following packages:
- snappy
- leveldb
- gdisk
- python-argparse
- gperftools-libs
2016-05-02 16:50:37 +00:00
Packages are currently built for the RHEL/CentOS7 (`` el7 `` ) platforms. The
repository package installs the repository details on your local system for use
with `` yum `` . Replace `` {distro} `` with your distribution. ::
2013-10-22 20:26:30 +00:00
2016-08-12 13:01:50 +00:00
su -c 'rpm -Uvh https://download.ceph.com/rpm-jewel/{distro}/noarch/ceph-{version}.{distro}.noarch.rpm'
2013-10-22 20:26:30 +00:00
2016-05-02 16:50:37 +00:00
For example, for CentOS 7 (`` el7 `` )::
2013-10-22 20:26:30 +00:00
2016-08-12 13:01:50 +00:00
su -c 'rpm -Uvh https://download.ceph.com/rpm-jewel/el7/noarch/ceph-release-1-0.el7.noarch.rpm'
2013-10-22 20:26:30 +00:00
You can download the RPMs directly from::
2016-08-12 13:01:50 +00:00
https://download.ceph.com/rpm-jewel
2013-10-22 20:26:30 +00:00
2015-09-18 18:13:02 +00:00
For earlier Ceph releases, replace `` {release-name} `` with the name
with the name of the Ceph release. You may call `` lsb_release -sc `` on the command
2013-10-22 20:26:30 +00:00
line to get the short codename. ::
2016-08-12 13:01:50 +00:00
su -c 'rpm -Uvh https://download.ceph.com/rpm-{release-name}/{distro}/noarch/ceph-{version}.{distro}.noarch.rpm'
2013-10-22 20:26:30 +00:00
2013-10-30 22:17:12 +00:00
.. _Install Ceph Object Storage: ../install-storage-cluster
2016-08-12 13:01:50 +00:00
.. _the testing Debian repository: https://download.ceph.com/debian-testing/dists
2015-08-25 15:02:49 +00:00
.. _the gitbuilder page: http://gitbuilder.ceph.com
2016-02-08 11:11:21 +00:00
.. _Ceph Mirrors: ../mirrors