在OpenStack上集成Ceph块存储,需要在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
ceph osd pool application enable volumes rbd ceph osd pool application enable vms rbd ceph osd pool application enable images rbd ceph osd pool application enable backups rbd
ceph -s
配置成功的预期结果: