Ask Your Question
0

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

Comments

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. http://docs.openstack.org/havana/inst...

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

I use the block storage, http://docs.openstack.org/juno/install-guide/install/apt/content/block-storage-service.html (OpenStack Juno Guide)

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

1 answer

Sort by ยป oldest newest most voted
0

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
            supported)

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

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

Seen: 41 times

Last updated: May 21 '15