This manual describes the procedure of creating a Volume in your OpenStack Project and attaching it to the existing Instance (Virtual Machine). We are going to create here an empty drive that will be attached to the running OpenStack Instance as additional storage.

 

Log in to the Client Area

Log in to the Dashboard with your username and password. Optionally, you can sign in using Google or Facebook account.

 

Select your Project

Click on the Services tile and locate your Project:

my-services-pc.png

Click on the selected Project, next in the Product Details page, click on the Log In To Panel tile:

OpenStack Horizon Dashboard

You will be redirected to the OpenStack Horizon dashboard.

 

Log in to the Horizon

Log in to the Horizon dashboard using your credentials (from the Product Details page):

OpenStack Horizon Dashboard

Create a Volume

After logging in go to the Project -> Volumes section:

CinderCloud.com create cinder volume

Click on the Create Volume button:

CinderCloud.com create volume

You will be presented with the new window with the parameters to fill:

  • Volume Name 
  • Description - set the Volume description for your reference
  • Volume Source - select no source, empty volume (we are creating an empty Volume, to be attached as additional storage to the existing Instance)
  • Size - select the preferred size (in GiB)

Leave the remaining parameters with their default values.

CinderCloud.com Cinder Volume parameters

Verify, if the Volume has been successfully created:

CinderCloud.com OpenStack volume created

The newly created Volume is now in the Available state, which means it hasn't been attached to any OpenStack Instance yet.

 

Attach a Volume to an Instance

Additional (non-root) Volume can be attached to the Instance at any time, in the online or offline mode, however, it is recommended to attach the Volume while the Instance is off to avoid problems with detecting the new device.

Select your Volume, click on the dropdown menu, then select the Manage Attachments option from the menu:

CinderCloud.com OpenStack manage volume attachments

A new window will appear, where you can select an Instance you want the new Volume to attach to:

CinderCloud.com OpenStack attach Volume to an Instance

Once the Volume has been attached, its status should change now to In-use:

CinderCloud.com OpenStack Volume In-use

The Volume has been attached to an existing Instance as /dev/vdb device.

Now login to the Instance to ensure if the device has been detected by the system correctly:

CinderCloud.com OpenStack Volume list in Instance

The new Volume is ready to use by the system, you can now mount it in the filesystem at the mount point of your choice.

 

Was this answer helpful? 0 Users Found This Useful (0 Votes)