This repo contains example single-node deployment settings for Ceph for CentOS 7
Install Ansible and Ceph Luminous repositories: sudo yum install centos-release-ansible26 centos-release-ceph-luminous
Install ceph-ansible
: sudo yum install ceph-ansible
Copy resources from this repo into /usr/share/ceph-ansible
(folder structure maps to /usr/share/ceph-ansible
)
Change into the ceph-ansible
directory: cd /usr/share/ceph-ansible
Install Ceph: sudo ansible-playbook -i ./inventory/allinone site.yml
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
Initialize it for usage with RBD: sudo rbd pool init rbd
Create block device: sudo rbd create -s 1M test
Disable features not supported by krbd: sudo rbd feature disable rbd/test object-map fast-diff deep-flatten
Map the block device to /dev/rbd
namespace: sudo rbd map rbd/test
Enable the dashboard on port 7000 for fanciness: sudo ceph mgr module enable dashboard