2012-07-03 18:21:43 +00:00
|
|
|
======================
|
|
|
|
5-minute Quick Start
|
|
|
|
======================
|
|
|
|
|
|
|
|
Thank you for trying Ceph! Petabyte-scale data clusters are quite an
|
|
|
|
undertaking. Before delving deeper into Ceph, we recommend setting up a
|
2012-07-05 22:29:23 +00:00
|
|
|
cluster on a single host to explore some of the functionality.
|
2012-07-03 18:21:43 +00:00
|
|
|
|
|
|
|
Ceph **5-Minute Quick Start** is intended for use on one machine with a
|
|
|
|
recent Debian/Ubuntu operating system. The intent is to help you exercise
|
|
|
|
Ceph functionality without the deployment overhead associated with a
|
|
|
|
production-ready storage cluster.
|
|
|
|
|
2012-10-08 17:48:27 +00:00
|
|
|
.. important:: Once you have your cluster running, mount block devices and filesystems using a separate host.
|
|
|
|
|
2012-07-03 18:48:15 +00:00
|
|
|
Install Debian/Ubuntu
|
2012-10-08 17:48:27 +00:00
|
|
|
=====================
|
2012-07-03 18:48:15 +00:00
|
|
|
|
|
|
|
Install a recent release of Debian or Ubuntu (e.g., 12.04 precise).
|
|
|
|
|
2012-07-03 18:21:43 +00:00
|
|
|
Add Ceph Packages
|
2012-10-08 17:48:27 +00:00
|
|
|
=================
|
2012-07-03 18:21:43 +00:00
|
|
|
|
|
|
|
To get the latest Ceph packages, add a release key to APT, add a source
|
|
|
|
location to your ``/etc/apt/sources.list``, update your system and
|
|
|
|
install Ceph. ::
|
|
|
|
|
|
|
|
wget -q -O- https://raw.github.com/ceph/ceph/master/keys/release.asc | sudo apt-key add -
|
|
|
|
echo deb http://ceph.com/debian/ $(lsb_release -sc) main | sudo tee /etc/apt/sources.list.d/ceph.list
|
|
|
|
sudo apt-get update && sudo apt-get install ceph
|
|
|
|
|
|
|
|
Add a Configuration File
|
2012-10-08 17:48:27 +00:00
|
|
|
========================
|
2012-07-03 18:21:43 +00:00
|
|
|
|
2012-09-18 20:44:16 +00:00
|
|
|
Execute ``hostname -s`` on the command line to retrieve the name of your
|
2012-09-04 15:20:57 +00:00
|
|
|
host. Then, replace ``{hostname}`` in the sample configuration file
|
2012-08-28 17:01:20 +00:00
|
|
|
with your host name. Execute ``ifconfig`` on the command line to
|
|
|
|
retrieve the IP address of your host. Then, replace ``{ip-address}``
|
|
|
|
with the IP address of your host. Finally, copy the contents of the
|
|
|
|
modified configuration file and save it to ``/etc/ceph/ceph.conf``.
|
|
|
|
This file will configure Ceph to operate a monitor, two OSD daemons
|
|
|
|
and one metadata server on your local machine.
|
2012-07-03 18:21:43 +00:00
|
|
|
|
|
|
|
.. literalinclude:: ceph.conf
|
|
|
|
:language: ini
|
|
|
|
|
|
|
|
Deploy the Configuration
|
2012-10-08 17:48:27 +00:00
|
|
|
========================
|
|
|
|
|
2012-07-03 21:14:42 +00:00
|
|
|
To deploy the configuration, create a directory for each daemon as follows::
|
2012-07-03 18:21:43 +00:00
|
|
|
|
2012-07-03 21:14:42 +00:00
|
|
|
sudo mkdir /var/lib/ceph/osd/ceph-0
|
|
|
|
sudo mkdir /var/lib/ceph/osd/ceph-1
|
|
|
|
sudo mkdir /var/lib/ceph/mon/ceph-a
|
|
|
|
sudo mkdir /var/lib/ceph/mds/ceph-a
|
2012-07-03 18:21:43 +00:00
|
|
|
|
|
|
|
cd /etc/ceph
|
|
|
|
sudo mkcephfs -a -c /etc/ceph/ceph.conf -k ceph.keyring
|
|
|
|
|
|
|
|
Start the Ceph Cluster
|
2012-10-08 17:48:27 +00:00
|
|
|
======================
|
2012-07-03 18:21:43 +00:00
|
|
|
|
|
|
|
Once you have deployed the configuration, start the Ceph cluster. ::
|
|
|
|
|
|
|
|
sudo service ceph start
|
|
|
|
|
|
|
|
Check the health of your Ceph cluster to ensure it is ready. ::
|
|
|
|
|
|
|
|
ceph health
|
|
|
|
|
|
|
|
If your cluster echoes back ``HEALTH_OK``, you may begin using your cluster.
|