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

Detaching volumes from an instance

As Nova Volumes are persistent storage and the best way of thinking of them is as a USB drive, this means you can only attach them to a single computer at a time. When you remove it from the computer, you can then move it to another one and attach it. The same principle works with Nova Volumes. To detach a volume, we use another euca2ools aptly named euca-detach-volume, or from Nova Client, the option volume-detach.

Getting ready

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

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

How to do it...

Carry out the following steps ...

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