1 ============================
2 Jerasure erasure code plugin
3 ============================
5 The *jerasure* plugin is the most generic and flexible plugin, it is
6 also the default for Ceph erasure coded pools.
8 The *jerasure* plugin encapsulates the `Jerasure
9 <http://jerasure.org>`_ library. It is
10 recommended to read the *jerasure* documentation to get a better
11 understanding of the parameters.
13 Create a jerasure profile
14 =========================
16 To create a new *jerasure* erasure code profile::
18 ceph osd erasure-code-profile set {name} \
22 technique={reed_sol_van|reed_sol_r6_op|cauchy_orig|cauchy_good|liberation|blaum_roth|liber8tion} \
23 [ruleset-root={root}] \
24 [ruleset-failure-domain={bucket-type}] \
25 [directory={directory}] \
32 :Description: Each object is split in **data-chunks** parts,
33 each stored on a different OSD.
41 :Description: Compute **coding chunks** for each object and store them
42 on different OSDs. The number of coding chunks is also
43 the number of OSDs that can be down without losing data.
49 ``technique={reed_sol_van|reed_sol_r6_op|cauchy_orig|cauchy_good|liberation|blaum_roth|liber8tion}``
51 :Description: The more flexible technique is *reed_sol_van* : it is
52 enough to set *k* and *m*. The *cauchy_good* technique
53 can be faster but you need to chose the *packetsize*
54 carefully. All of *reed_sol_r6_op*, *liberation*,
55 *blaum_roth*, *liber8tion* are *RAID6* equivalents in
56 the sense that they can only be configured with *m=2*.
60 :Default: reed_sol_van
62 ``packetsize={bytes}``
64 :Description: The encoding will be done on packets of *bytes* size at
65 a time. Chosing the right packet size is difficult. The
66 *jerasure* documentation contains extensive information
73 ``ruleset-root={root}``
75 :Description: The name of the crush bucket used for the first step of
76 the ruleset. For intance **step take default**.
82 ``ruleset-failure-domain={bucket-type}``
84 :Description: Ensure that no two chunks are in a bucket with the same
85 failure domain. For instance, if the failure domain is
86 **host** no two chunks will be stored on the same
87 host. It is used to create a ruleset step such as **step
94 ``directory={directory}``
96 :Description: Set the **directory** name from which the erasure code
101 :Default: /usr/lib/ceph/erasure-code
105 :Description: Override an existing profile by the same name.