2013-04-26 21:01:46 +00:00
|
|
|
=====================
|
|
|
|
Preflight Checklist
|
|
|
|
=====================
|
|
|
|
|
|
|
|
.. versionadded:: 0.60
|
|
|
|
|
2013-09-17 21:01:27 +00:00
|
|
|
Thank you for trying Ceph! We recommend setting up a ``ceph-deploy`` node and a
|
|
|
|
3-node :term:`Ceph Storage Cluster` to explore the basics of Ceph. This
|
|
|
|
**Preflight Checklist** will help you prepare a ``ceph-deploy`` node and three
|
|
|
|
Ceph Nodes (or virtual machines) that will host your Ceph Storage Cluster.
|
2013-04-26 21:01:46 +00:00
|
|
|
|
|
|
|
|
2013-09-17 21:01:27 +00:00
|
|
|
.. ditaa::
|
|
|
|
/------------------\ /----------------\
|
|
|
|
| ceph deploy Node | | Ceph Node |
|
|
|
|
| +-------->+ |
|
|
|
|
| | | cCCC |
|
|
|
|
\---------+--------/ \----------------/
|
|
|
|
|
|
|
|
|
| /----------------\
|
|
|
|
| | Ceph Node |
|
|
|
|
+----------------->+ |
|
|
|
|
| | cCCC |
|
|
|
|
| \----------------/
|
|
|
|
|
|
|
|
|
| /----------------\
|
|
|
|
| | Ceph Node |
|
|
|
|
+----------------->| |
|
|
|
|
| cCCC |
|
|
|
|
\----------------/
|
2013-04-26 21:01:46 +00:00
|
|
|
|
2013-09-17 21:01:27 +00:00
|
|
|
Ceph runs on recent distributions of Linux (e.g., Ubuntu, Red Hat, CentOS,
|
|
|
|
etc.).
|
2013-04-28 21:59:17 +00:00
|
|
|
|
|
|
|
|
2013-09-17 21:01:27 +00:00
|
|
|
Ceph Node Setup
|
|
|
|
===============
|
2013-04-28 21:59:17 +00:00
|
|
|
|
2013-09-17 21:01:27 +00:00
|
|
|
A :term:`Ceph Node` requires the following:
|
2013-04-28 21:59:17 +00:00
|
|
|
|
2013-09-17 21:01:27 +00:00
|
|
|
- A recent Linux distribution.
|
|
|
|
- A user with ``root`` privileges.
|
|
|
|
- An SSH server.
|
|
|
|
- Network connectivity and access to/for other Ceph Nodes.
|
2013-04-26 21:01:46 +00:00
|
|
|
|
|
|
|
|
2013-09-17 21:01:27 +00:00
|
|
|
Perform the following steps:
|
2013-04-26 21:01:46 +00:00
|
|
|
|
2013-09-17 21:01:27 +00:00
|
|
|
#. Create a user on each Ceph Node. ::
|
2013-04-26 21:01:46 +00:00
|
|
|
|
|
|
|
ssh user@ceph-server
|
|
|
|
sudo useradd -d /home/ceph -m ceph
|
|
|
|
sudo passwd ceph
|
|
|
|
|
2013-09-17 21:01:27 +00:00
|
|
|
#. Add ``root`` privileges for the user on each Ceph Node. ::
|
2013-04-26 21:01:46 +00:00
|
|
|
|
2013-04-28 05:28:42 +00:00
|
|
|
echo "ceph ALL = (root) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/ceph
|
|
|
|
sudo chmod 0440 /etc/sudoers.d/ceph
|
2013-04-26 21:01:46 +00:00
|
|
|
|
|
|
|
|
2013-09-17 21:01:27 +00:00
|
|
|
#. Install an SSH server (if necessary)::
|
2013-04-26 21:01:46 +00:00
|
|
|
|
2013-09-17 21:01:27 +00:00
|
|
|
sudo apt-get install openssh-server
|
|
|
|
sudo yum install openssh-server
|
|
|
|
|
|
|
|
|
|
|
|
#. Configure your ``ceph-deploy`` node with password-less SSH access to each
|
|
|
|
Ceph Node. Leave the passphrase empty::
|
2013-04-26 21:01:46 +00:00
|
|
|
|
|
|
|
ssh-keygen
|
|
|
|
Generating public/private key pair.
|
|
|
|
Enter file in which to save the key (/ceph-client/.ssh/id_rsa):
|
|
|
|
Enter passphrase (empty for no passphrase):
|
|
|
|
Enter same passphrase again:
|
|
|
|
Your identification has been saved in /ceph-client/.ssh/id_rsa.
|
|
|
|
Your public key has been saved in /ceph-client/.ssh/id_rsa.pub.
|
|
|
|
|
2013-09-17 21:01:27 +00:00
|
|
|
#. Copy the key to each Ceph Node. ::
|
2013-04-26 21:01:46 +00:00
|
|
|
|
|
|
|
ssh-copy-id ceph@ceph-server
|
|
|
|
|
2013-09-17 21:01:27 +00:00
|
|
|
|
|
|
|
#. Modify the ``~/.ssh/config`` file of your ``ceph-deploy`` node so that it
|
|
|
|
logs in to Ceph Nodes as the user you created (e.g., ``ceph``). ::
|
2013-04-26 21:01:46 +00:00
|
|
|
|
|
|
|
Host ceph-server
|
2013-09-17 21:01:27 +00:00
|
|
|
Hostname ceph-server.fqdn-or-ip-address.com
|
|
|
|
User ceph
|
2013-04-26 21:01:46 +00:00
|
|
|
|
|
|
|
|
2013-09-17 21:01:27 +00:00
|
|
|
#. Ensure connectivity using ``ping`` with hostnames (i.e., not IP addresses).
|
|
|
|
Address hostname resolution issues and firewall issues as necessary.
|
2013-04-26 21:01:46 +00:00
|
|
|
|
|
|
|
|
2013-09-17 21:01:27 +00:00
|
|
|
Ceph Deploy Setup
|
|
|
|
=================
|
|
|
|
|
|
|
|
Add Ceph repositories to the ``ceph-deploy`` node. Then, install
|
|
|
|
``ceph-deploy``.
|
2013-05-09 19:48:59 +00:00
|
|
|
|
|
|
|
|
2013-09-17 21:01:27 +00:00
|
|
|
Advanced Package Tool (APT)
|
|
|
|
---------------------------
|
2013-04-26 21:01:46 +00:00
|
|
|
|
2013-09-17 21:01:27 +00:00
|
|
|
For Debian and Ubuntu distributions, perform the following steps:
|
2013-05-09 19:48:59 +00:00
|
|
|
|
2013-09-17 21:01:27 +00:00
|
|
|
#. Add the release key::
|
2013-05-09 19:48:59 +00:00
|
|
|
|
2013-09-17 21:01:27 +00:00
|
|
|
wget -q -O- 'https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc' | sudo apt-key add -
|
|
|
|
|
|
|
|
#. Add the Ceph packages to your repository. Replace ``{ceph-stable-release}``
|
|
|
|
with a stable Ceph release (e.g., ``cuttlefish``, ``dumpling``, etc.).
|
|
|
|
For example::
|
|
|
|
|
|
|
|
echo deb http://ceph.com/debian-{ceph-stable-release}/ $(lsb_release -sc) main | sudo tee /etc/apt/sources.list.d/ceph.list
|
|
|
|
|
|
|
|
#. Update your repository and install ``ceph-deploy``::
|
2013-04-26 21:01:46 +00:00
|
|
|
|
2013-09-17 21:01:27 +00:00
|
|
|
sudo apt-get update && sudo apt-get install ceph-deploy
|
2013-06-11 21:46:35 +00:00
|
|
|
|
|
|
|
|
2013-09-17 21:01:27 +00:00
|
|
|
Red Hat Package Manager (RPM)
|
|
|
|
-----------------------------
|
2013-06-11 21:46:35 +00:00
|
|
|
|
2013-09-17 21:01:27 +00:00
|
|
|
For Red Hat(rhel6), CentOS (el6), Fedora 17-19 (f17-f19), OpenSUSE 12
|
|
|
|
(opensuse12), and SLES (sles11) perform the following steps:
|
2013-06-11 21:46:35 +00:00
|
|
|
|
|
|
|
|
2013-09-17 21:01:27 +00:00
|
|
|
#. Add the package to your repository. Open a text editor and create a
|
|
|
|
Yellowdog Updater, Modified (YUM) entry under ``/etc/yum.repos.d``::
|
2013-06-11 21:46:35 +00:00
|
|
|
|
2013-09-17 21:01:27 +00:00
|
|
|
[ceph]
|
|
|
|
name=Ceph Packages $basearch
|
|
|
|
baseurl=http://ceph.com/rpm-{ceph-stable-release}/{distro}/$basearch
|
|
|
|
enabled=1
|
|
|
|
gpgcheck=1
|
|
|
|
type=rpm-md
|
|
|
|
gpgkey=https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc
|
2013-06-11 21:46:35 +00:00
|
|
|
|
2013-09-17 21:01:27 +00:00
|
|
|
Ensure that you use the correct path for your Linux distribution. Replace
|
|
|
|
``{ceph-stable-release}`` with the recent stable release of Ceph
|
|
|
|
(e.g., ``dumpling``). Replace ``{distro}`` with your Linux distribution
|
|
|
|
(e.g., CentOS (``el6``), Red Hat (``rhel6``), Fedora (``fc18`` or ``fc19``),
|
|
|
|
SLES (``sles11``)).
|
2013-06-11 21:46:35 +00:00
|
|
|
|
2013-09-17 21:01:27 +00:00
|
|
|
#. Update your repository and install ``ceph-deploy``::
|
2013-06-11 21:46:35 +00:00
|
|
|
|
2013-09-17 21:01:27 +00:00
|
|
|
sudo yum update && sudo yum install ceph-deploy python-pushy
|
2013-04-26 21:01:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2013-06-11 21:46:35 +00:00
|
|
|
.. _Storage Cluster Quick Start: ../quick-ceph-deploy
|
2013-06-13 06:53:26 +00:00
|
|
|
.. _OS Recommendations: ../../install/os-recommendations
|