[root@ceph-box] # ceph osd getcrushmap -o {compiled-crushmap-filename} ## this will gather the compiled CRUSH map [root@ceph-box] # crushtool -d {compiled-crushmap-filename} -o {decompiled-crushmap-filename} ## decompile the map to make readable
[root@ceph-box] # crushtool -c {decompiled-crush-map-filename} -o {compiled-crush-map-filename} ## this will recompile the CRUSH map [root@ceph-box] # ceph osd setcrushmap -i {compiled-crushmap-filename} ## this will inject the new compiled CRUSH map