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

Deleting volumes

At some point, you will no longer need the volumes you have created. To remove the volumes from the system completely, so they are no longer available, we simply pull out another tool from euca2ools, euca-delete-volume, or invoke the volume-delete option from Nova Client.

Getting ready

Ensure you are logged in to the Ubuntu host where euca2ools is installed and have sourced in your OpenStack environment credentials.

How to do it...

To delete a volume using euca2ools, carry out the following steps:

  1. First, we list the volumes available to identify the volume we want to delete, as follows:
    euca-describe-volumes
    
  2. We now simply use the volume ID to delete this from the system, as follows:
    euca-delete-volume vol-00000003
    
  3. On deletion, the ...

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