查看,上传crushmap命令

查看,上传crushmap命令

标签(空格分隔): ceph,ceph运维,crushmap


查看crushmap命令

  1. 从mon节点获取crushmap:
# ceph osd getcrushmap -o crush.map
  1. 反编译文件crush.map为易读的crush.txt:
# crushtool -d crush.map >> crush.txt
  1. 读取crushmap:
# cat crush.txt

上传crushmap命令

修改了crushmap之后需要重新导入集群:

  1. 反编译为集群识别格式:
# crushtool -d crush.txt >> newcrushmap
  1. 导入到集群:
# ceph osd setcrushmap -i newcrushmap

参考文献:

Ceph实验室:第八课:查看Ceph CRUSH map

 
 

 

posted @ 2020-08-06 11:51  yang-leo  阅读(133)  评论(0)    收藏  举报