OSDMAPTOOL(8) Ceph OSDMAPTOOL(8)NAMEosdmaptool - ceph osd cluster map manipulation tool
SYNOPSISosdmaptool mapfilename [--print] [--createsimple numosd
[--pgbits bitsperosd ] ] [--clobber]
DESCRIPTIONosdmaptool is a utility that lets you create, view, and manipulate OSD
cluster maps from the Ceph distributed file system. Notably, it lets
you extract the embedded CRUSH map or import a new CRUSH map.
OPTIONS--print
will simply make the tool print a plaintext dump of the map,
after any modifications are made.
--clobber
will allow osdmaptool to overwrite mapfilename if changes are
made.
--import-crush mapfile
will load the CRUSH map from mapfile and embed it in the OSD
map.
--export-crush mapfile
will extract the CRUSH map from the OSD map and write it to map‐
file.
--createsimple numosd [--pgbits bitsperosd]
will create a relatively generic OSD map with the numosd
devices. If --pgbits is specified, the initial placement group
counts will be set with bitsperosd bits per OSD. That is, the
pg_num map attribute will be set to numosd shifted by bitsper‐
osd.
EXAMPLE
To create a simple map with 16 devices:
osdmaptool--createsimple 16 osdmap --clobber
To view the result:
osdmaptool--print osdmap
AVAILABILITYosdmaptool is part of the Ceph distributed file system. Please refer
to the Ceph wiki at http://ceph.newdream.net/wiki for more information.
SEE ALSOceph(8), crushtool(8), mkcephfs(8)COPYRIGHT
2011, New Dream Network
dev September 22, 2011 OSDMAPTOOL(8)