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 <vol_name> <group_name> <pin_type> <pin_setting>
+.. prompt:: bash #
+
+ ceph fs subvolumegroup pin <vol_name> <group_name> <pin_type> <pin_setting>
+
+Run a command of the following form to configure pinning for subvolumes:
-or for subvolumes::
+.. prompt:: bash #
+
+ ceph fs subvolume pin <vol_name> <group_name> <pin_type> <pin_setting>
- $ ceph fs subvolume pin <vol_name> <group_name> <pin_type> <pin_setting>
+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.