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:
- Get the CRUSH map, as described in Getting the CRUSH map.
- Decompile the CRUSH map, as described in Decompiling the CRUSH map .
- Edit at least one of the devices, and buckets and rules.
- Recompile the CRUSH map, as described in Compiling the CRUSH map.
- 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.