These `ceph mds ...` commands are deprecated.
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
.. code-block:: bash
- $ ceph mds add_data_pool cephfs_data_ssd
+ $ ceph fs add_data_pool cephfs cephfs_data_ssd
# Pool should now show up
$ ceph fs ls
.... data pools: [cephfs_data cephfs_data_ssd ]
Once a pool has been created and configured the metadata service must be told
that the new pool may be used to store file data. A pool is be made available
-for storing file system data using the ``ceph mds add_data_pool`` command.
+for storing file system data using the ``ceph fs add_data_pool`` command.
First, create the pool. In this example we create the ``hadoop1`` pool with
replication factor 1. ::
where ``3`` is the pool id. Next we will use the pool id reference to register
the pool as a data pool for storing file system data. ::
- ceph mds add_data_pool 3
+ ceph fs add_data_pool cephfs 3
The final step is to configure Hadoop to consider this data pool when
selecting the target pool for new files. ::
::
- bin/ceph mds set allow_multimds true --yes-i-really-mean-it
- bin/ceph mds set max_mds 5
+ bin/ceph fs set cephfs allow_multimds true --yes-i-really-mean-it
+ bin/ceph fs set cephfs max_mds 5
bin/ceph fs set cephfs_a balancer greedyspill.lua
Most of the implementation is in MDBalancer. Metrics are passed to the balancer
policies via the Lua stack and a list of loads is returned back to MDBalancer.
It sits alongside the current balancer implementation and it's enabled with a
-Ceph CLI command ("ceph mds set balancer mybalancer.lua"). If the Lua policy
+Ceph CLI command ("ceph fs set cephfs balancer mybalancer.lua"). If the Lua policy
fails (for whatever reason), we fall back to the original metadata load
balancer. The balancer is stored in the RADOS metadata pool and a string in the
MDSMap tells the MDSs which balancer to use.