Ceph
Documentation
Section titled “Documentation”https://pve.proxmox.com/pve-docs/chapter-pveceph.html
https://docs.ceph.com/en/latest/
Reference
Section titled “Reference”List placement groups by pool
Section titled “List placement groups by pool”ceph pg ls-by-pool <pool>
CRUSH MSR (multi-step retry) rule
Section titled “CRUSH MSR (multi-step retry) rule”https://docs.ceph.com/en/latest/dev/crush-msr/
rule msr_rule { id <#> type msr_firstn step take default step choosemsr <#> type host step choosemsr <#> type osd step emit}
Manually edit CRUSH map
Section titled “Manually edit CRUSH map”https://docs.ceph.com/en/latest/rados/operations/crush-map-edits/
ceph osd getcrushmap -o crush.map
Decompile
Section titled “Decompile”crushtool -d crush.map -o crush.dmap
nano crush.dmap
Compile
Section titled “Compile”crushtool -c crush.dmap -o crush.map
Import
Section titled “Import”ceph osd setcrushmap -i crush.map