Ask Your Question
2

Is cinder is the only option to attach Logical volume to an instance?

asked 2014-08-20 00:26:10 -0500

Praveenkumar.2608 gravatar image

updated 2014-08-22 16:38:14 -0500

smaffulli gravatar image

I have read lot of documents about nova.conf setting which allow us to use local logical volume (LVM) for instance disk storage. Is this option still available with Icehouse or it is been removed?. Is cinder is the only option to attach Logical volume to an instance?

The nova.conf settings I refer is:

 libvirt_use_virtio_for_bridges=True
 connection_type=libvirt
 libvirt_vif_driver=nova.virt.libvirt.vif.LibvirtGenericVIFDriver
 compute_driver=libvirt.LibvirtDriver
 libvirt_type=kvm
 libvirt_images_type=lvm
 libvirt_images_volume_group=vg000

I have set this option in my compute node and launched a instance. The instance storage still happens in (var/lib/nova/instances/). Am i doing anything wrong. Please guide me with detail steps to configure local LVM as a disk storage for openstack instance.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2014-08-27 16:25:28 -0500

mpetason gravatar image

updated 2014-08-27 16:25:41 -0500

Did you restart nova-compute after this? Were there error messages in the nova-compute logs when you launched the instance?

According to the nova.conf configuration it looks like the settings are expected in a different way:

[libvirt]
images_type=lvm
images_volume_group=vg000

Reference:

http://docs.openstack.org/icehouse/co...

edit flag offensive delete link more

Comments

Hi,

Thank you for your suggestion. It worked!!! You made my day

Praveenkumar.2608 gravatar imagePraveenkumar.2608 ( 2014-08-28 02:38:38 -0500 )edit

Glad that helped. Enjoy your OpenStack :).

mpetason gravatar imagempetason ( 2014-08-28 10:04:01 -0500 )edit
0

answered 2014-08-27 16:13:10 -0500

capsali gravatar image

So,if i understood your question, you want nova to store intances on a lvm partition?

If you are talking about ephemeral storage (instance boot volume) than either mount lvm partition to /var/lib/nova/instances or mount lvm anywhere and in nova.conf add 'instace_path=<mountpoint>', or change state_path=/var/lib/nova to state_path=<mount point=""> . For the latter don't forget to create all the folders from /var/lib/nova to your mount point.

Sorry if i misunderstood the question. It's late :)

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: 2014-08-20 00:26:10 -0500

Seen: 1,062 times

Last updated: Aug 27 '14