To configure the Metadata Server for the Ceph Filesystem, you should have a running Ceph cluster. In the earlier chapters, we learned to deploy the Ceph storage cluster using Ansible; we will use the same cluster and Ansible for the MDS deployment.
Deploying an MDS server through ceph-ansible
is quite easy, let's review the steps on how this is done:
- Using Ansible from
ceph-node1
, we will deploy and configure MDS onceph-node2
. On our Ansible configuration nodeceph-node1
, add a new section[mdss]
to the/etc/ansible/hosts
file: - Navigate to the Ansible configuration directory on
ceph-node1
,/usr/share/ceph-ansible
:
root@ceph-node1 # cd /usr/share/ceph-ansible
- Run the Ansible playbook to deploy the MDS on
ceph-node2
:
# ansible-playbook site.yml
- Once the playbook completes successfully, you can validate that the MDS is
up
andactive
, that we have created two pools,cephfs_data
andcephfs_metadata
, and that the Ceph Filesystem was created successfully...