Creating volumes
Now that we have created a Cinder volume service, we can now create volumes for use by our instances. We do this under our client environment using the Python-OpenStack client with the python-cinderclient
library; so we are creating volumes specific to our project (tenant).
Tip
Refer to Chapter 2, The OpenStack Client, for more information on installing and configuring the OpenStack client.
Getting ready
To create a volume, the following is required:
- The
openstack
command line client - An
openrc
file with appropriate credentials for the environment - The desired name for the volume
- The desired size in GiB for the volume
For our example, these are the following:
- Volume name:
cookbook.volume
- Size: 10 GiB
How to do it...
Carry out the following steps ...
Get OpenStack Cloud Computing Cookbook - Fourth Edition 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.