From e34e5967901646608b840d9cfffaccf944af9161 Mon Sep 17 00:00:00 2001 From: Zac Dover Date: Tue, 21 May 2024 01:07:14 +1000 Subject: [PATCH] doc/cephfs: edit "Pinning Subvolumes..." Edit the section "Pinning Subvolumes and Subvolume Groups" in doc/cephfs/fs-volumes.rst. This is merely a grammar edit. Signed-off-by: Zac Dover (cherry picked from commit b319ead00e17a3a6d734e305454c8cfc403619ea) --- doc/cephfs/fs-volumes.rst | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/doc/cephfs/fs-volumes.rst b/doc/cephfs/fs-volumes.rst index 903b6f20d522..9fe6dd2d0e79 100644 --- a/doc/cephfs/fs-volumes.rst +++ b/doc/cephfs/fs-volumes.rst @@ -757,25 +757,32 @@ to policies. This can distribute load across MDS ranks in predictable and stable ways. Review :ref:`cephfs-pinning` and :ref:`cephfs-ephemeral-pinning` for details on how pinning works. -Pinning is configured by:: +Run a command of the following form to configure pinning for subvolumegroups: - $ ceph fs subvolumegroup pin +.. prompt:: bash # + + ceph fs subvolumegroup pin + +Run a command of the following form to configure pinning for subvolumes: -or for subvolumes:: +.. prompt:: bash # + + ceph fs subvolume pin - $ ceph fs subvolume pin +Under most circumstances, you will want to set subvolume group pins. The +``pin_type`` may be ``export``, ``distributed``, or ``random``. The +``pin_setting`` corresponds to the extended attributed "value" as in the +pinning documentation referenced above. -Typically you will want to set subvolume group pins. The ``pin_type`` may be -one of ``export``, ``distributed``, or ``random``. The ``pin_setting`` -corresponds to the extended attributed "value" as in the pinning documentation -referenced above. +Here is an example of setting a distributed pinning strategy on a subvolume +group: -So, for example, setting a distributed pinning strategy on a subvolume group:: +.. prompt:: bash $ - $ ceph fs subvolumegroup pin cephfilesystem-a csi distributed 1 + ceph fs subvolumegroup pin cephfilesystem-a csi distributed 1 -Will enable distributed subtree partitioning policy for the "csi" subvolume -group. This will cause every subvolume within the group to be automatically +This enables distributed subtree partitioning policy for the "csi" subvolume +group. This will cause every subvolume within the group to be automatically pinned to one of the available ranks on the file system. -- 2.47.3