創(chuàng)建:
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