Ask Your Question

Storage VM

asked 2015-05-20 03:46:31 -0500

Semah gravatar image

Hello, I Installed OpenStack Juno using the official document by OpenStack. I used the minimal architecture "Legacy networking (nova-network)": controller compute storage my problem, how can i attach a storage to VM ?!

Best regards Semah

edit retag flag offensive close merge delete


Are you trying to use ephemeral storage, or volume storage ? If you are talking about ephemeral storage, then its already available on the hypervisor. otherwise you need to install and configure cinder.

jdexter gravatar imagejdexter ( 2015-05-20 18:00:24 -0500 )edit

I use the block storage, (OpenStack Juno Guide)

Semah gravatar imageSemah ( 2015-05-21 02:46:32 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2015-05-21 10:18:25 -0500

jdexter gravatar image

"IF" you can create a volume using cinder it is a matter of calling the nova attach api.

$ cinder create <size_in_GB>

Take the UUID from the output of the previous command then call the $nova volume-attach.

usage: nova volume-attach <server> <volume> [<device>]

Attach a volume to a server.

Positional arguments:
  <server>  Name or ID of server.
  <volume>  ID of the volume to attach.
  <device>  Name of the device e.g. /dev/vdb. Use "auto" for autoassign (if

so `$ nova volume-attach <server> <uuid> If this fails collect the logs from the nova api and nova compute as well as cinder volume for the volume server that is hosting the volume you are trying to attach.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2015-05-20 03:46:31 -0500

Seen: 55 times

Last updated: May 21 '15