1
======================================================
2
osdmaptool -- ceph osd cluster map manipulation tool
3
======================================================
5
.. program:: osdmaptool
10
| **osdmaptool** *mapfilename* [--print] [--createsimple *numosd*
11
[--pgbits *bitsperosd* ] ] [--clobber]
17
**osdmaptool** is a utility that lets you create, view, and manipulate
18
OSD cluster maps from the Ceph distributed file system. Notably, it
19
lets you extract the embedded CRUSH map or import a new CRUSH map.
27
will simply make the tool print a plaintext dump of the map, after
28
any modifications are made.
32
will allow osdmaptool to overwrite mapfilename if changes are made.
34
.. option:: --import-crush mapfile
36
will load the CRUSH map from mapfile and embed it in the OSD map.
38
.. option:: --export-crush mapfile
40
will extract the CRUSH map from the OSD map and write it to
43
.. option:: --createsimple numosd [--pgbits bitsperosd]
45
will create a relatively generic OSD map with the numosd devices.
46
If --pgbits is specified, the initial placement group counts will
47
be set with bitsperosd bits per OSD. That is, the pg_num map
48
attribute will be set to numosd shifted by bitsperosd.
54
To create a simple map with 16 devices::
56
osdmaptool --createsimple 16 osdmap --clobber
60
osdmaptool --print osdmap
66
**osdmaptool** is part of the Ceph distributed file system. Please
67
refer to the Ceph wiki at http://ceph.newdream.net/wiki for more
74
:doc:`ceph <ceph>`\(8),
75
:doc:`crushtool <crushtool>`\(8),
76
:doc:`mkcephfs <mkcephfs>`\(8)