]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: Erasure Code: Document set CRUSH rule precedence vs EC profile 64806/head
authorNiklas Hambüchen <mail@nh2.me>
Sun, 3 Aug 2025 13:36:35 +0000 (13:36 +0000)
committerNiklas Hambüchen <mail@nh2.me>
Mon, 4 Aug 2025 02:04:06 +0000 (02:04 +0000)
Signed-off-by: Niklas Hambüchen <mail@nh2.me>
doc/rados/operations/erasure-code.rst

index 69ed39e7bc6f8c57bd880d83f07498c06853b064..2c381112bb6a6643a880209af8c0a66ccb60e8aa 100644 (file)
@@ -86,6 +86,18 @@ new pool is created, all objects from the wrongly configured pool must be moved
 to the newly created pool. There is no way to alter the profile of a pool after
 the pool has been created.
 
+However, you can change the *crush-failure-domain* without creating a new pool,
+by changing the CRUSH rule of the pool using
+``ceph osd pool set <pool-name> crush_rule <rule-name>``
+as shown in :ref:`device_classes`
+(you should ensure that the new CRUSH rule is identical to the old rule
+in every way except the failure domain!).
+Once you do that, ``ceph osd pool ls detail`` will still show as ``erasure``
+profile the profile that you used for initial creation (which refers to the
+old *crush-failure-domain*), but the CRUSH rule in effect will be the new
+one, as the *crush-failure-domain* in the profile is only used during
+initial creation of the pool.
+
 The most important parameters of the profile are *K*, *M*, and
 *crush-failure-domain* because they define the storage overhead and
 the data durability. For example, if the desired architecture must