2013-04-26 21:07:34 +00:00
|
|
|
=====================
|
|
|
|
Preflight Checklist
|
|
|
|
=====================
|
|
|
|
|
|
|
|
.. versionadded:: 0.60
|
|
|
|
|
2013-05-09 19:46:03 +00:00
|
|
|
This **Preflight Checklist** will help you prepare an admin node for use with
|
|
|
|
``ceph-deploy``, and server nodes for use with passwordless ``ssh`` and
|
2013-04-26 21:07:34 +00:00
|
|
|
``sudo``.
|
|
|
|
|
|
|
|
Before you can deploy Ceph using ``ceph-deploy``, you need to ensure that you
|
2013-05-09 19:46:03 +00:00
|
|
|
have a few things set up first on your admin node and on nodes running Ceph
|
2013-04-26 21:07:34 +00:00
|
|
|
daemons.
|
|
|
|
|
|
|
|
|
|
|
|
Install an Operating System
|
|
|
|
===========================
|
|
|
|
|
|
|
|
Install a recent release of Debian or Ubuntu (e.g., 12.04, 12.10) on your
|
2013-05-09 19:46:03 +00:00
|
|
|
nodes. For additional details on operating systems or to use other operating
|
2013-04-26 21:07:34 +00:00
|
|
|
systems other than Debian or Ubuntu, see `OS Recommendations`_.
|
|
|
|
|
2013-04-28 21:59:51 +00:00
|
|
|
|
|
|
|
Install an SSH Server
|
|
|
|
=====================
|
|
|
|
|
2013-05-09 19:46:03 +00:00
|
|
|
The ``ceph-deploy`` utility requires ``ssh``, so your server node(s) require an
|
2013-04-28 21:59:51 +00:00
|
|
|
SSH server. ::
|
|
|
|
|
|
|
|
sudo apt-get install openssh-server
|
|
|
|
|
|
|
|
|
2013-04-26 21:07:34 +00:00
|
|
|
Create a User
|
|
|
|
=============
|
|
|
|
|
2013-05-09 19:46:03 +00:00
|
|
|
Create a user on nodes running Ceph daemons.
|
2013-04-26 21:07:34 +00:00
|
|
|
|
|
|
|
.. tip:: We recommend a username that brute force attackers won't
|
|
|
|
guess easily (e.g., something other than ``root``, ``ceph``, etc).
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
ssh user@ceph-server
|
|
|
|
sudo useradd -d /home/ceph -m ceph
|
|
|
|
sudo passwd ceph
|
|
|
|
|
|
|
|
|
2013-05-09 19:46:03 +00:00
|
|
|
``ceph-deploy`` installs packages onto your nodes. This means that
|
2013-05-08 01:05:28 +00:00
|
|
|
the user you create requires passwordless ``sudo`` privileges.
|
2013-04-26 21:07:34 +00:00
|
|
|
|
2013-05-08 01:05:28 +00:00
|
|
|
.. note:: We **DO NOT** recommend enabling the ``root`` password
|
2013-04-26 21:07:34 +00:00
|
|
|
for security reasons.
|
|
|
|
|
|
|
|
To provide full privileges to the user, add the following to
|
2013-05-08 01:05:28 +00:00
|
|
|
``/etc/sudoers.d/ceph``. ::
|
2013-04-26 21:07:34 +00:00
|
|
|
|
2013-04-28 21:59:51 +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:07:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
Configure SSH
|
|
|
|
=============
|
|
|
|
|
2013-05-09 19:46:03 +00:00
|
|
|
Configure your admin machine with password-less SSH access to each node
|
2013-04-26 21:07:34 +00:00
|
|
|
running Ceph daemons (leave the passphrase empty). ::
|
|
|
|
|
|
|
|
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-05-09 19:46:03 +00:00
|
|
|
Copy the key to each node running Ceph daemons::
|
2013-04-26 21:07:34 +00:00
|
|
|
|
|
|
|
ssh-copy-id ceph@ceph-server
|
|
|
|
|
2013-05-09 19:46:03 +00:00
|
|
|
Modify your ~/.ssh/config file of your admin node so that it defaults
|
2013-04-26 21:07:34 +00:00
|
|
|
to logging in as the user you created when no username is specified. ::
|
|
|
|
|
|
|
|
Host ceph-server
|
|
|
|
Hostname ceph-server.fqdn-or-ip-address.com
|
|
|
|
User ceph
|
|
|
|
|
|
|
|
|
2013-06-04 22:35:14 +00:00
|
|
|
Install ceph-deploy
|
|
|
|
===================
|
2013-04-26 21:07:34 +00:00
|
|
|
|
2013-06-04 22:35:14 +00:00
|
|
|
To install ``ceph-deploy``, execute the following::
|
2013-04-26 21:07:34 +00:00
|
|
|
|
2013-06-05 18:44:58 +00:00
|
|
|
wget -q -O- 'https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc' | sudo apt-key add -
|
|
|
|
echo deb http://ceph.com/debian-cuttlefish/ $(lsb_release -sc) main | sudo tee /etc/apt/sources.list.d/ceph.list
|
2013-06-04 22:35:14 +00:00
|
|
|
sudo apt-get install ceph-deploy
|
2013-05-09 19:46:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
Ensure Connectivity
|
|
|
|
===================
|
|
|
|
|
|
|
|
Ensure that your Admin node has connectivity to the network and to your Server
|
|
|
|
node (e.g., ensure ``iptables``, ``ufw`` or other tools that may prevent
|
|
|
|
connections, traffic forwarding, etc. to allow what you need).
|
|
|
|
|
|
|
|
.. tip:: The ``ceph-deploy`` tool is new and you may encounter some issues
|
|
|
|
without effective error messages.
|
|
|
|
|
|
|
|
Once you have completed this pre-flight checklist, you are ready to begin using
|
|
|
|
``ceph-deploy``.
|
2013-04-26 21:07:34 +00:00
|
|
|
|
2013-04-28 21:59:51 +00:00
|
|
|
.. _OS Recommendations: ../../../install/os-recommendations
|