Edit a CRUSH map

Generally, modifying your CRUSH map at runtime with the Ceph CLI is more convenient than editing the CRUSH map manually. However, there are times when you might choose to edit it, such as changing the default bucket types, or using a bucket algorithm other than straw2.

To edit an existing CRUSH map:

  1. Get the CRUSH map, as described in Getting the CRUSH map.
  2. Decompile the CRUSH map, as described in Decompiling the CRUSH map .
  3. Edit at least one of the devices, and buckets and rules.
  4. Recompile the CRUSH map, as described in Compiling the CRUSH map.
  5. Set the CRUSH map, as described in Setting a CRUSH map.

To activate a CRUSH Map rule for a specific pool, identify the common rule number and specify that rule number for the pool when creating the pool.