of devices appears first in the CRUSH map. To declare a device in the CRUSH map,
create a new line under your list of devices, enter ``device`` followed by a
unique numeric ID, followed by the corresponding ``ceph-osd`` daemon instance.
+The device class can optionaly be added to group devices so they can be
+conveniently targetted by a crush rule.
::
#devices
- device {num} {osd.name}
+ device {num} {osd.name} [class {class}]
For example::
#devices
- device 0 osd.0
- device 1 osd.1
+ device 0 osd.0 class ssd
+ device 1 osd.1 class hdd
device 2 osd.2
device 3 osd.3
type [ replicated | erasure ]
min_size <min-size>
max_size <max-size>
- step take <bucket-name>
+ step take <bucket-name> [class <device-class>]
step [choose|chooseleaf] [firstn|indep] <N> <bucket-type>
step emit
}
:Default: 10
-``step take <bucket-name>``
+``step take <bucket-name> [class <device-class>]``
:Description: Takes a bucket name, and begins iterating down the tree.
+ If the ``device-class`` is specified, it must match
+ a class previously used when defining a device. All
+ devices that do not belong to the class are excluded.
:Purpose: A component of the rule.
:Required: Yes
:Example: ``step take data``