$ ceph osd erasure-code-profile set LRCprofile \
plugin=lrc \
k=4 m=2 l=3 \
- ruleset-failure-domain=host
+ crush-failure-domain=host
$ ceph osd pool create lrcpool 12 12 erasure LRCprofile
$ ceph osd erasure-code-profile set LRCprofile \
plugin=lrc \
k=4 m=2 l=3 \
- ruleset-locality=rack \
- ruleset-failure-domain=host
+ crush-locality=rack \
+ crush-failure-domain=host
$ ceph osd pool create lrcpool 12 12 erasure LRCprofile
k={data-chunks} \
m={coding-chunks} \
l={locality} \
- [ruleset-root={root}] \
- [ruleset-locality={bucket-type}] \
- [ruleset-failure-domain={bucket-type}] \
+ [crush-root={root}] \
+ [crush-locality={bucket-type}] \
+ [crush-failure-domain={bucket-type}] \
+ [crush-device-class={device-class}] \
[directory={directory}] \
[--force]
:Required: Yes.
:Example: 3
-``ruleset-root={root}``
+``crush-root={root}``
:Description: The name of the crush bucket used for the first step of
the ruleset. For intance **step take default**.
:Required: No.
:Default: default
-``ruleset-locality={bucket-type}``
+``crush-locality={bucket-type}``
:Description: The type of the crush bucket in which each set of chunks
defined by **l** will be stored. For instance, if it is
:Type: String
:Required: No.
-``ruleset-failure-domain={bucket-type}``
+``crush-failure-domain={bucket-type}``
:Description: Ensure that no two chunks are in a bucket with the same
failure domain. For instance, if the failure domain is
:Required: No.
:Default: host
+``crush-device-class={device-class}``
+
+:Description: Restrict placement to devices of a specific class (e.g.,
+ ``ssd`` or ``hdd``), using the crush device class names
+ in the CRUSH map.
+
+:Type: String
+:Required: No.
+:Default:
+
``directory={directory}``
:Description: Set the **directory** name from which the erasure code
[ "cDDD____", "" ],
[ "____cDDD", "" ],
]' \
- ruleset-steps='[
+ crush-steps='[
[ "choose", "rack", 2 ],
[ "chooseleaf", "host", 4 ],
]'
For instance::
- ruleset-steps='[ [ "choose", "rack", 2 ], [ "chooseleaf", "host", 4 ] ]'
+ crush-steps='[ [ "choose", "rack", 2 ], [ "chooseleaf", "host", 4 ] ]'
will create a ruleset that will select two crush buckets of type
*rack* and for each of them choose four OSDs, each of them located in