]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/man: define --num-rep, --min-rep and --max-rep 49660/head
authorZac Dover <zac.dover@gmail.com>
Fri, 6 Jan 2023 12:51:47 +0000 (22:51 +1000)
committerZac Dover <zac.dover@gmail.com>
Fri, 6 Jan 2023 17:58:08 +0000 (03:58 +1000)
Explain the "--num-rep", "--min-rep", and "--max-rep" options, which are
required when running "crushtool" commands with the "--show-mappings"
flag. Originally reported by Brad Fitzpatrick.

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

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

doc/man/8/crushtool.rst

index 82cbfce84b999691cf6f501bb46bd5b1ee6a3db8..31bb8272ebb8c3c958dabf6bb41d0720e3b5e273 100644 (file)
@@ -108,6 +108,16 @@ pools; it only runs simulations by mapping values in the range
    shows that value **24** is mapped to devices **[11,6]** by rule
    **1**.
 
+   One of the following is required when using the ``--show-mappings`` option:
+   
+        (a) ``--num-rep`` 
+        (b) both ``--min-rep`` and ``--max-rep``
+
+   ``--num-rep`` stands for "number of replicas, indicates the number of
+   replicas in a pool, and is used to specify an exact number of replicas (for
+   example ``--num-rep 5``). ``--min-rep`` and ``--max-rep`` are used together
+   to specify a range of replicas (for example, ``--min-rep 1 --max-rep 10``).
+
 .. option:: --show-bad-mappings
 
    Displays which value failed to be mapped to the required number of