Skip to content

Commit 6572517

Browse files
Merge pull request ceph#64806 from nh2/docs-ec-change-crush-rule-profile
doc: Erasure Code: Document set CRUSH rule precedence vs EC profile
2 parents 4dca855 + d49ae97 commit 6572517

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

doc/rados/operations/erasure-code.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,18 @@ new pool is created, all objects from the wrongly configured pool must be moved
8686
to the newly created pool. There is no way to alter the profile of a pool after
8787
the pool has been created.
8888

89+
However, you can change the *crush-failure-domain* without creating a new pool,
90+
by changing the CRUSH rule of the pool using
91+
``ceph osd pool set <pool-name> crush_rule <rule-name>``
92+
as shown in :ref:`device_classes`
93+
(you should ensure that the new CRUSH rule is identical to the old rule
94+
in every way except the failure domain!).
95+
Once you do that, ``ceph osd pool ls detail`` will still show as ``erasure``
96+
profile the profile that you used for initial creation (which refers to the
97+
old *crush-failure-domain*), but the CRUSH rule in effect will be the new
98+
one, as the *crush-failure-domain* in the profile is only used during
99+
initial creation of the pool.
100+
89101
The most important parameters of the profile are *K*, *M*, and
90102
*crush-failure-domain* because they define the storage overhead and
91103
the data durability. For example, if the desired architecture must

0 commit comments

Comments
 (0)