分布式存储ceph-crushmap基本操作

分布式存储ceph-crushmap基本操作

root@ceph-client:~# ceph osd getcrushmap -o crushmap.map
got crush map from osdmap epoch 114

root@ceph-client:~# crushtool -d crushmap.map -o crushmap.txt

root@ceph-client:~# vim crushmap.txt
//编辑crushmap文件,修改成期望的crush结构

root@ceph-client:~# crushtool -c crushmap.txt -o crushmap.new

root@ceph-client:~# ceph osd setcrushmap -i crushmap.new
set crush map