# ceph osd pool create rbd1 128
查询存储空间使用
# ceph df
GLOBAL:
SIZE AVAIL RAW USED %RAW USED
480GiB 474GiB 6.12GiB 1.28
POOLS:
NAME ID USED %USED MAX AVAIL OBJECTS
volumes 1 134B 0 150GiB 5
vms 2 0B 0 150GiB 0
images 3 0B 0 150GiB 0
rbd1 4 14.3MiB 0 150GiB 19
rbd 5 0B 0 150GiB 0
2 创建一个名为ceph-client1-rbd1、大小为1024
rbd create ceph-client1-rbd1 --size 1024 -p rdb1
要列出RBD镜像,输入下列的命令
# rbd -p rbd1 ls
ceph-client1-rbd1
ceph-client1-rbd2
检看一个RBD镜像的详细信息
# rbd --image ceph-client1-rbd1 info
rbd: error opening image ceph-client1-rbd1: (2) No such file or directory
# rbd --image ceph-client1-rbd1 -p rbd1 info
rbd image 'ceph-client1-rbd1':
size 1GiB in 256 objects
order 22 (4MiB objects)
block_name_prefix: rbd_data.5b5756b8