From b7b0c7b11d6e05b19ff28e0d7ab6cdc320c30c39 Mon Sep 17 00:00:00 2001 From: Zac Dover Date: Sat, 3 Dec 2022 02:11:49 +1000 Subject: [PATCH] doc/rados: add prompts to erasure-code-clay.rst Add unselectable prompts to doc/rados/operations/erasure-code-clay.rst. https://tracker.ceph.com/issues/57108 Signed-off-by: Zac Dover (cherry picked from commit fe2a38436f2e7e665d4f624f96e1ac3392ca1e64) --- doc/rados/operations/erasure-code-clay.rst | 41 ++++++++++++---------- 1 file changed, 23 insertions(+), 18 deletions(-) diff --git a/doc/rados/operations/erasure-code-clay.rst b/doc/rados/operations/erasure-code-clay.rst index a9bb03126820e..1cffa32f56efa 100644 --- a/doc/rados/operations/erasure-code-clay.rst +++ b/doc/rados/operations/erasure-code-clay.rst @@ -38,30 +38,35 @@ to achieve recovery from an OSD failure. Erasure-code profile examples ============================= -An example configuration that can be used to observe reduced bandwidth usage:: +An example configuration that can be used to observe reduced bandwidth usage: - $ ceph osd erasure-code-profile set CLAYprofile \ - plugin=clay \ - k=4 m=2 d=5 \ - crush-failure-domain=host - $ ceph osd pool create claypool erasure CLAYprofile +.. prompt:: bash $ + + ceph osd erasure-code-profile set CLAYprofile \ + plugin=clay \ + k=4 m=2 d=5 \ + crush-failure-domain=host + ceph osd pool create claypool erasure CLAYprofile Creating a clay profile ======================= -To create a new clay code profile:: - - ceph osd erasure-code-profile set {name} \ - plugin=clay \ - k={data-chunks} \ - m={coding-chunks} \ - [d={helper-chunks}] \ - [scalar_mds={plugin-name}] \ - [technique={technique-name}] \ - [crush-failure-domain={bucket-type}] \ - [directory={directory}] \ - [--force] +To create a new clay code profile: + +.. prompt:: bash $ + + ceph osd erasure-code-profile set {name} \ + plugin=clay \ + k={data-chunks} \ + m={coding-chunks} \ + [d={helper-chunks}] \ + [scalar_mds={plugin-name}] \ + [technique={technique-name}] \ + [crush-failure-domain={bucket-type}] \ + [crush-device-class={device-class}] \ + [directory={directory}] \ + [--force] Where: -- 2.39.5