O'Reilly logo

OpenStack Cloud Computing Cookbook by Kevin Jackson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating volumes

Now that we have a usable nova-volume service, we can create volumes for use by our instances. We do this under our Ubuntu client using one of the euca2ools, euca-create-volumes, or the Nova Client tool, so we are creating volumes specific to our tenancy (project).

Getting ready

To begin with, ensure you are logged in to your Ubuntu client that has access to the euca2ools or Nova Client tools. These packages can be installed using the following command:

sudo apt-get update
sudo apt-get install euca2ools python-novaclient

How to do it...

Carry out the following steps to create a volume using euca2ools:

  1. First, create the volume that we will attach to our instance. The size (-s) option is in gigabytes, so we will create one with 5 GB. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required