查看Ceph CRUSH map

查看CRUSH map
从monitor节点上获取CRUSH map
[root@ceph ceph]# ceph osd getcrushmap -o crushmap_compiled_file
反编译CRUSH map
[root@ceph ceph]# crushtool -d crushmap_compiled_file -o crushmap_decompiled_file
修改完成后,我们需要编译他
[root@ceph ceph]# crushtool -d crushmap_decompiled_file -o newcrushmap
将新CRUSH map导入集群中
[root@ceph ceph]# ceph osd setcru

本文详细介绍了如何查看Ceph CRUSH map,包括从monitor节点获取、反编译、修改及重新导入到集群的过程。CRUSH map是Ceph存储集群中用于数据分布和故障恢复的重要配置文件,它定义了数据在 OSDs (对象存储设备) 之间的分布策略。
最低0.47元/天 解锁文章
1548

被折叠的 条评论
为什么被折叠?



