Creating Ceph Block Device
Up to now, we have configured Ceph client, and now we will demonstrate creating a Ceph block device from the client-node1
machine.
How to do it…
- Create a RADOS Block Device named
rbd1
of size 10240 MB:# rbd create rbd1 --size 10240 --name client.rbd
- There are multiple options that you can use to list RBD images:
## The default pool to store block device images is "rbd", you can also specify the pool name with the rbd command using -p option: # rbd ls --name client.rbd # rbd ls -p rbd --name client.rbd # rbd list --name client.rbd
- Check the details of the rbd image:
# rbd --image rbd1 info --name client.rbd
Get Ceph Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.