OS Manuals

/usr/bin/osdmaptool

Shared filesystem layout and plugins used by every Ceph daemon

From ceph-18-base 18.2.8-r10 (enterprise-packages), captured 2026-11-08 by running osdmaptool --help (exit 1). permalink

 usage: [--print] <mapfilename>
   --create-from-conf      creates an osd map with default configurations
   --createsimple <numosd> [--clobber] [--pg-bits <bitsperosd>] [--pgp-bits <bits>] creates a relatively generic OSD map with <numosd> devices
   --pgp-bits <bits>       pgp_num map attribute will be shifted by <bits>
   --pg-bits <bits>        pg_num map attribute will be shifted by <bits>
   --clobber               allows osdmaptool to overwrite <mapfilename> if it already exists
   --export-crush <file>   write osdmap's crush map to <file>
   --import-crush <file>   replace osdmap's crush map with <file>
   --health                dump health checks
   --test-map-pgs [--pool <poolid>] [--pg_num <pg_num>] [--range-first <first> --range-last <last>] map all pgs
   --test-map-pgs-dump [--pool <poolid>] [--range-first <first> --range-last <last>] map all pgs
   --test-map-pgs-dump-all [--pool <poolid>] [--range-first <first> --range-last <last>] map all pgs to osds
   --mark-up-in            mark osds up and in (but do not persist)
   --mark-out <osdid>      mark an osd as out (but do not persist)
   --mark-up <osdid>       mark an osd as up (but do not persist)
   --mark-in <osdid>       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 <pgid>    map a pgid to osds
   --test-map-object <objectname> [--pool <poolid>] map an object to osds
   --upmap-cleanup <file>  clean up pg_upmap[_items] entries, writing
                           commands to <file> [default: - for stdout]
   --upmap <file>          calculate pg upmap entries to balance pg layout
                           writing commands to <file> [default: - for stdout]
   --upmap-max <max-count> set max upmap entries to calculate [default: 10]
   --upmap-deviation <max-deviation>
                           max deviation from target [default: 5]
   --upmap-pool <poolname> restrict upmap balancing to 1 or more pools
   --upmap-active          Act like an active balancer, keep applying changes until balanced
   --dump <format>         displays the map in plain text when <format> is 'plain', 'json' if specified format is not supported
   --tree                  displays a tree of the map
   --test-crush [--range-first <first> --range-last <last>] map pgs to acting osds
   --adjust-crush-weight <osdid:weight>[,<osdid:weight>,<...>] change <osdid> CRUSH <weight> (but do not persist)
   --save                  write modified osdmap with upmap or crush-adjust changes
   --read <file>           calculate pg upmap entries to balance pg primaries
   --read-pool <poolname>  specify which pool the read balancer should adjust
   --vstart                prefix upmap and read output with './bin/'
Options (29)
OptionDescriptionSource
--create-from-confcreates an osd map with default configurations.help + man
--pgp-bits bitspgp_num map attribute will be shifted by <bits>help
--pg-bits bitspg_num map attribute will be shifted by <bits>help
--clobberwill allow osdmaptool to overwrite mapfilename if changes are made.help + man
--export-crush filewill extract the CRUSH map from the OSD map and write it to mapfile.help + man
--import-crush filewill load the CRUSH map from mapfile and embed it in the OSD map.help + man
--healthdump health checkshelp + man
--mark-up-inmark osds up and in (but do not persist).help + man
--mark-out osdidmark an osd as out (but do not persist)help + man
--mark-up osdidmark an osd as up (but do not persist)help + man
--mark-in osdidmark an osd as in (but do not persist)help + man
--with-default-poolinclude default pool when creating maphelp + man
--clear-tempclears pg_temp and primary_temp variables.help + man
--clean-tempsclean pg_temps.help + man
--test-randomdoes a random mapping of placement groups to the OSDs.help + man
--test-map-pg pgidmap a particular placement group(specified by pgid) to the OSDs.help + man
--upmap-cleanup fileclean up pg_upmap[_items] entries, writing commands to <file> [default: - for stdout]help + man
--upmap filecalculate pg upmap entries to balance pg layout writing commands to <file> [default: - for stdout]help + man
--upmap-deviation max-deviationmax deviation from target [default: 5]help + man
--upmap-activeAct like an active balancer, keep applying changes until balancedhelp + man
--dump formatdisplays the map in plain text when <format> is 'plain', 'json' if specified format is not supported.help + man
--treeDisplays a hierarchical tree of the map.help + man
--savewrite modified osdmap with upmap or crush-adjust changeshelp + man
--read filecalculate pg upmap entries to balance pg primarieshelp + man
--read-pool poolnamespecify which pool the read balancer should adjusthelp + man
--vstartprefix upmap and read output with './bin/'help + man
--printwill simply make the tool print a plaintext dump of the map, after any modifications are made. (in the manual page but not in --help)man
--upmap-max max-optimizationsset max upmap entries to calculate [default: 10] (in the manual page but not in --help)man
--upmap-pool poolnamerestrict upmap balancing to 1 pool or the option can be repeated for multiple pools (in the manual page but not in --help)man
Examples (6) from the manual page, untested

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.