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.
Use
ceph-deploy
fromceph-node1
to deploy and configure MDS onceph-node2
:# ceph-deploy --overwrite-conf mds create ceph-node2
The command should deploy the MDS and start its daemon on
ceph-node2
; however, we need to carry out a few more steps to get CephFS accessible:# ssh ceph-node2 service ceph status mds
Create data and metadata pools for the Ceph Filesystem:
# ceph osd pool create cephfs_data 64 64 # ceph osd pool create cephfs_metadata 64 64
Finally, create the Ceph Filesystem; once this command is executed the MDS should attain an active state and CephFS should be ready for use:
# ceph fs new cephfs cephfs_metadata cephfs_data
To verify the status of CephFS and MDS, use the following commands:
# ceph mds stat # ceph fs ls
It's recommended...