From: Patrick Donnelly Date: Thu, 24 Aug 2023 00:36:12 +0000 (-0400) Subject: doc: expand and consolidate mds placement X-Git-Tag: v19.0.0~620^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F53125%2Fhead;p=ceph.git doc: expand and consolidate mds placement Signed-off-by: Patrick Donnelly --- diff --git a/doc/cephadm/services/mds.rst b/doc/cephadm/services/mds.rst index 949a0fa5d8e7..96b7c2dda78a 100644 --- a/doc/cephadm/services/mds.rst +++ b/doc/cephadm/services/mds.rst @@ -20,7 +20,18 @@ For example: ceph fs volume create --placement="" where ``fs_name`` is the name of the CephFS and ``placement`` is a -:ref:`orchestrator-cli-placement-spec`. +:ref:`orchestrator-cli-placement-spec`. For example, to place +MDS daemons for the new ``foo`` volume on hosts labeled with ``mds``: + +.. prompt:: bash # + + ceph fs volume create foo --placement="label:mds" + +You can also update the placement after-the-fact via: + +.. prompt:: bash # + + ceph orch apply mds foo 'mds-[012]' For manually deploying MDS daemons, use this specification: @@ -30,6 +41,7 @@ For manually deploying MDS daemons, use this specification: service_id: fs_name placement: count: 3 + label: mds The specification can then be applied using: diff --git a/doc/cephfs/fs-volumes.rst b/doc/cephfs/fs-volumes.rst index a35e8b8cbdc8..1e7adf3a03d4 100644 --- a/doc/cephfs/fs-volumes.rst +++ b/doc/cephfs/fs-volumes.rst @@ -44,28 +44,19 @@ Create a volume by running the following command: .. prompt:: bash # - ceph fs volume create [] + ceph fs volume create [placement] This creates a CephFS file system and its data and metadata pools. It can also deploy MDS daemons for the filesystem using a ceph-mgr orchestrator module (for example Rook). See :doc:`/mgr/orchestrator`. -```` is the volume name (an arbitrary string). ```` is an -optional string that specifies the hosts that should have an MDS running on -them and, optionally, the total number of MDS daemons that the cluster should -have. For example, the following placement string means "deploy MDS on nodes -``host1`` and ``host2`` (one MDS per host):: +```` is the volume name (an arbitrary string). ``[placement]`` is an +optional string that specifies the :ref:`orchestrator-cli-placement-spec` for +the MDS. See also :ref:`orchestrator-cli-cephfs` for more examples on +placement. - "host1,host2" - -The following placement specification means "deploy two MDS daemons on each of -nodes ``host1`` and ``host2`` (for a total of four MDS daemons in the -cluster)":: - - "4 host1,host2" - -See :ref:`orchestrator-cli-service-spec` for more on placement specification. -Specifying placement via a YAML file is not supported. +.. note:: Specifying placement via a YAML file is not supported through the + volume interface. To remove a volume, run the following command: