集成块存储
在OpenStack上集成Ceph块存储,需要在Ceph存储节点上进行操作。
- 更新OSD(Object Storage Device)的PG(Placement Group)状态为active+clean。
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存储节点Ceph OSD使能pool。
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存储的OpenStack节点上验证Ceph是否配置成功。
ceph -s
配置成功的预期结果:
父主题: 在OpenStack上集成Ceph块存储