From e09007c106fc63f9559706f8fae714fe0cc09d6b Mon Sep 17 00:00:00 2001 From: Zac Dover Date: Mon, 5 Dec 2022 12:44:01 +1000 Subject: [PATCH] doc/rados: add prompts to pg-repair.rst Add unselectable prompts to doc/rados/operations/pg-repair.rst. https://tracker.ceph.com/issues/57108 Signed-off-by: Zac Dover --- doc/rados/operations/pg-repair.rst | 42 ++++++++++++++++++++---------- 1 file changed, 28 insertions(+), 14 deletions(-) diff --git a/doc/rados/operations/pg-repair.rst b/doc/rados/operations/pg-repair.rst index 5dcfe63ad055c..f495530cc8829 100644 --- a/doc/rados/operations/pg-repair.rst +++ b/doc/rados/operations/pg-repair.rst @@ -14,38 +14,52 @@ Commands for Diagnosing Placement-group Problems ================================================ The commands in this section provide various ways of diagnosing broken placement groups. -The following command provides a high-level (low detail) overview of the health of the ceph cluster:: +The following command provides a high-level (low detail) overview of the health of the ceph cluster: - # ceph health detail +.. prompt:: bash # -The following command provides more detail on the status of the placement groups:: + ceph health detail - # ceph pg dump --format=json-pretty +The following command provides more detail on the status of the placement groups: -The following command lists inconsistent placement groups:: +.. prompt:: bash # - # rados list-inconsistent-pg {pool} + ceph pg dump --format=json-pretty -The following command lists inconsistent rados objects:: +The following command lists inconsistent placement groups: - # rados list-inconsistent-obj {pgid} +.. prompt:: bash # -The following command lists inconsistent snapsets in the given placement group:: + rados list-inconsistent-pg {pool} - # rados list-inconsistent-snapset {pgid} +The following command lists inconsistent rados objects: + +.. prompt:: bash # + + rados list-inconsistent-obj {pgid} + +The following command lists inconsistent snapsets in the given placement group: + +.. prompt:: bash # + + rados list-inconsistent-snapset {pgid} Commands for Repairing Placement Groups ======================================= -The form of the command to repair a broken placement group is:: +The form of the command to repair a broken placement group is: + +.. prompt:: bash # - # ceph pg repair {pgid} + ceph pg repair {pgid} Where ``{pgid}`` is the id of the affected placement group. -For example:: +For example: + +.. prompt:: bash # - # ceph pg repair 1.4 + ceph pg repair 1.4 More Information on Placement Group Repair ========================================== -- 2.39.5