ceph crush map自定义

1. 从任意一个monitor节点提取crush map并反编译它

# ceph osd getcrushmap -o crushmap-extract

# crushtool -d crushmap-extract -o crushmap-decompiled

2. 编辑器编辑默认的crush map文件

# vi crushmap-decompiled

3. 编译crush文件注入回cephalexin集群

# crushtool -c crushmap-decompiled  -o crushmap-compiled

# ceph osd setcrushmap -i crushmap-compiled

你可能感兴趣的:(ceph crush map自定义)