]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/rados: add prompts to placement-groups.rst 49274/head
authorZac Dover <zac.dover@gmail.com>
Tue, 6 Dec 2022 07:07:18 +0000 (17:07 +1000)
committerZac Dover <zac.dover@gmail.com>
Tue, 6 Dec 2022 07:26:11 +0000 (17:26 +1000)
Add unselectable prompts to doc/rados/operations/placement-groups.rst.
(2 of 3)

https://tracker.ceph.com/issues/57108

Signed-off-by: Zac Dover <zac.dover@gmail.com>
(cherry picked from commit 8574cfb847bb555bc724a6bd44a815f83e3dd364)

doc/rados/operations/placement-groups.rst

index 33b45d5dced87ce333db33ccfc21388101bbcce7..02364c96b44d0d6f8f59e5a42f549077db42adac 100644 (file)
@@ -535,9 +535,11 @@ Set the Number of Placement Groups
 
 To set the number of placement groups in a pool, you must specify the
 number of placement groups at the time you create the pool.
-See `Create a Pool`_ for details.  Even after a pool is created you can also change the number of placement groups with::
+See `Create a Pool`_ for details.  Even after a pool is created you can also change the number of placement groups with:
 
-        ceph osd pool set {pool-name} pg_num {pg_num}
+.. prompt:: bash # 
+
+   ceph osd pool set {pool-name} pg_num {pg_num}
 
 After you increase the number of placement groups, you must also
 increase the number of placement groups for placement (``pgp_num``)
@@ -547,9 +549,11 @@ algorithm. Increasing ``pg_num`` splits the placement groups but data
 will not be migrated to the newer placement groups until placement
 groups for placement, ie. ``pgp_num`` is increased. The ``pgp_num``
 should be equal to the ``pg_num``.  To increase the number of
-placement groups for placement, execute the following::
+placement groups for placement, execute the following:
+
+.. prompt:: bash #
 
-        ceph osd pool set {pool-name} pgp_num {pgp_num}
+   ceph osd pool set {pool-name} pgp_num {pgp_num}
 
 When decreasing the number of PGs, ``pgp_num`` is adjusted
 automatically for you.
@@ -557,9 +561,11 @@ automatically for you.
 Get the Number of Placement Groups
 ==================================
 
-To get the number of placement groups in a pool, execute the following::
+To get the number of placement groups in a pool, execute the following:
 
-        ceph osd pool get {pool-name} pg_num
+.. prompt:: bash #
+   
+   ceph osd pool get {pool-name} pg_num
 
 
 Get a Cluster's PG Statistics