06_調(diào)整Crushmap配置,Ceph服務(wù)狀態(tài)正常

配置crushmap
使用以下指令進(jìn)入待配置的容器
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
標(biāo)簽: