]> git.proxmox.com Git - ceph.git/blame - ceph/src/test/cli/osdmaptool/help.t
bump version to 18.2.2-pve1
[ceph.git] / ceph / src / test / cli / osdmaptool / help.t
CommitLineData
7c673cae
FG
1# TODO be user-friendly
2 $ osdmaptool --help
11fdf7f2
TL
3 usage: [--print] <mapfilename>
4 --create-from-conf creates an osd map with default configurations
5 --createsimple <numosd> [--clobber] [--pg-bits <bitsperosd>] [--pgp-bits <bits>] creates a relatively generic OSD map with <numosd> devices
6 --pgp-bits <bits> pgp_num map attribute will be shifted by <bits>
7 --pg-bits <bits> pg_num map attribute will be shifted by <bits>
8 --clobber allows osdmaptool to overwrite <mapfilename> if it already exists
7c673cae
FG
9 --export-crush <file> write osdmap's crush map to <file>
10 --import-crush <file> replace osdmap's crush map with <file>
224ce89b 11 --health dump health checks
11fdf7f2
TL
12 --test-map-pgs [--pool <poolid>] [--pg_num <pg_num>] [--range-first <first> --range-last <last>] map all pgs
13 --test-map-pgs-dump [--pool <poolid>] [--range-first <first> --range-last <last>] map all pgs
14 --test-map-pgs-dump-all [--pool <poolid>] [--range-first <first> --range-last <last>] map all pgs to osds
7c673cae 15 --mark-up-in mark osds up and in (but do not persist)
3efd9988 16 --mark-out <osdid> mark an osd as out (but do not persist)
f67539c2
TL
17 --mark-up <osdid> mark an osd as up (but do not persist)
18 --mark-in <osdid> mark an osd as in (but do not persist)
224ce89b 19 --with-default-pool include default pool when creating map
7c673cae 20 --clear-temp clear pg_temp and primary_temp
f91f0fd5 21 --clean-temps clean pg_temps
7c673cae
FG
22 --test-random do random placements
23 --test-map-pg <pgid> map a pgid to osds
24 --test-map-object <objectname> [--pool <poolid>] map an object to osds
25 --upmap-cleanup <file> clean up pg_upmap[_items] entries, writing
26 commands to <file> [default: - for stdout]
27 --upmap <file> calculate pg upmap entries to balance pg layout
28 writing commands to <file> [default: - for stdout]
92f5a8d4 29 --upmap-max <max-count> set max upmap entries to calculate [default: 10]
7c673cae 30 --upmap-deviation <max-deviation>
92f5a8d4 31 max deviation from target [default: 5]
7c673cae 32 --upmap-pool <poolname> restrict upmap balancing to 1 or more pools
92f5a8d4 33 --upmap-active Act like an active balancer, keep applying changes until balanced
11fdf7f2
TL
34 --dump <format> displays the map in plain text when <format> is 'plain', 'json' if specified format is not supported
35 --tree displays a tree of the map
36 --test-crush [--range-first <first> --range-last <last>] map pgs to acting osds
f67539c2
TL
37 --adjust-crush-weight <osdid:weight>[,<osdid:weight>,<...>] change <osdid> CRUSH <weight> (but do not persist)
38 --save write modified osdmap with upmap or crush-adjust changes
1e59de90
TL
39 --read <file> calculate pg upmap entries to balance pg primaries
40 --read-pool <poolname> specify which pool the read balancer should adjust
41 --vstart prefix upmap and read output with './bin/'
7c673cae 42 [1]