Now that we have created a Cinder volume service, we can create volumes for use by our instances. We do this under our Ubuntu client using one of the Cinder Client tool, aka the python-Cinderclient, so we are creating volumes specific to our tenancy (project).
To begin with, ensure you are logged in to your Ubuntu client that has access to the Cinder Client tools. These packages can be installed using the following command:
sudo apt-get update sudo apt-get install python-cinderclient
Carry out the following to create a volume using Cinder Client:
First, create the volume that we will attach to our instance.
# Source in our OpenStack Nova credentials . stackrc cinder create --display-name cookbook 1
On completion, the command returns the following output:
+---------------------+--------------------------------------+ | Property | Value | +---------------------+--------------------------------------+ ...