参考: https://docs.ceph.com/docs/master/start/quick-rbd/
确认你要使用的pool
ceph osd lspools
本次使用images pool
创建1000GB的块
rbd create gpucloudcompute04 --size 1024000 --image-feature layering --pool images
rbd map gpucloudcompute04 --name client.admin -p images
/dev/rbd0 --> /dev/rbd/images/gpucloudcompute04
格式化
mkfs.ext4 -m0 /dev/rbd/images/gpucloudcompute04
挂载
mount /dev/rbd/images/gpucloudcompute04 /var/lib/nova/instances/snapshots/
挂载后确认下权限 chown nova:nova /var/lib/nova/instances/snapshots/
重启服务
service nova-compute restart