欢迎光临散文网 会员登陆 & 注册

06_调整Crushmap配置,Ceph服务状态正常

2023-03-22 20:30 作者:小明说IT  | 我要投稿

配置crushmap

使用以下指令进入待配置的容器

cephadm shell使用crushtool重新配置crushmap

cd /etc/ceph/

ceph osd getcrushmap -o /etc/ceph/crushmap

crushtool -d /etc/ceph/crushmap -o /etc/ceph/crushmap.txt

sed -i 's/step chooseleaf firstn 0 type host/step chooseleaf firstn 0 type osd/' /etc/ceph/crushmap.txt

grep 'step chooseleaf' /etc/ceph/crushmap.txt

crushtool -c /etc/ceph/crushmap.txt -o /etc/ceph/crushmap-new

ceph osd setcrushmap -i /etc/ceph/crushmap-new

06_调整Crushmap配置,Ceph服务状态正常的评论 (共 条)

分享到微博请遵守国家法律