Take over an existing Ceph cluster with Ceph Ansible
Ceph Ansible has tons of awesome capabilities, one of them is the possibility to plug on ane existing cluster that was not deployed with it. In this article, I will go through the take over procedure.
The procedure is rather simple. If the cluster was deployed with the following project there won’t be any issue:
- Ceph Deploy
- Puppet Ceph
- Chef Ceph
- Any other deployment tool that relies on ceph-disk
The procedure comes as fellow:
- Install Ansible and add your monitors and osds hosts in it. For more detailed information you can read the Ceph Ansible Wiki
- Set
generate_fsid: false
ingroup_vars
- Get your current cluster fsid with
ceph fsid
and setcluster_fsid
accordingly ingroup_vars
- Run the playbook called:
take-over-existing-cluster.yml
like thisansible-playbook take-over-existing-cluster.yml
. - Eventually run Ceph Ansible to validate everything by doing:
ansible-playbook site.yml
.
Now we can enjoy the power of Ceph Ansible :)
Comments