README.md

ceph-ansible example settings

This repo contains example single-node deployment settings for Ceph for CentOS 7

Setup steps

  1. Install EPEL and Ceph Nautilus repositories: sudo yum install epel-release centos-release-ceph-nautilus

  2. Install ceph-ansible: sudo yum install ceph-ansible

  3. Edit the provided group_vars/osds.yml to update the devices key with a list of drives to provision with

  4. Copy resources from this repo into /usr/share/ceph-ansible (folder structure maps to /usr/share/ceph-ansible)

  5. Change into the ceph-ansible directory: cd /usr/share/ceph-ansible

  6. Install Ceph: sudo ansible-playbook -i ./inventory/allinone site.yml

  7. Create Ceph pool (using 128 placement groups and single copy): sudo ceph osd pool create rbd 128 && sudo ceph osd pool set rbd size 1

  8. Initialize it for usage with RBD: sudo rbd pool init rbd

  9. Create block device: sudo rbd create -s 1M test

  10. Disable features not supported by krbd: sudo rbd feature disable rbd/test object-map fast-diff deep-flatten

  11. Map the block device to /dev/rbd namespace: sudo rbd map rbd/test

  12. Enable the dashboard on port 7000 for fanciness: sudo ceph mgr module enable dashboard

Resources