Ask Your Question
0

Understanding Instances and Block Volumes attached to it.

asked 2016-12-05 23:01:57 -0500

Mustafa gravatar image

I am new to OpenStack and and I'm confused about where an instance is launched and if I want to attach a volume to that instance how will I go about doing that.

According to my understanding an Instance is launched on the compute, using the computes storage. if we want to attach a volume to that instance we will first create a volume through horizon or cinder and run the nova attach-volume <server id> <volume id> command from the controller.

So, First my question is am I right in this understanding. Second can I simply add a storage to the compute through SAN or NAS and directly attach it with the instance bypassing the controller?

Any guidance in this would be greatly appreciated.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-12-06 23:04:38 -0500

vern gravatar image

Yes, an instance is launched on a compute node. That instance's root disk is (normally) an ephemeral disk on the compute node's local disk. When you attach a volume, cinder provides the volume from whatever backend is configured to the compute node and nova-compute takes care of communicating with the hypervisor to get it attached to the compute.

Your second question asks about adding storage to the compute through SAN/NAS and directly attach it to the instance. Yes, technically, you can do this. Semantically, OpenStack is just a collection of APIs that make it easy to interface with various backends and connect them together. If you have storage available to the compute node, you could tell the hypervisor (often via libvirt) to attach that storage to the instance. Nothing prevents you from doing that. Except, perhaps, root access. Your end-users will not likely have root access on all of your compute nodes.

Instead of bypassing how OpenStack does things, it would be easier to embrace the OpenStack way. Configure cinder to use your NAS/SAN as a storage backend and allow cinder to do the provisioning and allow nova to manage the attachments. Much easier in the long run.

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

1 follower

Stats

Asked: 2016-12-05 23:01:57 -0500

Seen: 287 times

Last updated: Dec 06 '16