OSD

Manage OSDs

OSD

Get OSD metadata

   $ ceph osd metadata <id_osd>

Count object store by type

   $ ceph osd count-metadata osd_objectstore

Get all OSDs version

   $ ceph tell osd.* version

Get OSD tree

   $ ceph osd tree

List all OSD device class

   $ ceph osd crush class ls

List OSD by class

   $ ceph osd crush class ls-osd <class>

Remove OSD device class

   $ ceph osd crush rm-device-class osd.<id_osd>

Multiple OSD could be specified at the same time

Add an OSD device class

   $ ceph osd crush set-device-class <class> osd.<id_osd>

Multiple OSD could be specified at the same time

Map device and osd

    $ ceph device ls

OLD WAYS

Dump OSD config

   $ ceph daemon osd.<id_osd> config show

Dump all OSD config

   $ ceph tell osd.* config get <key>