After Deprec

openstack_cloud_computing_cookbook

Issue link: https://read.uberflip.com/i/1334488

Contents of this Issue

Navigation

Page 176 of 317

Nova Volumes 166 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 volume you have deleted will be printed on screen. To delete a volume using Nova Client, carry out the following steps: 1. First, we list the volumes available to identify the volume we want to delete, as follows: nova volume-list 2. We now simply use the volume ID to delete this from the system, as follows: nova volume-delete 4 3. On deletion, the volume you have deleted will be printed on screen. How it works... Deleting images removes the LVM volume from use within our system. To do this, we simply specify the name of the volume as a parameter to euca-delete-volume, if using euca2ools, or the ID as a parameter to nova volume-delete (when using Nova Client), first ensuring that the volume is not in use. www.it-ebooks.info

Articles in this issue

Links on this page

Archives of this issue

view archives of After Deprec - openstack_cloud_computing_cookbook