From: David Zafman Date: Wed, 18 Dec 2019 01:35:14 +0000 (-0800) Subject: tools: osdmaptool document non-upmap options that were missing X-Git-Tag: v15.1.0~303^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e42a6ccb1819be4988e3ed7bd78fcf513f8d1589;p=ceph.git tools: osdmaptool document non-upmap options that were missing Signed-off-by: David Zafman --- diff --git a/doc/man/8/osdmaptool.rst b/doc/man/8/osdmaptool.rst index 068338d31b3d..fd65f7a31285 100644 --- a/doc/man/8/osdmaptool.rst +++ b/doc/man/8/osdmaptool.rst @@ -13,6 +13,8 @@ Synopsis | **osdmaptool** *mapfilename* [--print] [--createsimple *numosd* [--pgbits *bitsperosd* ] ] [--clobber] +| **osdmaptool** *mapfilename* [--import-crush *crushmap*] +| **osdmaptool** *mapfilename* [--export-crush *crushmap*] Description @@ -111,6 +113,10 @@ Options mark osds up and in (but do not persist). +.. option:: --mark-out + + mark an osd as out (but do not persist) + .. option:: --tree Displays a hierarchical tree of the map. @@ -119,6 +125,15 @@ Options clears pg_temp and primary_temp variables. +.. option:: --health + + dump health checks + +.. option:: --with-default-pool + + include default pool when creating map + + Example ======= @@ -130,19 +145,19 @@ To view the result:: osdmaptool --print osdmap -To view the mappings of placement groups for pool 0:: +To view the mappings of placement groups for pool 1:: - osdmaptool --test-map-pgs-dump rbd --pool 0 + osdmaptool osdmap --test-map-pgs-dump --pool 1 pool 0 pg_num 8 - 0.0 [0,2,1] 0 - 0.1 [2,0,1] 2 - 0.2 [0,1,2] 0 - 0.3 [2,0,1] 2 - 0.4 [0,2,1] 0 - 0.5 [0,2,1] 0 - 0.6 [0,1,2] 0 - 0.7 [1,0,2] 1 + 1.0 [0,2,1] 0 + 1.1 [2,0,1] 2 + 1.2 [0,1,2] 0 + 1.3 [2,0,1] 2 + 1.4 [0,2,1] 0 + 1.5 [0,2,1] 0 + 1.6 [0,1,2] 0 + 1.7 [1,0,2] 1 #osd count first primary c wt wt osd.0 8 5 5 1 1 osd.1 8 1 1 1 1 @@ -157,7 +172,7 @@ To view the mappings of placement groups for pool 0:: size 3 8 In which, - #. pool 0 has 8 placement groups. And two tables follow: + #. pool 1 has 8 placement groups. And two tables follow: #. A table for placement groups. Each row presents a placement group. With columns of: * placement group id,