Skip to main content

Create Ceph Erasure Coding Pool

· One min read
Joachim Kraftmayer

We aim to create an erasure coding pool with the Failure Domain room = Availability Zone.

We have come up with a rule for this:

EC M=4, K=2

rule ec_4_2_rule {
id 3
type erasure
min_size 5
max_size 6
step take eu-de-root
step choose indep 3 type room
step choose indep 2 type host
step chooseleaf indep 1 type osd
step emit
}

Description:

Take the crush root eu-de-root then select 3 independent buckets of type room and select 2 buckets of type host in each room and take one osd from each of the selected hosts.

EC M=6, K=3

rule ec_6_3_rule {
id 4
type erasure
min_size 8
max_size 9
step take eu-de-root
step choose indep 3 type room
step choose indep 3 type host
step chooseleaf indep 1 type osd
step emit
}