To configure the Meta Data Server for the Ceph Filesystem, you should have a running Ceph cluster. In earlier chapters, we learned to deploy the Ceph storage cluster; we will use the same cluster for MDS deployment.
ceph-deploy
from ceph-node1
to deploy and configure MDS on ceph-node2
:# ceph-deploy --overwrite-conf mds create ceph-node2
ceph-node2
; however, we need to carry out a few more steps to get CephFS accessible:# ssh ceph-node2 service ceph status mds
# ceph osd pool create cephfs_data 64 64 # ceph osd pool create cephfs_metadata 64 64
# ceph fs new cephfs cephfs_metadata cephfs_data
# ceph mds stat # ceph fs ls
client.admin
user keyrings with Ceph clients, so we will create a user client.cephfs
on the Ceph cluster and will allow this user access to CephFS pools:# ceph auth get-or-create client.cephfs mon 'allow r' osd 'allow rwx pool=cephfs_metadata,allow rwx pool=cephfs_data' -o /etc/ceph/client.cephfs.keyring # ceph-authtool -p -n client.cephfs /etc/ceph/client.cephfs.keyring > /etc/ceph/client.cephfs # cat /etc/ceph/client.cephfs
3.142.212.160