# TODO be user-friendly $ osdmaptool --help usage: [--print] --create-from-conf creates an osd map with default configurations --createsimple [--clobber] [--pg-bits ] [--pgp-bits ] creates a relatively generic OSD map with devices --pgp-bits pgp_num map attribute will be shifted by --pg-bits pg_num map attribute will be shifted by --clobber allows osdmaptool to overwrite if it already exists --export-crush write osdmap's crush map to --import-crush replace osdmap's crush map with --health dump health checks --test-map-pgs [--pool ] [--pg_num ] [--range-first --range-last ] map all pgs --test-map-pgs-dump [--pool ] [--range-first --range-last ] map all pgs --test-map-pgs-dump-all [--pool ] [--range-first --range-last ] map all pgs to osds --mark-up-in mark osds up and in (but do not persist) --mark-out mark an osd as out (but do not persist) --mark-up mark an osd as up (but do not persist) --mark-in mark an osd as in (but do not persist) --with-default-pool include default pool when creating map --clear-temp clear pg_temp and primary_temp --clean-temps clean pg_temps --test-random do random placements --test-map-pg map a pgid to osds --test-map-object [--pool ] map an object to osds --upmap-cleanup clean up pg_upmap[_items] entries, writing commands to [default: - for stdout] --upmap calculate pg upmap entries to balance pg layout writing commands to [default: - for stdout] --upmap-max set max upmap entries to calculate [default: 10] --upmap-deviation max deviation from target [default: 5] --upmap-pool restrict upmap balancing to 1 or more pools --upmap-active Act like an active balancer, keep applying changes until balanced --dump displays the map in plain text when is 'plain', 'json' if specified format is not supported --tree displays a tree of the map --test-crush [--range-first --range-last ] map pgs to acting osds --adjust-crush-weight [,,<...>] change CRUSH (but do not persist) --save write modified osdmap with upmap or crush-adjust changes [1]