Deploying the MDS service with the command-line interface
Using the Ceph Orchestrator, you can deploy the Metadata Server (MDS) service by using
the placement specification in the command-line interface.
Before you begin
- A running IBM Storage Ceph cluster.
- Hosts added to the cluster.
- All manager, monitor, and OSD daemons deployed.
About this task
Ceph File System (CephFS) requires one or more MDS.
Note: Ensure that you have at least two pools,
one for Ceph file system (CephFS) data and one for CephFS metadata.
For more information about
creating Ceph File Systems, see Creating Ceph File Systems.To deploy the MDS service with the command-line interface, log in to the
cephadm
shell.[root@host01 ~]# cephadm shellUse one of the following options to
deploy MDS daemons using placement specification.Creating the MDS daemons through the command-line
Procedure
Use ceph fs volume to create the MDS daemons.
Creating the
MDS daemons creates the CephFS volume and pools associated with the CephFS, and also starts the MDS
service on the
hosts.
ceph fs volume create FILESYSTEM_NAME --placement="NUMBER_OF_DAEMONS HOST_NAME_1 HOST_NAME_2 HOST_NAME_3"Note: By default, replicated pools are created for this command.
For
example,
[ceph: root@host01 /]# ceph fs volume create test --placement="2 host01 host02"