Listing OSDs of a device class

Use this information to list oSDs that belong to a device class.

To list all OSDs that belong to a particular class, run the following:

Syntax

ceph osd crush class ls-osd CLASS

Example

[ceph: root@host01 /]# ceph osd crush class ls-osd hdd

The output is simply a list of OSD numbers. For example:

0
1
2
3
4
5
6