﻿Installation von ceph auf Grundlage von: http://docs.ceph.com/docs/cuttlefish/start/quick-start/
Befehlsfolge:
ssh ubuntuadmin@192.168.254.2
sudo apt-get update && sudo apt-get install ceph
ceph -v
sudo apt-get update && sudo apt-get upgrade
Link: http://docs.ceph.com/docs/cuttlefish/start/quick-start/
    1. Open a command line on your Ceph server machine and execute hostname -s to retrieve the name of your Ceph server machine.
    2. Replace {hostname} in the sample configuration file with your host name.
    3. Execute ifconfig on the command line of your Ceph server machine to retrieve the IP address of your Ceph server machine.
    4. Replace {ip-address} in the sample configuration file with the IP address of your Ceph server host.
    5. Save the contents to /etc/ceph/ceph.conf on Ceph server host.
    6. Copy the configuration file to /etc/ceph/ceph.conf on your client host.
       sudo scp {user}@{server-machine}:/etc/ceph/ceph.conf /etc/ceph/ceph.conf
Tip
Ensure the ceph.conf file has appropriate permissions set (e.g. chmod 644) on your client machine.
New in version 0.55.
Ceph v0.55 and above have authentication enabled by default. You should explicitly enable or disable authentication with version 0.55 and above. The example configuration provides auth entries for authentication. For details on Ceph authentication see Cephx Configuration Reference and Cephx Guide.
Deploy the Configuration
You must perform the following steps to deploy the configuration.
    1. On your Ceph server host, create a directory for each daemon. For the example configuration, execute the following:
       sudo mkdir -p /var/lib/ceph/osd/ceph-0
       sudo mkdir -p /var/lib/ceph/osd/ceph-1
       sudo mkdir -p /var/lib/ceph/mon/ceph-a
       sudo mkdir -p /var/lib/ceph/mds/ceph-a
    2. Execute the following on the Ceph server host:
       cd /etc/ceph
       sudo mkcephfs -a -c /etc/ceph/ceph.conf -k ceph.keyring
Among other things, mkcephfs will deploy Ceph and generate a client.admin user and key. For Bobtail and subsequent versions (v 0.56 and after), the mkcephfs script will create and mount the filesystem for you provided you specify osd mkfs osd mount and devs settings in your Ceph configuration file.
Start Ceph
Once you have deployed the configuration, start Ceph from the command line of your server machine.
sudo service ceph -a start
Check the health of your Ceph cluster to ensure it is ready.
sudo ceph health
When your cluster echoes back HEALTH_OK, you may begin using Ceph.
Copy The Keyring to The Client
The next step you must perform is to copy /etc/ceph/ceph.keyring, which contains the client.admin key, from the server machine to the client machine. If you don’t perform this step, you will not be able to use the Ceph command line, as the example Ceph configuration requires authentication.
sudo scp {user}@{server-machine}:/etc/ceph/ceph.keyring /etc/ceph/ceph.keyring
Tip
Ensure the ceph.keyring file has appropriate permissions set (e.g., chmod 644) on your client machine.
Proceed to Other Quick Starts
Once you have Ceph running with both a client and a server, you may proceed to the other Quick Start guides.
    1. For Ceph block devices, proceed to Block Device Quick Start. 
    2. For the CephFS filesystem, proceed to CephFS Quick Start. 
    3. For the RESTful Gateway, proceed to Gateway Quick Start. 

