创建:
1、新建资源池
ceph osd pool create testpool 128
2、新建镜像
rbd create testpool/testimage -s 10240 –image-format 1
3、查看镜像信息
rbd info testpool/testimage
4、映射
rbd map testpool/testimage
5、查看映射
rbd showmapped
删除:
6、删除映射
rbd unmap /dev/rbd0
7、删除镜像
rbd rm testpool/testimage
8、删除资源池
ceph osd pool delete testpool testpool –yes-i-really-really-mean-it