storage pool, image, block map

4. Create a storage pool, the name of the storage pool is testpool
5. Upload an object to the testpool storage pool, the name of the object is testobject
6. Create an RBD image, the image name is testimage, and the size is 100M
7. Map the testimage as Block device
8. Delete the testpool storage pool

Create a storage pool named testpool

[root@node1 ceph-cluster]# ceph osd pool create testpool 128

Upload an object to the testpool storage pool, the name of the object is testobject

[root@node1 ceph-cluster]# rados put testobject test.txt -p textpool

Create an RBD image, the image name is testimage, and the size is 100M

rbd create  testimage  --image fature layering --size 100M

Map testimage as a block device

rbd map  testpool/testimages --name client.admin

Delete the testpool storage pool

ceph osd pool delete testpool  testpool --yes-i-really-really-mean-it

Supongo que te gusta

Origin blog.csdn.net/balanceone/article/details/126004416
Recomendado
Clasificación